};
struct key_attr {
- enum KEY_TYPE enuKeyType;
+ enum KEY_TYPE type;
u8 u8KeyAction;
union host_if_key_attr uniHostIFkeyAttr;
};
s8 s8idxarray[1];
s8 ret = 0;
- switch (pstrHostIFkeyAttr->enuKeyType) {
+ switch (pstrHostIFkeyAttr->type) {
case WEP:
memset(&msg, 0, sizeof(struct host_if_msg));
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WEP;
+ msg.body.key_info.type = WEP;
msg.body.key_info.u8KeyAction = REMOVEKEY;
msg.drv = hif_drv;
msg.body.key_info.uniHostIFkeyAttr.wep.index = index;
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WEP;
+ msg.body.key_info.type = WEP;
msg.body.key_info.u8KeyAction = DEFAULTKEY;
msg.drv = hif_drv;
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WEP;
+ msg.body.key_info.type = WEP;
msg.body.key_info.u8KeyAction = ADDKEY;
msg.drv = hif_drv;
PRINT_INFO(HOSTAPD_DBG, "KEY is %x\n", pu8WepKey[i]);
}
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WEP;
+ msg.body.key_info.type = WEP;
msg.body.key_info.u8KeyAction = ADDKEY_AP;
msg.drv = hif_drv;
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WPAPtk;
+ msg.body.key_info.type = WPAPtk;
if (mode == AP_MODE) {
msg.body.key_info.u8KeyAction = ADDKEY_AP;
msg.body.key_info.uniHostIFkeyAttr.wpa.u8keyidx = u8Idx;
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = WPARxGtk;
+ msg.body.key_info.type = WPARxGtk;
msg.drv = hif_drv;
if (mode == AP_MODE) {
memset(&msg, 0, sizeof(struct host_if_msg));
msg.id = HOST_IF_MSG_KEY;
- msg.body.key_info.enuKeyType = PMKSA;
+ msg.body.key_info.type = PMKSA;
msg.body.key_info.u8KeyAction = ADDKEY;
msg.drv = hif_drv;