ath9k: Fix FIF_BCN_PRBRESP_PROMISC handling
authorAlina Friedrichsen <x-alina@gmx.net>
Mon, 2 Mar 2009 22:13:40 +0000 (23:13 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Mar 2009 19:39:39 +0000 (14:39 -0500)
So that a new created IBSS network
doesn't break on the first scan.

It seems to Sujith and me that this
stupid code unnecessary, too.

So remove it...

Signed-off-by: Alina Friedrichsen <x-alina@gmx.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/main.c

index 7effa0c40b8a8f3f3e5e09e0e1d4999e8899f2fa..59b769e716fc54c6a4034eea4a678d5312aedcb0 100644 (file)
@@ -2410,14 +2410,6 @@ static void ath9k_configure_filter(struct ieee80211_hw *hw,
        rfilt = ath_calcrxfilter(sc);
        ath9k_hw_setrxfilter(sc->sc_ah, rfilt);
 
-       if (changed_flags & FIF_BCN_PRBRESP_PROMISC) {
-               if (*total_flags & FIF_BCN_PRBRESP_PROMISC) {
-                       memcpy(sc->curbssid, ath_bcast_mac, ETH_ALEN);
-                       sc->curaid = 0;
-                       ath9k_hw_write_associd(sc);
-               }
-       }
-
        DPRINTF(sc, ATH_DBG_CONFIG, "Set HW RX filter: 0x%x\n", sc->rx.rxfilter);
 }