ath5k: report 5/10 MHz channels
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 14 Aug 2013 06:01:35 +0000 (08:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Aug 2013 18:17:49 +0000 (14:17 -0400)
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/base.c

index ce67ab791eae9d008ed4c3d318b8c8949c30f428..260a6fce89b5288d99fb115783a7673aed4ae971 100644 (file)
@@ -1400,6 +1400,16 @@ ath5k_receive_frame(struct ath5k_hw *ah, struct sk_buff *skb,
 
        rxs->rate_idx = ath5k_hw_to_driver_rix(ah, rs->rs_rate);
        rxs->flag |= ath5k_rx_decrypted(ah, skb, rs);
+       switch (ah->ah_bwmode) {
+       case AR5K_BWMODE_5MHZ:
+               rxs->flag |= RX_FLAG_5MHZ;
+               break;
+       case AR5K_BWMODE_10MHZ:
+               rxs->flag |= RX_FLAG_10MHZ;
+               break;
+       default:
+               break;
+       }
 
        if (rxs->rate_idx >= 0 && rs->rs_rate ==
            ah->sbands[ah->curchan->band].bitrates[rxs->rate_idx].hw_value_short)