diff options
author | Avinash Patil <patila@marvell.com> | 2012-06-15 15:21:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-20 15:14:25 -0400 |
commit | 96893538564c43276dffe5e294b56935197cf1c8 (patch) | |
tree | 03855cb6ae145f62e766e2b7edcddb4d3c52fef4 /drivers/net/wireless/mwifiex/ioctl.h | |
parent | 5d66cb62954106d4abfb67bbb5a14cec57903cbb (diff) |
mwifiex: support for WEP in AP mode
This patch adds support for WEP open/shared encryption in AP mode.
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/ioctl.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/ioctl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h index 8c8e47c792a0..9f088fb88cb7 100644 --- a/drivers/net/wireless/mwifiex/ioctl.h +++ b/drivers/net/wireless/mwifiex/ioctl.h | |||
@@ -21,6 +21,7 @@ | |||
21 | #define _MWIFIEX_IOCTL_H_ | 21 | #define _MWIFIEX_IOCTL_H_ |
22 | 22 | ||
23 | #include <net/mac80211.h> | 23 | #include <net/mac80211.h> |
24 | #include <net/lib80211.h> | ||
24 | 25 | ||
25 | enum { | 26 | enum { |
26 | MWIFIEX_SCAN_TYPE_UNCHANGED = 0, | 27 | MWIFIEX_SCAN_TYPE_UNCHANGED = 0, |
@@ -71,6 +72,13 @@ struct wpa_param { | |||
71 | u8 passphrase[MWIFIEX_WPA_PASSHPHRASE_LEN]; | 72 | u8 passphrase[MWIFIEX_WPA_PASSHPHRASE_LEN]; |
72 | }; | 73 | }; |
73 | 74 | ||
75 | struct wep_key { | ||
76 | u8 key_index; | ||
77 | u8 is_default; | ||
78 | u16 length; | ||
79 | u8 key[WLAN_KEY_LEN_WEP104]; | ||
80 | }; | ||
81 | |||
74 | #define KEY_MGMT_ON_HOST 0x03 | 82 | #define KEY_MGMT_ON_HOST 0x03 |
75 | #define MWIFIEX_AUTH_MODE_AUTO 0xFF | 83 | #define MWIFIEX_AUTH_MODE_AUTO 0xFF |
76 | #define BAND_CONFIG_MANUAL 0x00 | 84 | #define BAND_CONFIG_MANUAL 0x00 |
@@ -90,6 +98,7 @@ struct mwifiex_uap_bss_param { | |||
90 | u16 key_mgmt; | 98 | u16 key_mgmt; |
91 | u16 key_mgmt_operation; | 99 | u16 key_mgmt_operation; |
92 | struct wpa_param wpa_cfg; | 100 | struct wpa_param wpa_cfg; |
101 | struct wep_key wep_cfg[NUM_WEP_KEYS]; | ||
93 | struct ieee80211_ht_cap ht_cap; | 102 | struct ieee80211_ht_cap ht_cap; |
94 | }; | 103 | }; |
95 | 104 | ||