Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6faab127 authored by Peter Oh's avatar Peter Oh Committed by Kalle Valo
Browse files

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: default avatarPeter Oh <poh@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 55884c04
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -269,6 +269,9 @@ chan_to_phymode(const struct cfg80211_chan_def *chandef)
	case IEEE80211_BAND_2GHZ:
	case IEEE80211_BAND_2GHZ:
		switch (chandef->width) {
		switch (chandef->width) {
		case NL80211_CHAN_WIDTH_20_NOHT:
		case NL80211_CHAN_WIDTH_20_NOHT:
			if (chandef->chan->flags & IEEE80211_CHAN_NO_OFDM)
				phymode = MODE_11B;
			else
				phymode = MODE_11G;
				phymode = MODE_11G;
			break;
			break;
		case NL80211_CHAN_WIDTH_20:
		case NL80211_CHAN_WIDTH_20: