diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-31 15:24:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-01 17:14:08 -0400 |
commit | e0b005fa1479045fe879944036268af3ebcd1835 (patch) | |
tree | 0c5c72716cdf76f48be7cc38aa8ae5e86396a47e /drivers/net/wireless/rt2x00/rt2x00mac.c | |
parent | bc5213f468b4d0520a06e27ea2cc9724bc5b896c (diff) | |
download | kernel_samsung_smdk4412-e0b005fa1479045fe879944036268af3ebcd1835.zip kernel_samsung_smdk4412-e0b005fa1479045fe879944036268af3ebcd1835.tar.gz kernel_samsung_smdk4412-e0b005fa1479045fe879944036268af3ebcd1835.tar.bz2 |
rt2x00: TO_DS filter depends on intf_ap_count
The TO_DS filter does not only depend on the FIF_PROMISC_IN_BSS flag
provided by mac80211, but also on the intf_ap_count count.
This makes sense, since when Master mode is active, we should all frames
that are send to the active AP (the device itself).
This means that when an interface is added we should force the
packet filter to be updated during the next mac80211 call of
configure_filter() to make sure the intf_ap_count field is checked.
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/rt2x00mac.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index a0adf5a..dc70e7a 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c @@ -253,6 +253,13 @@ int rt2x00mac_add_interface(struct ieee80211_hw *hw, */ rt2x00lib_config_intf(rt2x00dev, intf, conf->type, intf->mac, NULL); + /* + * Some filters depend on the current working mode. We can force + * an update during the next configure_filter() run by mac80211 by + * resetting the current packet_filter state. + */ + rt2x00dev->packet_filter = 0; + return 0; } EXPORT_SYMBOL_GPL(rt2x00mac_add_interface); |