undefined4 PeerAddBAReqActionSanity(undefined4 param_1,int param_2,uint param_3,void *param_4)
{
byte bVar1;
undefined4 uVar2;
if (param_3 < 0x21) {
if (RTDebugLevel == 0) {
uVar2 = 0;
}
else {
printk("PeerAddBAReqActionSanity: ADDBA Request frame length size = %ld incorrect\n",param_3);
uVar2 = 0;
}
}
else {
memcpy(param_4,(void *)(param_2 + 10),6) //possible issue identified - semgrep
uVar2 = 1;
if ((*(byte *)(param_2 + 0x1b) & 2) == 0) {
if (RTDebugLevel != 0) {
printk("PeerAddBAReqActionSanity: ADDBA Request Ba Policy[%d] not support\n",
((uint)*(byte *)(param_2 + 0x1b) << 0x1e) >> 0x1f);
}
uVar2 = 0;
if (RTDebugLevel != 0) {
bVar1 = *(byte *)(param_2 + 0x1b);
printk("ADDBA Request. tid=%x, Bufsize=%x, AMSDUSupported=%x \n",
((uint)bVar1 << 0x1a) >> 0x1c,
(uint)*(byte *)(param_2 + 0x1c) << 2 | (uint)(bVar1 >> 6),bVar1 & 1);
uVar2 = 0;
}
}
}
return uVar2;
}