undefined4 FUN_00403094(void *param_1)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  char *pcVar4;
  char acStack_30 [16];
  ushort local_20;
  undefined1 auStack_1e [14];
  
  memset(acStack_30,0,0x20)   //possible issue identified - semgrep
  strncpy(acStack_30,*(char **)(g_osl + 4),0x10)   //possible issue identified - semgrep
  iVar1 = ioctl(*(int *)(g_osl + 8),0x8b15,acStack_30);
  if (iVar1 == 0) {
    pcVar3 = (char *)(uint)local_20;
    if (pcVar3 == (char *)0x1) {
      memcpy(param_1,auStack_1e,6)   //possible issue identified - semgrep
      return 1;
    }
    pcVar4 = "get_bssid: expecting Ethernet address back, not sa_family=%d\n";
  }
  else {
    piVar2 = __errno_location();
    if (*piVar2 == 0x7a) {
      return 0;
    }
    pcVar3 = strerror(*piVar2);
    pcVar4 = "get_bssid: get associated Access Point MAC failed: %s\n";
  }
  warn(pcVar4,pcVar3);
  return 0;
}