diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-07-08 05:57:22 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-07-09 03:09:57 -0400 |
commit | 5cf3006cc81d9aa09a10aa781fc065546b12919d (patch) | |
tree | 5331c365742aff49b3f60c804bb6c3da779512e1 | |
parent | a948f713842ad5c23f125efc61dee6951893219c (diff) |
nl80211: Add a missing break in parse_station_flags
I was looking at usually suppressed gcc warnings,
[-Wimplicit-fallthrough=] in this case:
The code definitely looks like a break is missing here.
However I am not able to test the NL80211_IFTYPE_MESH_POINT,
nor do I actually know what might be :)
So please use this patch with caution and only if you are
able to do some testing.
Signed-off-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
[johannes: looks obvious enough to apply as is, interesting
though that it never seems to have been a problem]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r-- | net/wireless/nl80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index b6c700572755..80bc986c79e5 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -4409,6 +4409,7 @@ static int parse_station_flags(struct genl_info *info, | |||
4409 | params->sta_flags_mask = BIT(NL80211_STA_FLAG_AUTHENTICATED) | | 4409 | params->sta_flags_mask = BIT(NL80211_STA_FLAG_AUTHENTICATED) | |
4410 | BIT(NL80211_STA_FLAG_MFP) | | 4410 | BIT(NL80211_STA_FLAG_MFP) | |
4411 | BIT(NL80211_STA_FLAG_AUTHORIZED); | 4411 | BIT(NL80211_STA_FLAG_AUTHORIZED); |
4412 | break; | ||
4412 | default: | 4413 | default: |
4413 | return -EINVAL; | 4414 | return -EINVAL; |
4414 | } | 4415 | } |