ath9k_htc: fix rs_datalen conversation
authorOleksij Rempel <linux@rempel-privat.de>
Thu, 6 Nov 2014 07:53:32 +0000 (08:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2014 21:31:14 +0000 (16:31 -0500)
For some reason it didn't coused obvious problems.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c

index f0484b1b617e9a043e91ad46cc2e042848caa648..2622002845ce4146fa6ee852b8b0ba98d13f006f 100644 (file)
@@ -946,7 +946,7 @@ static inline void convert_htc_flag(struct ath_rx_status *rx_stats,
 static void rx_status_htc_to_ath(struct ath_rx_status *rx_stats,
                                 struct ath_htc_rx_status *rxstatus)
 {
-       rx_stats->rs_datalen    = rxstatus->rs_datalen;
+       rx_stats->rs_datalen    = be16_to_cpu(rxstatus->rs_datalen);
        rx_stats->rs_status     = rxstatus->rs_status;
        rx_stats->rs_phyerr     = rxstatus->rs_phyerr;
        rx_stats->rs_rssi       = rxstatus->rs_rssi;