diff options
author | Igor Perminov <igor.perminov@inbox.ru> | 2009-08-08 17:55:55 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:53 -0400 |
commit | 1afcfd54fdf913017c07fa1ee497141a7958991d (patch) | |
tree | 38e9bfc5af6ad83b014a795f6bf4623cd9083e40 /drivers/net/wireless/rt2x00/rt73usb.c | |
parent | 17512dc3b7fc9ff1a60d3748ce87c323df507c3d (diff) |
rt2x00: FIF_PSPOLL filter flag support
This patch implements FIF_PSPOLL filter flag support in rt2x00 drivers,
which has been introduced in mac80211 (see
http://marc.info/?l=linux-wireless&m=124897986330807&w=2).
Signed-off-by: Igor Perminov <igor.perminov@inbox.ru>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt73usb.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 4f9b1772e1a1..4b9955b1c70e 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -493,7 +493,7 @@ static void rt73usb_config_filter(struct rt2x00_dev *rt2x00dev, | |||
493 | rt2x00_set_field32(®, TXRX_CSR0_DROP_PHYSICAL, | 493 | rt2x00_set_field32(®, TXRX_CSR0_DROP_PHYSICAL, |
494 | !(filter_flags & FIF_PLCPFAIL)); | 494 | !(filter_flags & FIF_PLCPFAIL)); |
495 | rt2x00_set_field32(®, TXRX_CSR0_DROP_CONTROL, | 495 | rt2x00_set_field32(®, TXRX_CSR0_DROP_CONTROL, |
496 | !(filter_flags & FIF_CONTROL)); | 496 | !(filter_flags & (FIF_CONTROL | FIF_PSPOLL))); |
497 | rt2x00_set_field32(®, TXRX_CSR0_DROP_NOT_TO_ME, | 497 | rt2x00_set_field32(®, TXRX_CSR0_DROP_NOT_TO_ME, |
498 | !(filter_flags & FIF_PROMISC_IN_BSS)); | 498 | !(filter_flags & FIF_PROMISC_IN_BSS)); |
499 | rt2x00_set_field32(®, TXRX_CSR0_DROP_TO_DS, | 499 | rt2x00_set_field32(®, TXRX_CSR0_DROP_TO_DS, |
@@ -2144,6 +2144,12 @@ static int rt73usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
2144 | return retval; | 2144 | return retval; |
2145 | 2145 | ||
2146 | /* | 2146 | /* |
2147 | * This device has multiple filters for control frames, | ||
2148 | * but has no a separate filter for PS Poll frames. | ||
2149 | */ | ||
2150 | __set_bit(DRIVER_SUPPORT_CONTROL_FILTERS, &rt2x00dev->flags); | ||
2151 | |||
2152 | /* | ||
2147 | * This device requires firmware. | 2153 | * This device requires firmware. |
2148 | */ | 2154 | */ |
2149 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); | 2155 | __set_bit(DRIVER_REQUIRE_FIRMWARE, &rt2x00dev->flags); |