From: Simon Wunderlich Date: Wed, 14 Aug 2013 06:01:32 +0000 (+0200) Subject: ath9k: report 5/10 MHz channels X-Git-Tag: v3.12-rc1~132^2~84^2^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f819c0e72951f9238c53d6b7675bbd7a82c78b83;p=platform%2Fkernel%2Flinux-stable.git ath9k: report 5/10 MHz channels Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 653f7fc0647e..4ee472a5a4e4 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -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;