Commit 680682d4 authored by Colin Ian King's avatar Colin Ian King Committed by Johannes Berg

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent ecd5a323
...@@ -513,6 +513,7 @@ static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy, ...@@ -513,6 +513,7 @@ static bool cfg80211_chandef_dfs_available(struct wiphy *wiphy,
r = cfg80211_get_chans_dfs_available(wiphy, r = cfg80211_get_chans_dfs_available(wiphy,
chandef->center_freq2, chandef->center_freq2,
width); width);
break;
default: default:
WARN_ON(chandef->center_freq2); WARN_ON(chandef->center_freq2);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment