diff options
author | John W. Linville <linville@tuxdriver.com> | 2013-06-27 13:50:09 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-27 13:50:09 -0400 |
commit | 0f817ed52d07873cd39c9d3f6d87fae962dc742f (patch) | |
tree | 848718cfe6210c98f8f6c5950f8d0d0880484570 | |
parent | 0c9acaa8357a334645c96d505528a20f2fd4ac0a (diff) |
ath10k: minimally handle new channel width enumeration values
CC drivers/net/wireless/ath/ath10k/mac.o
drivers/net/wireless/ath/ath10k/mac.c: In function ‘chan_to_phymode’:
drivers/net/wireless/ath/ath10k/mac.c:229:3: warning: enumeration value ‘NL80211_CHAN_WIDTH_5’ not handled in switch [-Wswitch]
drivers/net/wireless/ath/ath10k/mac.c:229:3: warning: enumeration value ‘NL80211_CHAN_WIDTH_10’ not handled in switch [-Wswitch]
drivers/net/wireless/ath/ath10k/mac.c:247:3: warning: enumeration value ‘NL80211_CHAN_WIDTH_5’ not handled in switch [-Wswitch]
drivers/net/wireless/ath/ath10k/mac.c:247:3: warning: enumeration value ‘NL80211_CHAN_WIDTH_10’ not handled in switch [-Wswitch]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/mac.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 95e306ef4df2..da5c333d0d4b 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c | |||
@@ -236,6 +236,8 @@ chan_to_phymode(const struct cfg80211_chan_def *chandef) | |||
236 | case NL80211_CHAN_WIDTH_40: | 236 | case NL80211_CHAN_WIDTH_40: |
237 | phymode = MODE_11NG_HT40; | 237 | phymode = MODE_11NG_HT40; |
238 | break; | 238 | break; |
239 | case NL80211_CHAN_WIDTH_5: | ||
240 | case NL80211_CHAN_WIDTH_10: | ||
239 | case NL80211_CHAN_WIDTH_80: | 241 | case NL80211_CHAN_WIDTH_80: |
240 | case NL80211_CHAN_WIDTH_80P80: | 242 | case NL80211_CHAN_WIDTH_80P80: |
241 | case NL80211_CHAN_WIDTH_160: | 243 | case NL80211_CHAN_WIDTH_160: |
@@ -257,6 +259,8 @@ chan_to_phymode(const struct cfg80211_chan_def *chandef) | |||
257 | case NL80211_CHAN_WIDTH_80: | 259 | case NL80211_CHAN_WIDTH_80: |
258 | phymode = MODE_11AC_VHT80; | 260 | phymode = MODE_11AC_VHT80; |
259 | break; | 261 | break; |
262 | case NL80211_CHAN_WIDTH_5: | ||
263 | case NL80211_CHAN_WIDTH_10: | ||
260 | case NL80211_CHAN_WIDTH_80P80: | 264 | case NL80211_CHAN_WIDTH_80P80: |
261 | case NL80211_CHAN_WIDTH_160: | 265 | case NL80211_CHAN_WIDTH_160: |
262 | phymode = MODE_UNKNOWN; | 266 | phymode = MODE_UNKNOWN; |