madwifi: improve automatic channel selection by taking idle airtime into account
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 317-bmask.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -8689,6 +8689,10 @@ ath_startrecv(struct ath_softc *sc)
4
5 sc->sc_rxbufcur = NULL;
6
7 + /* configure bssid mask */
8 + if (sc->sc_hasbmask)
9 + ath_hal_setbssidmask(ah, sc->sc_bssidmask);
10 +
11 bf = STAILQ_FIRST(&sc->sc_rxbuf);
12 ath_hal_putrxbuf(ah, bf->bf_daddr);
13 ath_hal_rxena(ah); /* enable recv descriptors */