int rt2800_set_extension_channel(int param_1)
{
int iVar1;
int iVar2;
char acStack_90 [64];
char local_50 [64];
memset(acStack_90,0,0x40) //possible issue identified - semgrep
xmldbc_get_wb(0,0,"/wireless/bandwidth",acStack_90,0x40);
iVar1 = atoi(acStack_90);
if ((((iVar1 != 2) || (iVar2 = param_1 + 4, 4 < param_1)) &&
((2 < param_1 - 5U || (iVar2 = param_1 + -4, iVar1 != 2)))) &&
((iVar2 = param_1, 7 < param_1 && (iVar1 == 2)))) {
memset(local_50,0,0x40) //possible issue identified - semgrep
xmldbc_get_wb(0,0,"/sys/countrycode",local_50,0x40);
if (local_50[0] == '\0') {
xmldbc_get_wb(0,0,"/runtime/nvram/countrycode",local_50,0x40);
}
atoi(local_50);
iVar2 = param_1 + -4;
}
return iVar2;
}