Return-path: Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:38281 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751861Ab3HNGBw (ORCPT ); Wed, 14 Aug 2013 02:01:52 -0400 From: Simon Wunderlich To: linville@tuxdriver.com Cc: linux-wireless@vger.kernel.org, Simon Wunderlich , Mathias Kretschmer Subject: [PATCH-resend 3/9] ath9k: report 5/10 MHz channels Date: Wed, 14 Aug 2013 08:01:32 +0200 Message-Id: <1376460098-26648-4-git-send-email-siwu@hrz.tu-chemnitz.de> (sfid-20130814_080156_732455_BB5554BD) In-Reply-To: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> References: <1376460098-26648-1-git-send-email-siwu@hrz.tu-chemnitz.de> Sender: linux-wireless-owner@vger.kernel.org List-ID: Signed-off-by: Simon Wunderlich Signed-off-by: Mathias Kretschmer --- drivers/net/wireless/ath/ath9k/recv.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/wireless/ath/ath9k/recv.c b/drivers/net/wireless/ath/ath9k/recv.c index 62dff97..1e0a08e 100644 --- a/drivers/net/wireless/ath/ath9k/recv.c +++ b/drivers/net/wireless/ath/ath9k/recv.c @@ -865,6 +865,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; -- 1.7.10.4