diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2013-08-14 05:41:19 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-08-15 22:08:05 +0200 |
commit | eb5f952c31abdd5849fb9005beb3dc4ac734c355 (patch) | |
tree | cd584333992a1b14fc912c14df539ace4147d84c /drivers/net/wireless/ath | |
parent | ath9k: Fix RX beacon processing (diff) | |
download | linux-eb5f952c31abdd5849fb9005beb3dc4ac734c355.tar.xz linux-eb5f952c31abdd5849fb9005beb3dc4ac734c355.zip |
ath9k: Move the RX poll check to preprocess()
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/recv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 090c27e756b8..5b84ce4ee45e 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -1124,6 +1124,10 @@ static int ath9k_rx_skb_preprocess(struct ath_softc *sc, return -EINVAL; rx_stats->is_mybeacon = ath9k_is_mybeacon(sc, hdr); + if (rx_stats->is_mybeacon) { + sc->hw_busy_count = 0; + ath_start_rx_poll(sc, 3); + } if (ath9k_process_rate(common, hw, rx_stats, rx_status)) return -EINVAL; @@ -1278,10 +1282,6 @@ int ath_rx_tasklet(struct ath_softc *sc, int flush, bool hp) if (retval) goto requeue_drop_frag; - if (rs.is_mybeacon) { - sc->hw_busy_count = 0; - ath_start_rx_poll(sc, 3); - } /* Ensure we always have an skb to requeue once we are done * processing the current buffer's skb */ requeue_skb = ath_rxbuf_alloc(common, common->rx_bufsize, GFP_ATOMIC); |