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>
This commit is contained in:
committed by
John W. Linville
parent
46e947b9c3
commit
e2fd4611d5
@@ -360,6 +360,9 @@ struct wl1251 {
|
||||
/* PSM mode requested */
|
||||
bool psm_requested;
|
||||
|
||||
u16 beacon_int;
|
||||
u8 dtim_period;
|
||||
|
||||
/* in dBm */
|
||||
int power_level;
|
||||
|
||||
@@ -392,6 +395,9 @@ void wl1251_disable_interrupts(struct wl1251 *wl);
|
||||
|
||||
#define WL1251_TX_QUEUE_MAX_LENGTH 20
|
||||
|
||||
#define WL1251_DEFAULT_BEACON_INT 100
|
||||
#define WL1251_DEFAULT_DTIM_PERIOD 1
|
||||
|
||||
#define CHIP_ID_1251_PG10 (0x7010101)
|
||||
#define CHIP_ID_1251_PG11 (0x7020101)
|
||||
#define CHIP_ID_1251_PG12 (0x7030101)
|
||||
|
Reference in New Issue
Block a user