diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-08 14:56:25 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:47:50 -0400 |
commit | d94cd297e58b55bb272fdfd51ff0de7acbc1941b (patch) | |
tree | 84b809c8ff5a24514c1c9f77983f2ec38ecfa9dd /drivers/net/wireless/wl12xx/wl1271.h | |
parent | 8a5a37a6c492f7c9602aa72ef19f69c926cdca15 (diff) |
wl1271: Update join usage
Update the usage of join's, including using actual beacon interval and
dtim from AP, and configuring a basic rate set from AP.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271.h b/drivers/net/wireless/wl12xx/wl1271.h index 671dc5af2e68..05eb29c847c6 100644 --- a/drivers/net/wireless/wl12xx/wl1271.h +++ b/drivers/net/wireless/wl12xx/wl1271.h | |||
@@ -104,6 +104,8 @@ enum { | |||
104 | CFG_RX_CTL_EN | CFG_RX_BCN_EN | \ | 104 | CFG_RX_CTL_EN | CFG_RX_BCN_EN | \ |
105 | CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN) | 105 | CFG_RX_AUTH_EN | CFG_RX_ASSOC_EN) |
106 | 106 | ||
107 | #define WL1271_DEFAULT_BASIC_RATE_SET (ACX_RATE_MASK_ALL) | ||
108 | |||
107 | #define WL1271_FW_NAME "wl1271-fw.bin" | 109 | #define WL1271_FW_NAME "wl1271-fw.bin" |
108 | #define WL1271_NVS_NAME "wl1271-nvs.bin" | 110 | #define WL1271_NVS_NAME "wl1271-nvs.bin" |
109 | 111 | ||
@@ -118,6 +120,9 @@ enum { | |||
118 | #define WL1271_ELP_HW_STATE_ASLEEP 0 | 120 | #define WL1271_ELP_HW_STATE_ASLEEP 0 |
119 | #define WL1271_ELP_HW_STATE_IRQ 1 | 121 | #define WL1271_ELP_HW_STATE_IRQ 1 |
120 | 122 | ||
123 | #define WL1271_DEFAULT_BEACON_INT 100 | ||
124 | #define WL1271_DEFAULT_DTIM_PERIOD 1 | ||
125 | |||
121 | enum wl1271_state { | 126 | enum wl1271_state { |
122 | WL1271_STATE_OFF, | 127 | WL1271_STATE_OFF, |
123 | WL1271_STATE_ON, | 128 | WL1271_STATE_ON, |
@@ -369,6 +374,13 @@ struct wl1271 { | |||
369 | /* Our association ID */ | 374 | /* Our association ID */ |
370 | u16 aid; | 375 | u16 aid; |
371 | 376 | ||
377 | /* Beacon parameters */ | ||
378 | u16 beacon_int; | ||
379 | u8 dtim_period; | ||
380 | |||
381 | /* currently configured rate set */ | ||
382 | u32 basic_rate_set; | ||
383 | |||
372 | /* The current band */ | 384 | /* The current band */ |
373 | enum ieee80211_band band; | 385 | enum ieee80211_band band; |
374 | 386 | ||