Commit 666cc438 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo

mwifiex: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ae30bdaa
...@@ -1158,6 +1158,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy, ...@@ -1158,6 +1158,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
case NL80211_IFTYPE_UNSPECIFIED: case NL80211_IFTYPE_UNSPECIFIED:
mwifiex_dbg(priv->adapter, INFO, mwifiex_dbg(priv->adapter, INFO,
"%s: kept type as IBSS\n", dev->name); "%s: kept type as IBSS\n", dev->name);
/* fall through */
case NL80211_IFTYPE_ADHOC: /* This shouldn't happen */ case NL80211_IFTYPE_ADHOC: /* This shouldn't happen */
return 0; return 0;
default: default:
...@@ -1188,6 +1189,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy, ...@@ -1188,6 +1189,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
case NL80211_IFTYPE_UNSPECIFIED: case NL80211_IFTYPE_UNSPECIFIED:
mwifiex_dbg(priv->adapter, INFO, mwifiex_dbg(priv->adapter, INFO,
"%s: kept type as STA\n", dev->name); "%s: kept type as STA\n", dev->name);
/* fall through */
case NL80211_IFTYPE_STATION: /* This shouldn't happen */ case NL80211_IFTYPE_STATION: /* This shouldn't happen */
return 0; return 0;
default: default:
...@@ -1210,6 +1212,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy, ...@@ -1210,6 +1212,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
case NL80211_IFTYPE_UNSPECIFIED: case NL80211_IFTYPE_UNSPECIFIED:
mwifiex_dbg(priv->adapter, INFO, mwifiex_dbg(priv->adapter, INFO,
"%s: kept type as AP\n", dev->name); "%s: kept type as AP\n", dev->name);
/* fall through */
case NL80211_IFTYPE_AP: /* This shouldn't happen */ case NL80211_IFTYPE_AP: /* This shouldn't happen */
return 0; return 0;
default: default:
...@@ -1249,6 +1252,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy, ...@@ -1249,6 +1252,7 @@ mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,
case NL80211_IFTYPE_UNSPECIFIED: case NL80211_IFTYPE_UNSPECIFIED:
mwifiex_dbg(priv->adapter, INFO, mwifiex_dbg(priv->adapter, INFO,
"%s: kept type as P2P\n", dev->name); "%s: kept type as P2P\n", dev->name);
/* fall through */
case NL80211_IFTYPE_P2P_CLIENT: case NL80211_IFTYPE_P2P_CLIENT:
case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_P2P_GO:
return 0; return 0;
......
...@@ -1308,6 +1308,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter, ...@@ -1308,6 +1308,7 @@ int mwifiex_update_bss_desc_with_ie(struct mwifiex_adapter *adapter,
case WLAN_EID_CHANNEL_SWITCH: case WLAN_EID_CHANNEL_SWITCH:
bss_entry->chan_sw_ie_present = true; bss_entry->chan_sw_ie_present = true;
/* fall through */
case WLAN_EID_PWR_CAPABILITY: case WLAN_EID_PWR_CAPABILITY:
case WLAN_EID_TPC_REPORT: case WLAN_EID_TPC_REPORT:
case WLAN_EID_QUIET: case WLAN_EID_QUIET:
......
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