summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorPeter Oh <poh@qca.qualcomm.com>2014-12-18 10:13:00 -0800
committerKalle Valo <kvalo@qca.qualcomm.com>2014-12-23 17:24:50 +0200
commit6faab1273f79788a7d90f8c3c99b9b8f3b404c98 (patch)
tree118dc3efd3cb08d0a5f2c792b9f2975ea1b4b1f8 /drivers/net/wireless/ath
parent55884c045d31a29cf69db8332d1064a1b61dd159 (diff)
downloadop-kernel-dev-6faab1273f79788a7d90f8c3c99b9b8f3b404c98.zip
op-kernel-dev-6faab1273f79788a7d90f8c3c99b9b8f3b404c98.tar.gz
ath10k: set phymode to 11b when NO_OFDM flag set
phymode should use 11b only if NO_OFDM flags is set. Hence check up channel flag for NO_OFDM and set to 11b. Signed-off-by: Peter Oh <poh@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath10k/mac.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
index 827faf07..5085f55 100644
--- a/drivers/net/wireless/ath/ath10k/mac.c
+++ b/drivers/net/wireless/ath/ath10k/mac.c
@@ -269,7 +269,10 @@ chan_to_phymode(const struct cfg80211_chan_def *chandef)
case IEEE80211_BAND_2GHZ:
switch (chandef->width) {
case NL80211_CHAN_WIDTH_20_NOHT:
- phymode = MODE_11G;
+ if (chandef->chan->flags & IEEE80211_CHAN_NO_OFDM)
+ phymode = MODE_11B;
+ else
+ phymode = MODE_11G;
break;
case NL80211_CHAN_WIDTH_20:
phymode = MODE_11NG_HT20;
OpenPOWER on IntegriCloud