void SendBeaconRequest(int param_1,uint param_2)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  undefined4 local_60;
  undefined4 local_5c;
  undefined1 local_58;
  undefined1 local_57;
  undefined1 local_56;
  undefined1 local_55;
  undefined1 local_54;
  undefined1 local_50;
  undefined1 local_4f;
  undefined2 local_4e;
  undefined2 local_4c;
  undefined1 local_4a;
  undefined1 auStack_49 [6];
  undefined1 local_43;
  undefined1 local_42;
  undefined1 local_41;
  undefined1 local_40;
  undefined1 auStack_3c [24];
  undefined4 local_24;
  uint local_20;
  
  iVar4 = (param_2 & 0xff) * 0xa20;
  iVar2 = param_1 + iVar4;
  local_60 = 0;
  if (*(int *)(iVar2 + 0x5cf38) != 3) {
    iVar1 = os_alloc_mem(param_1,&local_60,0x640);
    if (iVar1 == 0) {
      iVar2 = (uint)*(byte *)(iVar2 + 0x5cf69) * 0x1140 + param_1 + 0x51ac;
      ActHeaderInit(param_1,auStack_3c,param_1 + iVar4 + 0x5d190,iVar2,iVar2);
      local_24 = 0x10005;
      local_20 = local_20 & 0xffffff00;
      local_50 = 0x20;
      local_4f = 0xff;
      local_4c = 10;
      local_4a = 1;
      local_4e = 0;
      memcpy(auStack_49,&BROADCAST_ADDR,6)   //possible issue identified - semgrep
      local_43 = 0xfe;
      local_58 = 0x26;
      local_57 = 0x14;
      local_54 = 5;
      local_42 = 0;
      local_41 = 0;
      local_40 = 0;
      local_56 = 0;
      local_55 = 0;
      MakeOutgoingFrame(local_60,&local_5c,0x1d,auStack_3c,5,&local_58,0x11,&local_50,0xffffffff);
      MiniportMMRequest(param_1,0,local_60,local_5c);
      os_free_mem(param_1,local_60);
      if (RTDebugLevel < 3) {
        return;
      }
      pcVar3 = "Radio - SendBeaconRequest\n";
    }
    else {
      if (RTDebugLevel == 0) {
        return;
      }
      pcVar3 = "Radio - SendBeaconRequest() allocate memory failed \n";
    }
    printk(pcVar3);
  }
  return;
}