ath9k: report 5/10 MHz channels
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 14 Aug 2013 06:01:32 +0000 (08:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Aug 2013 18:17:48 +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/ath9k/recv.c

index 653f7fc0647e32177f867baf791888e301d419a4..4ee472a5a4e4ee6e81b1c0ffc820b6f685fb7ad1 100644 (file)
@@ -852,6 +852,17 @@ static int ath9k_process_rate(struct ath_common *common,
        band = hw->conf.chandef.chan->band;
        sband = hw->wiphy->bands[band];
 
+       switch (hw->conf.chandef.width) {
+       case NL80211_CHAN_WIDTH_5:
+               rxs->flag |= RX_FLAG_5MHZ;
+               break;
+       case NL80211_CHAN_WIDTH_10:
+               rxs->flag |= RX_FLAG_10MHZ;
+               break;
+       default:
+               break;
+       }
+
        if (rx_stats->rs_rate & 0x80) {
                /* HT rate */
                rxs->flag |= RX_FLAG_HT;