void wan_handler(int *param_1)
{
uint uVar1;
mii_read(4,1) //possible issue identified - semgrep
uVar1 = mii_read(4,1) //possible issue identified - semgrep
uVar1 = uVar1 >> 2 & 1;
wan_handle = 0;
if (uVar1 == 0) {
if (param_1[1] != 0) {
mysystem("event WANPORT.LINKDOWN") //possible issue identified - semgrep
}
*param_1 = *param_1 + 1;
}
else {
if (param_1[1] == 0) {
mysystem("event WANPORT.LINKUP") //possible issue identified - semgrep
}
*param_1 = 0;
}
param_1[1] = uVar1;
wan_handle = sloop_register_timeout(1,0,wan_handler,param_1);
return;
}