madwifi: fix compile error on kernels without net_device api compatibility
[openwrt.git] / package / madwifi / patches / 126-rxerr_frames.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -6474,8 +6474,9 @@ ath_rx_tasklet(TQUEUE_ARG data)
4 /*
5 * Reject error frames if we have no vaps that
6 * are operating in monitor mode.
7 + * Reject empty frames as well
8 */
9 - if (sc->sc_nmonvaps == 0)
10 + if ((sc->sc_nmonvaps == 0) || (rs->rs_datalen == 0))
11 goto rx_next;
12 }
13 rx_accept:
This page took 0.042603 seconds and 5 git commands to generate.