summaryrefslogtreecommitdiff
path: root/net/wireless
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-07-17 19:55:27 +0100
committerJohannes Berg <johannes.berg@intel.com>2016-08-02 09:50:25 +0200
commit680682d4d537565e2c358483e1feeca30a8cf3d4 (patch)
tree07ac24dfd352cf4d4d0e1cb02964ae4cc377542a /net/wireless
parentecd5a32318280133e8ae93f10ea693293a04a786 (diff)
cfg80211: fix missing break in NL8211_CHAN_WIDTH_80P80 case
The switch on chandef->width is missing a break on the NL8211_CHAN_WIDTH_80P80 case; currently we get a WARN_ON when center_freq2 is non-zero because of the missing break. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/chan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/chan.c b/net/wireless/chan.c
index da49c0b1fd32..bb3d64ee68aa 100644
--- a/net/wireless/chan.c
+++ b/net/wireless/chan.c
@@ -513,6 +513,7 @@ static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy,
r = cfg80211_get_chans_dfs_available(wiphy,
chandef->center_freq2,
width);
+ break;
default:
WARN_ON(chandef->center_freq2);
break;