rtlwifi: rtl8192cu: Fix variable isfirst_ampdu
authorTaehee Yoo <ap420073@gmail.com>
Sun, 7 Jun 2015 12:03:57 +0000 (21:03 +0900)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:31:42 +0000 (12:31 +0300)
rtl92cu_rx_query_desc set a isampdu twice.
but second code is related to isfirst_ampdu.
so i change it.

Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rtlwifi/rtl8192cu/trx.c

index cbead007171fe52df19fe1b4e40feee833030b36..95880fe4106ef5da88cffa38995a7e2e4a55326b 100644 (file)
@@ -321,7 +321,7 @@ bool rtl92cu_rx_query_desc(struct ieee80211_hw *hw,
        stats->rate = (u8) GET_RX_DESC_RX_MCS(pdesc);
        stats->shortpreamble = (u16) GET_RX_DESC_SPLCP(pdesc);
        stats->isampdu = (bool) (GET_RX_DESC_PAGGR(pdesc) == 1);
-       stats->isampdu = (bool) ((GET_RX_DESC_PAGGR(pdesc) == 1)
+       stats->isfirst_ampdu = (bool)((GET_RX_DESC_PAGGR(pdesc) == 1)
                                   && (GET_RX_DESC_FAGGR(pdesc) == 1));
        stats->timestamp_low = GET_RX_DESC_TSFL(pdesc);
        stats->rx_is40Mhzpacket = (bool) GET_RX_DESC_BW(pdesc);