fix a small race condition in the madwifi queue handling
[openwrt-10.03/.git] / package / madwifi / patches / 317-bmask.patch
1 Index: madwifi-dfs-r3252/ath/if_ath.c
2 ===================================================================
3 --- madwifi-dfs-r3252.orig/ath/if_ath.c 2008-01-26 05:46:05.078738026 +0100
4 +++ madwifi-dfs-r3252/ath/if_ath.c      2008-01-26 05:46:09.658999042 +0100
5 @@ -8626,6 +8626,10 @@
6  
7         sc->sc_rxbufcur = NULL;
8  
9 +       /* configure bssid mask */
10 +       if (sc->sc_hasbmask)
11 +               ath_hal_setbssidmask(ah, sc->sc_bssidmask);
12 +
13         bf = STAILQ_FIRST(&sc->sc_rxbuf);
14         ath_hal_putrxbuf(ah, bf->bf_daddr);
15         ath_hal_rxena(ah);              /* enable recv descriptors */