madwifi: clean up handling of various timings such as slot time, ack timeout, eifs...
[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: