diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/ioctl.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/ioctl.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/ioctl.h b/drivers/net/wireless/mwifiex/ioctl.h index 99c06649f94c..e6be6ee75951 100644 --- a/drivers/net/wireless/mwifiex/ioctl.h +++ b/drivers/net/wireless/mwifiex/ioctl.h | |||
@@ -62,6 +62,36 @@ enum { | |||
62 | BAND_AN = 16, | 62 | BAND_AN = 16, |
63 | }; | 63 | }; |
64 | 64 | ||
65 | #define MWIFIEX_WPA_PASSHPHRASE_LEN 64 | ||
66 | struct wpa_param { | ||
67 | u8 pairwise_cipher_wpa; | ||
68 | u8 pairwise_cipher_wpa2; | ||
69 | u8 group_cipher; | ||
70 | u32 length; | ||
71 | u8 passphrase[MWIFIEX_WPA_PASSHPHRASE_LEN]; | ||
72 | }; | ||
73 | |||
74 | #define KEY_MGMT_ON_HOST 0x03 | ||
75 | #define MWIFIEX_AUTH_MODE_AUTO 0xFF | ||
76 | #define BAND_CONFIG_MANUAL 0x00 | ||
77 | struct mwifiex_uap_bss_param { | ||
78 | u8 channel; | ||
79 | u8 band_cfg; | ||
80 | u16 rts_threshold; | ||
81 | u16 frag_threshold; | ||
82 | u8 retry_limit; | ||
83 | struct mwifiex_802_11_ssid ssid; | ||
84 | u8 bcast_ssid_ctl; | ||
85 | u8 radio_ctl; | ||
86 | u8 dtim_period; | ||
87 | u16 beacon_period; | ||
88 | u16 auth_mode; | ||
89 | u16 protocol; | ||
90 | u16 key_mgmt; | ||
91 | u16 key_mgmt_operation; | ||
92 | struct wpa_param wpa_cfg; | ||
93 | }; | ||
94 | |||
65 | enum { | 95 | enum { |
66 | ADHOC_IDLE, | 96 | ADHOC_IDLE, |
67 | ADHOC_STARTED, | 97 | ADHOC_STARTED, |
@@ -96,7 +126,7 @@ struct mwifiex_bss_info { | |||
96 | u32 bss_mode; | 126 | u32 bss_mode; |
97 | struct cfg80211_ssid ssid; | 127 | struct cfg80211_ssid ssid; |
98 | u32 bss_chan; | 128 | u32 bss_chan; |
99 | u32 region_code; | 129 | u8 country_code[3]; |
100 | u32 media_connected; | 130 | u32 media_connected; |
101 | u32 max_power_level; | 131 | u32 max_power_level; |
102 | u32 min_power_level; | 132 | u32 min_power_level; |
@@ -269,6 +299,8 @@ struct mwifiex_ds_read_eeprom { | |||
269 | 299 | ||
270 | #define IEEE_MAX_IE_SIZE 256 | 300 | #define IEEE_MAX_IE_SIZE 256 |
271 | 301 | ||
302 | #define MWIFIEX_IE_HDR_SIZE (sizeof(struct mwifiex_ie) - IEEE_MAX_IE_SIZE) | ||
303 | |||
272 | struct mwifiex_ds_misc_gen_ie { | 304 | struct mwifiex_ds_misc_gen_ie { |
273 | u32 type; | 305 | u32 type; |
274 | u32 len; | 306 | u32 len; |
@@ -303,6 +335,7 @@ struct mwifiex_ds_misc_subsc_evt { | |||
303 | 335 | ||
304 | #define MWIFIEX_MAX_VSIE_LEN (256) | 336 | #define MWIFIEX_MAX_VSIE_LEN (256) |
305 | #define MWIFIEX_MAX_VSIE_NUM (8) | 337 | #define MWIFIEX_MAX_VSIE_NUM (8) |
338 | #define MWIFIEX_VSIE_MASK_CLEAR 0x00 | ||
306 | #define MWIFIEX_VSIE_MASK_SCAN 0x01 | 339 | #define MWIFIEX_VSIE_MASK_SCAN 0x01 |
307 | #define MWIFIEX_VSIE_MASK_ASSOC 0x02 | 340 | #define MWIFIEX_VSIE_MASK_ASSOC 0x02 |
308 | #define MWIFIEX_VSIE_MASK_ADHOC 0x04 | 341 | #define MWIFIEX_VSIE_MASK_ADHOC 0x04 |