diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-08-07 06:34:12 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:39 -0400 |
commit | e2fd4611d50a1cd13a370f84b672a5f29472ee09 (patch) | |
tree | 2195d420e6cbdc73acbbd3be182aa56aa4c0484c /drivers/net/wireless/wl12xx/wl1251.h | |
parent | 46e947b9c382f67f84cffec3bf068d6d23695058 (diff) |
wl1251: use beacon interval and dtim period provided by mac80211
wl1251 was using hardcoded beacon intervals and dtim periods, use the ones
provided by mac80211 instead.
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Reviewed-by: Vidhya Govindan <vidhya.govindan@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251.h b/drivers/net/wireless/wl12xx/wl1251.h index 44c5001beeda..86d2abea4e1e 100644 --- a/drivers/net/wireless/wl12xx/wl1251.h +++ b/drivers/net/wireless/wl12xx/wl1251.h | |||
@@ -360,6 +360,9 @@ struct wl1251 { | |||
360 | /* PSM mode requested */ | 360 | /* PSM mode requested */ |
361 | bool psm_requested; | 361 | bool psm_requested; |
362 | 362 | ||
363 | u16 beacon_int; | ||
364 | u8 dtim_period; | ||
365 | |||
363 | /* in dBm */ | 366 | /* in dBm */ |
364 | int power_level; | 367 | int power_level; |
365 | 368 | ||
@@ -392,6 +395,9 @@ void wl1251_disable_interrupts(struct wl1251 *wl); | |||
392 | 395 | ||
393 | #define WL1251_TX_QUEUE_MAX_LENGTH 20 | 396 | #define WL1251_TX_QUEUE_MAX_LENGTH 20 |
394 | 397 | ||
398 | #define WL1251_DEFAULT_BEACON_INT 100 | ||
399 | #define WL1251_DEFAULT_DTIM_PERIOD 1 | ||
400 | |||
395 | #define CHIP_ID_1251_PG10 (0x7010101) | 401 | #define CHIP_ID_1251_PG10 (0x7010101) |
396 | #define CHIP_ID_1251_PG11 (0x7020101) | 402 | #define CHIP_ID_1251_PG11 (0x7020101) |
397 | #define CHIP_ID_1251_PG12 (0x7030101) | 403 | #define CHIP_ID_1251_PG12 (0x7030101) |