Commit 7327890a authored by Bing Zhao's avatar Bing Zhao Committed by John W. Linville

mwifiex: remove struct mwifiex_802_11_fixed_ies

struct mwifiex_802_11_fixed_ies is not necessary.
struct mwifiex_event_wep_icv_err is not used any more.
Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2b06bdbe
...@@ -343,20 +343,6 @@ enum ENH_PS_MODES { ...@@ -343,20 +343,6 @@ enum ENH_PS_MODES {
#define EVENT_GET_BSS_TYPE(event_cause) \ #define EVENT_GET_BSS_TYPE(event_cause) \
(((event_cause) >> 24) & 0x00ff) (((event_cause) >> 24) & 0x00ff)
struct mwifiex_event_wep_icv_err {
u16 reason_code;
u8 src_mac_addr[ETH_ALEN];
u8 wep_key_index;
u8 wep_key_length;
u8 key[WLAN_KEY_LEN_WEP104];
};
struct mwifiex_802_11_fixed_ies {
u8 time_stamp[8];
__le16 beacon_interval;
__le16 capabilities;
};
struct mwifiex_ie_types_header { struct mwifiex_ie_types_header {
__le16 type; __le16 type;
__le16 len; __le16 len;
......
...@@ -1210,7 +1210,8 @@ mwifiex_interpret_bss_desc_with_ie(struct mwifiex_adapter *adapter, ...@@ -1210,7 +1210,8 @@ mwifiex_interpret_bss_desc_with_ie(struct mwifiex_adapter *adapter,
struct ieee_types_ds_param_set *ds_param_set; struct ieee_types_ds_param_set *ds_param_set;
struct ieee_types_cf_param_set *cf_param_set; struct ieee_types_cf_param_set *cf_param_set;
struct ieee_types_ibss_param_set *ibss_param_set; struct ieee_types_ibss_param_set *ibss_param_set;
struct mwifiex_802_11_fixed_ies fixed_ie; __le16 beacon_interval;
__le16 capabilities;
u8 *current_ptr; u8 *current_ptr;
u8 *rate; u8 *rate;
u8 element_len; u8 element_len;
...@@ -1283,22 +1284,21 @@ mwifiex_interpret_bss_desc_with_ie(struct mwifiex_adapter *adapter, ...@@ -1283,22 +1284,21 @@ mwifiex_interpret_bss_desc_with_ie(struct mwifiex_adapter *adapter,
bss_entry->beacon_buf_size = bytes_left_for_current_beacon; bss_entry->beacon_buf_size = bytes_left_for_current_beacon;
/* Time stamp is 8 bytes long */ /* Time stamp is 8 bytes long */
memcpy(fixed_ie.time_stamp, current_ptr, 8);
memcpy(bss_entry->time_stamp, current_ptr, 8); memcpy(bss_entry->time_stamp, current_ptr, 8);
current_ptr += 8; current_ptr += 8;
bytes_left_for_current_beacon -= 8; bytes_left_for_current_beacon -= 8;
/* Beacon interval is 2 bytes long */ /* Beacon interval is 2 bytes long */
memcpy(&fixed_ie.beacon_interval, current_ptr, 2); memcpy(&beacon_interval, current_ptr, 2);
bss_entry->beacon_period = le16_to_cpu(fixed_ie.beacon_interval); bss_entry->beacon_period = le16_to_cpu(beacon_interval);
current_ptr += 2; current_ptr += 2;
bytes_left_for_current_beacon -= 2; bytes_left_for_current_beacon -= 2;
/* Capability information is 2 bytes long */ /* Capability information is 2 bytes long */
memcpy(&fixed_ie.capabilities, current_ptr, 2); memcpy(&capabilities, current_ptr, 2);
dev_dbg(adapter->dev, "info: InterpretIE: fixed_ie.capabilities=0x%X\n", dev_dbg(adapter->dev, "info: InterpretIE: capabilities=0x%X\n",
fixed_ie.capabilities); capabilities);
bss_entry->cap_info_bitmap = le16_to_cpu(fixed_ie.capabilities); bss_entry->cap_info_bitmap = le16_to_cpu(capabilities);
current_ptr += 2; current_ptr += 2;
bytes_left_for_current_beacon -= 2; bytes_left_for_current_beacon -= 2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment