diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2011-01-31 13:48:25 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-04 16:29:49 -0500 |
commit | b91a515dbb4f824169755e071014230b57f0c1e1 (patch) | |
tree | acfccf075ab0a98e8bd6dc02470b959aa4b2442f /drivers/net/wireless/zd1211rw/zd_chip.h | |
parent | f773e409b959677170b3cf1d573dafc4a0a3e34e (diff) |
zd1211rw: let zd_set_beacon_interval() set dtim_period and add AP-beacon flag
Add support for AP-mode beacon. Also disable beacon when interface is set
down as otherwise hw will keep flooding NEXT_BCN interrupts.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_chip.h')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_chip.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.h b/drivers/net/wireless/zd1211rw/zd_chip.h index 7b0c58ce7056..14e4402a6111 100644 --- a/drivers/net/wireless/zd1211rw/zd_chip.h +++ b/drivers/net/wireless/zd1211rw/zd_chip.h | |||
@@ -546,6 +546,7 @@ enum { | |||
546 | #define RX_FILTER_CTRL (RX_FILTER_RTS | RX_FILTER_CTS | \ | 546 | #define RX_FILTER_CTRL (RX_FILTER_RTS | RX_FILTER_CTS | \ |
547 | RX_FILTER_CFEND | RX_FILTER_CFACK) | 547 | RX_FILTER_CFEND | RX_FILTER_CFACK) |
548 | 548 | ||
549 | #define BCN_MODE_AP 0x1000000 | ||
549 | #define BCN_MODE_IBSS 0x2000000 | 550 | #define BCN_MODE_IBSS 0x2000000 |
550 | 551 | ||
551 | /* Monitor mode sets filter to 0xfffff */ | 552 | /* Monitor mode sets filter to 0xfffff */ |
@@ -921,7 +922,8 @@ enum led_status { | |||
921 | 922 | ||
922 | int zd_chip_control_leds(struct zd_chip *chip, enum led_status status); | 923 | int zd_chip_control_leds(struct zd_chip *chip, enum led_status status); |
923 | 924 | ||
924 | int zd_set_beacon_interval(struct zd_chip *chip, u32 interval); | 925 | int zd_set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period, |
926 | int type); | ||
925 | 927 | ||
926 | static inline int zd_get_beacon_interval(struct zd_chip *chip, u32 *interval) | 928 | static inline int zd_get_beacon_interval(struct zd_chip *chip, u32 *interval) |
927 | { | 929 | { |