Commit ab617971 authored by Dan Williams's avatar Dan Williams Committed by David S. Miller

[PATCH] libertas: clean up 802.11 IE post-scan handling

Remove struct IE_WPA and just use direct checking of the IE
bytes like ipw.  Remove WLAN_802_11_VARIABLE_IEs because
it's unused.

Kill ieeetypes_elementid enum and just use MFIE_* from
ieee80211.h.  Also use struct ieee80211_info_element for
scan buffer processing to simplify pointer usage.
Signed-off-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 2950cd26
...@@ -91,25 +91,12 @@ struct enc_key { ...@@ -91,25 +91,12 @@ struct enc_key {
u8 key[32]; u8 key[32];
}; };
struct IE_WPA {
u8 elementid;
u8 len;
u8 oui[4];
__le16 version;
};
/* wlan_offset_value */ /* wlan_offset_value */
struct wlan_offset_value { struct wlan_offset_value {
u32 offset; u32 offset;
u32 value; u32 value;
}; };
struct WLAN_802_11_VARIABLE_IEs {
u8 elementid;
u8 length;
u8 data[1];
};
/* Define general data structure */ /* Define general data structure */
/* cmd_DS_GEN */ /* cmd_DS_GEN */
struct cmd_ds_gen { struct cmd_ds_gen {
......
This diff is collapsed.
...@@ -7,29 +7,6 @@ ...@@ -7,29 +7,6 @@
#include <linux/if_ether.h> #include <linux/if_ether.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
/** IEEE type definitions */
enum ieeetypes_elementid {
SSID = 0,
SUPPORTED_RATES,
FH_PARAM_SET,
DS_PARAM_SET,
CF_PARAM_SET,
TIM,
IBSS_PARAM_SET,
COUNTRY_INFO = 7,
CHALLENGE_TEXT = 16,
EXTENDED_SUPPORTED_RATES = 50,
VENDOR_SPECIFIC_221 = 221,
WPA_IE = 221,
WPA2_IE = 48,
EXTRA_IE = 133,
} __attribute__ ((packed));
#define CAPINFO_MASK (~(0x00da)) #define CAPINFO_MASK (~(0x00da))
struct ieeetypes_cfparamset { struct ieeetypes_cfparamset {
......
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