struct key_attr {
enum KEY_TYPE type;
- u8 u8KeyAction;
+ u8 action;
union host_if_key_attr uniHostIFkeyAttr;
};
case WEP:
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY_AP) {
+ if (pstrHostIFkeyAttr->action & ADDKEY_AP) {
PRINT_D(HOSTINF_DBG, "Handling WEP key\n");
PRINT_D(GENERIC_DBG, "ID Hostint is %d\n", (pstrHostIFkeyAttr->uniHostIFkeyAttr.wep.index));
}
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY) {
+ if (pstrHostIFkeyAttr->action & ADDKEY) {
PRINT_D(HOSTINF_DBG, "Handling WEP key\n");
pu8keybuf = kmalloc(pstrHostIFkeyAttr->uniHostIFkeyAttr.wep.key_len + 2, GFP_KERNEL);
if (pu8keybuf == NULL) {
s32Error = send_config_pkt(SET_CFG, &strWID, 1,
get_id_from_handler(hif_drv));
kfree(pu8keybuf);
- } else if (pstrHostIFkeyAttr->u8KeyAction & REMOVEKEY) {
+ } else if (pstrHostIFkeyAttr->action & REMOVEKEY) {
PRINT_D(HOSTINF_DBG, "Removing key\n");
strWID.id = (u16)WID_REMOVE_WEP_KEY;
break;
case WPARxGtk:
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY_AP) {
+ if (pstrHostIFkeyAttr->action & ADDKEY_AP) {
pu8keybuf = kmalloc(RX_MIC_KEY_MSG_LEN, GFP_KERNEL);
if (pu8keybuf == NULL) {
PRINT_ER("No buffer to send RxGTK Key\n");
up(&hif_drv->hSemTestKeyBlock);
}
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY) {
+ if (pstrHostIFkeyAttr->action & ADDKEY) {
PRINT_D(HOSTINF_DBG, "Handling group key(Rx) function\n");
pu8keybuf = kmalloc(RX_MIC_KEY_MSG_LEN, GFP_KERNEL);
break;
case WPAPtk:
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY_AP) {
+ if (pstrHostIFkeyAttr->action & ADDKEY_AP) {
pu8keybuf = kmalloc(PTK_KEY_MSG_LEN + 1, GFP_KERNEL);
kfree(pu8keybuf);
up(&hif_drv->hSemTestKeyBlock);
}
- if (pstrHostIFkeyAttr->u8KeyAction & ADDKEY) {
+ if (pstrHostIFkeyAttr->action & ADDKEY) {
pu8keybuf = kmalloc(PTK_KEY_MSG_LEN, GFP_KERNEL);
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = WEP;
- msg.body.key_info.u8KeyAction = REMOVEKEY;
+ msg.body.key_info.action = REMOVEKEY;
msg.drv = hif_drv;
msg.body.key_info.uniHostIFkeyAttr.wep.index = index;
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = WEP;
- msg.body.key_info.u8KeyAction = DEFAULTKEY;
+ msg.body.key_info.action = DEFAULTKEY;
msg.drv = hif_drv;
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = WEP;
- msg.body.key_info.u8KeyAction = ADDKEY;
+ msg.body.key_info.action = ADDKEY;
msg.drv = hif_drv;
}
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = WEP;
- msg.body.key_info.u8KeyAction = ADDKEY_AP;
+ msg.body.key_info.action = ADDKEY_AP;
msg.drv = hif_drv;
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = WPAPtk;
if (mode == AP_MODE) {
- msg.body.key_info.u8KeyAction = ADDKEY_AP;
+ msg.body.key_info.action = ADDKEY_AP;
msg.body.key_info.uniHostIFkeyAttr.wpa.u8keyidx = u8Idx;
}
if (mode == STATION_MODE)
- msg.body.key_info.u8KeyAction = ADDKEY;
+ msg.body.key_info.action = ADDKEY;
msg.body.key_info.
msg.drv = hif_drv;
if (mode == AP_MODE) {
- msg.body.key_info.u8KeyAction = ADDKEY_AP;
+ msg.body.key_info.action = ADDKEY_AP;
msg.body.key_info.uniHostIFkeyAttr.wpa.u8Ciphermode = u8Ciphermode;
}
if (mode == STATION_MODE)
- msg.body.key_info.u8KeyAction = ADDKEY;
+ msg.body.key_info.action = ADDKEY;
msg.body.key_info.
msg.id = HOST_IF_MSG_KEY;
msg.body.key_info.type = PMKSA;
- msg.body.key_info.u8KeyAction = ADDKEY;
+ msg.body.key_info.action = ADDKEY;
msg.drv = hif_drv;
for (i = 0; i < pu8PmkidInfoArray->numpmkid; i++) {