The various error bits that ath_debug_stat_rx()
checks are valid only for the last descriptor for
a chained packet, handle this correctly.
Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
                return 0;
 
        ath9k_process_tsf(rx_stats, rx_status, tsf);
+       ath_debug_stat_rx(sc, rx_stats);
 
        /*
         * Process PHY errors and return so that the packet
                    !ieee80211_is_qos_nullfunc(hdr->frame_control))
                        sc->rx.num_pkts++;
 
-               ath_debug_stat_rx(sc, &rs);
-
                rxs = IEEE80211_SKB_RXCB(hdr_skb);
                memset(rxs, 0, sizeof(struct ieee80211_rx_status));