*/
int host_int_remove_wep_key(tstrWILC_WFIDrv *wfi_drv, u8 index)
{
- int s32Error = 0;
+ int result = 0;
tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)wfi_drv;
struct host_if_msg msg;
if (pstrWFIDrv == NULL) {
- s32Error = -EFAULT;
+ result = -EFAULT;
PRINT_ER("Failed to send setup multicast config packet\n");
- return s32Error;
+ return result;
}
/* prepare the Remove Wep Key Message */
uniHostIFkeyAttr.strHostIFwepAttr.u8Wepidx = index;
/* send the message */
- s32Error = wilc_mq_send(&gMsgQHostIF, &msg, sizeof(struct host_if_msg));
- if (s32Error)
+ result = wilc_mq_send(&gMsgQHostIF, &msg, sizeof(struct host_if_msg));
+ if (result)
PRINT_ER("Error in sending message queue : Request to remove WEP key\n");
down(&(pstrWFIDrv->hSemTestKeyBlock));
- return s32Error;
+ return result;
}
/**