]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ath5k: allow APs to receive beacons
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 3 Nov 2008 22:43:00 +0000 (14:43 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Nov 2008 16:06:06 +0000 (11:06 -0500)
Allow APs to receive beacons to detect when it needs
to use protection to update the NAV correctly on
11b stations.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/base.c

index 1ed152f2dec382e2fe9e74786bf007a6c587c252..34cd1a4a297f3a5b25ef5e460174979eabee1a74 100644 (file)
@@ -2953,9 +2953,9 @@ static void ath5k_configure_filter(struct ieee80211_hw *hw,
                test_bit(ATH_STAT_PROMISC, sc->status))
                rfilt |= AR5K_RX_FILTER_PROM;
        if (sc->opmode == NL80211_IFTYPE_STATION ||
-               sc->opmode == NL80211_IFTYPE_ADHOC) {
+               sc->opmode == NL80211_IFTYPE_ADHOC ||
+               sc->opmode == NL80211_IFTYPE_AP)
                rfilt |= AR5K_RX_FILTER_BEACON;
-       }
        if (sc->opmode == NL80211_IFTYPE_MESH_POINT)
                rfilt |= AR5K_RX_FILTER_CONTROL | AR5K_RX_FILTER_BEACON |
                        AR5K_RX_FILTER_PROBEREQ | AR5K_RX_FILTER_PROM;