Commit fc0561dc authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Johannes Berg

mac80211: Use fallthrough pseudo-keyword

Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-throughSigned-off-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200707204548.GA9320@embeddedorSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 504776be
...@@ -4334,7 +4334,7 @@ static int __init init_mac80211_hwsim(void) ...@@ -4334,7 +4334,7 @@ static int __init init_mac80211_hwsim(void)
break; break;
case HWSIM_REGTEST_STRICT_ALL: case HWSIM_REGTEST_STRICT_ALL:
param.reg_strict = true; param.reg_strict = true;
/* fall through */ fallthrough;
case HWSIM_REGTEST_DRIVER_REG_ALL: case HWSIM_REGTEST_DRIVER_REG_ALL:
param.reg_alpha2 = hwsim_alpha2s[0]; param.reg_alpha2 = hwsim_alpha2s[0];
break; break;
......
...@@ -608,12 +608,12 @@ static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -608,12 +608,12 @@ static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
case WLAN_CIPHER_SUITE_BIP_CMAC_256: case WLAN_CIPHER_SUITE_BIP_CMAC_256:
BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) != BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) !=
offsetof(typeof(kseq), aes_cmac)); offsetof(typeof(kseq), aes_cmac));
/* fall through */ fallthrough;
case WLAN_CIPHER_SUITE_BIP_GMAC_128: case WLAN_CIPHER_SUITE_BIP_GMAC_128:
case WLAN_CIPHER_SUITE_BIP_GMAC_256: case WLAN_CIPHER_SUITE_BIP_GMAC_256:
BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) != BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) !=
offsetof(typeof(kseq), aes_gmac)); offsetof(typeof(kseq), aes_gmac));
/* fall through */ fallthrough;
case WLAN_CIPHER_SUITE_GCMP: case WLAN_CIPHER_SUITE_GCMP:
case WLAN_CIPHER_SUITE_GCMP_256: case WLAN_CIPHER_SUITE_GCMP_256:
BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) != BUILD_BUG_ON(offsetof(typeof(kseq), ccmp) !=
...@@ -2336,7 +2336,7 @@ static int ieee80211_scan(struct wiphy *wiphy, ...@@ -2336,7 +2336,7 @@ static int ieee80211_scan(struct wiphy *wiphy,
* for now fall through to allow scanning only when * for now fall through to allow scanning only when
* beaconing hasn't been configured yet * beaconing hasn't been configured yet
*/ */
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
/* /*
* If the scan has been forced (and the driver supports * If the scan has been forced (and the driver supports
......
...@@ -748,7 +748,7 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local, ...@@ -748,7 +748,7 @@ void ieee80211_recalc_smps_chanctx(struct ieee80211_local *local,
default: default:
WARN_ONCE(1, "Invalid SMPS mode %d\n", WARN_ONCE(1, "Invalid SMPS mode %d\n",
sdata->smps_mode); sdata->smps_mode);
/* fall through */ fallthrough;
case IEEE80211_SMPS_OFF: case IEEE80211_SMPS_OFF:
needed_static = sdata->needed_rx_chains; needed_static = sdata->needed_rx_chains;
needed_dynamic = sdata->needed_rx_chains; needed_dynamic = sdata->needed_rx_chains;
......
...@@ -250,7 +250,7 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata, ...@@ -250,7 +250,7 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata,
switch (sdata->vif.bss_conf.chandef.width) { switch (sdata->vif.bss_conf.chandef.width) {
default: default:
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
/* fall through */ fallthrough;
case NL80211_CHAN_WIDTH_20_NOHT: case NL80211_CHAN_WIDTH_20_NOHT:
case NL80211_CHAN_WIDTH_20: case NL80211_CHAN_WIDTH_20:
bw = IEEE80211_STA_RX_BW_20; bw = IEEE80211_STA_RX_BW_20;
...@@ -517,7 +517,7 @@ int ieee80211_send_smps_action(struct ieee80211_sub_if_data *sdata, ...@@ -517,7 +517,7 @@ int ieee80211_send_smps_action(struct ieee80211_sub_if_data *sdata,
case IEEE80211_SMPS_AUTOMATIC: case IEEE80211_SMPS_AUTOMATIC:
case IEEE80211_SMPS_NUM_MODES: case IEEE80211_SMPS_NUM_MODES:
WARN_ON(1); WARN_ON(1);
/* fall through */ fallthrough;
case IEEE80211_SMPS_OFF: case IEEE80211_SMPS_OFF:
action_frame->u.action.u.ht_smps.smps_control = action_frame->u.action.u.ht_smps.smps_control =
WLAN_HT_SMPS_CONTROL_DISABLED; WLAN_HT_SMPS_CONTROL_DISABLED;
......
...@@ -791,7 +791,7 @@ ieee80211_ibss_process_chanswitch(struct ieee80211_sub_if_data *sdata, ...@@ -791,7 +791,7 @@ ieee80211_ibss_process_chanswitch(struct ieee80211_sub_if_data *sdata,
case NL80211_CHAN_WIDTH_10: case NL80211_CHAN_WIDTH_10:
case NL80211_CHAN_WIDTH_20_NOHT: case NL80211_CHAN_WIDTH_20_NOHT:
sta_flags |= IEEE80211_STA_DISABLE_HT; sta_flags |= IEEE80211_STA_DISABLE_HT;
/* fall through */ fallthrough;
case NL80211_CHAN_WIDTH_20: case NL80211_CHAN_WIDTH_20:
sta_flags |= IEEE80211_STA_DISABLE_40MHZ; sta_flags |= IEEE80211_STA_DISABLE_40MHZ;
break; break;
...@@ -1401,7 +1401,7 @@ ieee80211_ibss_setup_scan_channels(struct wiphy *wiphy, ...@@ -1401,7 +1401,7 @@ ieee80211_ibss_setup_scan_channels(struct wiphy *wiphy,
break; break;
case NL80211_CHAN_WIDTH_80P80: case NL80211_CHAN_WIDTH_80P80:
cf2 = chandef->center_freq2; cf2 = chandef->center_freq2;
/* fall through */ fallthrough;
case NL80211_CHAN_WIDTH_80: case NL80211_CHAN_WIDTH_80:
width = 80; width = 80;
break; break;
......
...@@ -978,7 +978,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, ...@@ -978,7 +978,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
case NL80211_IFTYPE_P2P_DEVICE: case NL80211_IFTYPE_P2P_DEVICE:
/* relies on synchronize_rcu() below */ /* relies on synchronize_rcu() below */
RCU_INIT_POINTER(local->p2p_sdata, NULL); RCU_INIT_POINTER(local->p2p_sdata, NULL);
/* fall through */ fallthrough;
default: default:
cancel_work_sync(&sdata->work); cancel_work_sync(&sdata->work);
/* /*
...@@ -1048,7 +1048,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata, ...@@ -1048,7 +1048,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
if (!(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE)) if (!(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE))
break; break;
/* fall through */ fallthrough;
default: default:
if (going_down) if (going_down)
drv_remove_interface(local, sdata); drv_remove_interface(local, sdata);
...@@ -1497,7 +1497,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, ...@@ -1497,7 +1497,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,
type = NL80211_IFTYPE_AP; type = NL80211_IFTYPE_AP;
sdata->vif.type = type; sdata->vif.type = type;
sdata->vif.p2p = true; sdata->vif.p2p = true;
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
skb_queue_head_init(&sdata->u.ap.ps.bc_buf); skb_queue_head_init(&sdata->u.ap.ps.bc_buf);
INIT_LIST_HEAD(&sdata->u.ap.vlans); INIT_LIST_HEAD(&sdata->u.ap.vlans);
...@@ -1507,7 +1507,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata, ...@@ -1507,7 +1507,7 @@ static void ieee80211_setup_sdata(struct ieee80211_sub_if_data *sdata,
type = NL80211_IFTYPE_STATION; type = NL80211_IFTYPE_STATION;
sdata->vif.type = type; sdata->vif.type = type;
sdata->vif.p2p = true; sdata->vif.p2p = true;
/* fall through */ fallthrough;
case NL80211_IFTYPE_STATION: case NL80211_IFTYPE_STATION:
sdata->vif.bss_conf.bssid = sdata->u.mgd.bssid; sdata->vif.bss_conf.bssid = sdata->u.mgd.bssid;
ieee80211_sta_setup_sdata(sdata); ieee80211_sta_setup_sdata(sdata);
...@@ -1703,7 +1703,7 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local, ...@@ -1703,7 +1703,7 @@ static void ieee80211_assign_perm_addr(struct ieee80211_local *local,
goto out_unlock; goto out_unlock;
} }
} }
/* fall through */ fallthrough;
default: default:
/* assign a new address if possible -- try n_addresses first */ /* assign a new address if possible -- try n_addresses first */
for (i = 0; i < local->hw.wiphy->n_addresses; i++) { for (i = 0; i < local->hw.wiphy->n_addresses; i++) {
......
...@@ -225,7 +225,7 @@ static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key) ...@@ -225,7 +225,7 @@ static int ieee80211_key_enable_hw_accel(struct ieee80211_key *key)
*/ */
if (sdata->hw_80211_encap) if (sdata->hw_80211_encap)
return -EINVAL; return -EINVAL;
/* Fall through */ fallthrough;
case WLAN_CIPHER_SUITE_AES_CMAC: case WLAN_CIPHER_SUITE_AES_CMAC:
case WLAN_CIPHER_SUITE_BIP_CMAC_256: case WLAN_CIPHER_SUITE_BIP_CMAC_256:
......
...@@ -1094,10 +1094,10 @@ ieee80211_mesh_process_chnswitch(struct ieee80211_sub_if_data *sdata, ...@@ -1094,10 +1094,10 @@ ieee80211_mesh_process_chnswitch(struct ieee80211_sub_if_data *sdata,
switch (sdata->vif.bss_conf.chandef.width) { switch (sdata->vif.bss_conf.chandef.width) {
case NL80211_CHAN_WIDTH_20_NOHT: case NL80211_CHAN_WIDTH_20_NOHT:
sta_flags |= IEEE80211_STA_DISABLE_HT; sta_flags |= IEEE80211_STA_DISABLE_HT;
/* fall through */ fallthrough;
case NL80211_CHAN_WIDTH_20: case NL80211_CHAN_WIDTH_20:
sta_flags |= IEEE80211_STA_DISABLE_40MHZ; sta_flags |= IEEE80211_STA_DISABLE_40MHZ;
/* fall through */ fallthrough;
case NL80211_CHAN_WIDTH_40: case NL80211_CHAN_WIDTH_40:
sta_flags |= IEEE80211_STA_DISABLE_VHT; sta_flags |= IEEE80211_STA_DISABLE_VHT;
break; break;
......
...@@ -1266,7 +1266,7 @@ void mesh_path_tx_root_frame(struct ieee80211_sub_if_data *sdata) ...@@ -1266,7 +1266,7 @@ void mesh_path_tx_root_frame(struct ieee80211_sub_if_data *sdata)
break; break;
case IEEE80211_PROACTIVE_PREQ_WITH_PREP: case IEEE80211_PROACTIVE_PREQ_WITH_PREP:
flags |= IEEE80211_PREQ_PROACTIVE_PREP_FLAG; flags |= IEEE80211_PREQ_PROACTIVE_PREP_FLAG;
/* fall through */ fallthrough;
case IEEE80211_PROACTIVE_PREQ_NO_PREP: case IEEE80211_PROACTIVE_PREQ_NO_PREP:
interval = ifmsh->mshcfg.dot11MeshHWMPactivePathToRootTimeout; interval = ifmsh->mshcfg.dot11MeshHWMPactivePathToRootTimeout;
target_flags |= IEEE80211_PREQ_TO_FLAG | target_flags |= IEEE80211_PREQ_TO_FLAG |
......
...@@ -699,7 +699,7 @@ void mesh_plink_timer(struct timer_list *t) ...@@ -699,7 +699,7 @@ void mesh_plink_timer(struct timer_list *t)
break; break;
} }
reason = WLAN_REASON_MESH_MAX_RETRIES; reason = WLAN_REASON_MESH_MAX_RETRIES;
/* fall through */ fallthrough;
case NL80211_PLINK_CNF_RCVD: case NL80211_PLINK_CNF_RCVD:
/* confirm timer */ /* confirm timer */
if (!reason) if (!reason)
......
...@@ -533,7 +533,7 @@ static void ieee80211_add_ht_ie(struct ieee80211_sub_if_data *sdata, ...@@ -533,7 +533,7 @@ static void ieee80211_add_ht_ie(struct ieee80211_sub_if_data *sdata,
case IEEE80211_SMPS_AUTOMATIC: case IEEE80211_SMPS_AUTOMATIC:
case IEEE80211_SMPS_NUM_MODES: case IEEE80211_SMPS_NUM_MODES:
WARN_ON(1); WARN_ON(1);
/* fall through */ fallthrough;
case IEEE80211_SMPS_OFF: case IEEE80211_SMPS_OFF:
cap |= WLAN_HT_CAP_SM_PS_DISABLED << cap |= WLAN_HT_CAP_SM_PS_DISABLED <<
IEEE80211_HT_CAP_SM_PS_SHIFT; IEEE80211_HT_CAP_SM_PS_SHIFT;
...@@ -1529,7 +1529,7 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata, ...@@ -1529,7 +1529,7 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata,
switch (channel->band) { switch (channel->band) {
default: default:
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
/* fall through */ fallthrough;
case NL80211_BAND_2GHZ: case NL80211_BAND_2GHZ:
case NL80211_BAND_60GHZ: case NL80211_BAND_60GHZ:
chan_increment = 1; chan_increment = 1;
......
...@@ -808,13 +808,13 @@ int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev, ...@@ -808,13 +808,13 @@ int ieee80211_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
if (!sdata->vif.bss_conf.ibss_joined) if (!sdata->vif.bss_conf.ibss_joined)
need_offchan = true; need_offchan = true;
#ifdef CONFIG_MAC80211_MESH #ifdef CONFIG_MAC80211_MESH
/* fall through */ fallthrough;
case NL80211_IFTYPE_MESH_POINT: case NL80211_IFTYPE_MESH_POINT:
if (ieee80211_vif_is_mesh(&sdata->vif) && if (ieee80211_vif_is_mesh(&sdata->vif) &&
!sdata->u.mesh.mesh_id_len) !sdata->u.mesh.mesh_id_len)
need_offchan = true; need_offchan = true;
#endif #endif
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_AP_VLAN:
case NL80211_IFTYPE_P2P_GO: case NL80211_IFTYPE_P2P_GO:
......
...@@ -3736,7 +3736,7 @@ static void ieee80211_rx_handlers_result(struct ieee80211_rx_data *rx, ...@@ -3736,7 +3736,7 @@ static void ieee80211_rx_handlers_result(struct ieee80211_rx_data *rx,
I802_DEBUG_INC(rx->sdata->local->rx_handlers_drop); I802_DEBUG_INC(rx->sdata->local->rx_handlers_drop);
if (rx->sta) if (rx->sta)
rx->sta->rx_stats.dropped++; rx->sta->rx_stats.dropped++;
/* fall through */ fallthrough;
case RX_CONTINUE: { case RX_CONTINUE: {
struct ieee80211_rate *rate = NULL; struct ieee80211_rate *rate = NULL;
struct ieee80211_supported_band *sband; struct ieee80211_supported_band *sband;
...@@ -4752,7 +4752,7 @@ void ieee80211_rx_napi(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta, ...@@ -4752,7 +4752,7 @@ void ieee80211_rx_napi(struct ieee80211_hw *hw, struct ieee80211_sta *pubsta,
break; break;
default: default:
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
/* fall through */ fallthrough;
case RX_ENC_LEGACY: case RX_ENC_LEGACY:
if (WARN_ON(status->rate_idx >= sband->n_bitrates)) if (WARN_ON(status->rate_idx >= sband->n_bitrates))
goto drop; goto drop;
......
...@@ -239,7 +239,7 @@ static enum ieee80211_ac_numbers ieee80211_ac_from_wmm(int ac) ...@@ -239,7 +239,7 @@ static enum ieee80211_ac_numbers ieee80211_ac_from_wmm(int ac)
switch (ac) { switch (ac) {
default: default:
WARN_ON_ONCE(1); WARN_ON_ONCE(1);
/* fall through */ fallthrough;
case 0: case 0:
return IEEE80211_AC_BE; return IEEE80211_AC_BE;
case 1: case 1:
...@@ -952,7 +952,7 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev, ...@@ -952,7 +952,7 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev,
set_sta_flag(sta, WLAN_STA_TDLS_INITIATOR); set_sta_flag(sta, WLAN_STA_TDLS_INITIATOR);
sta->sta.tdls_initiator = false; sta->sta.tdls_initiator = false;
} }
/* fall-through */ fallthrough;
case WLAN_TDLS_SETUP_CONFIRM: case WLAN_TDLS_SETUP_CONFIRM:
case WLAN_TDLS_DISCOVERY_REQUEST: case WLAN_TDLS_DISCOVERY_REQUEST:
initiator = true; initiator = true;
...@@ -967,7 +967,7 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev, ...@@ -967,7 +967,7 @@ ieee80211_tdls_prep_mgmt_packet(struct wiphy *wiphy, struct net_device *dev,
clear_sta_flag(sta, WLAN_STA_TDLS_INITIATOR); clear_sta_flag(sta, WLAN_STA_TDLS_INITIATOR);
sta->sta.tdls_initiator = true; sta->sta.tdls_initiator = true;
} }
/* fall-through */ fallthrough;
case WLAN_PUB_ACTION_TDLS_DISCOVER_RES: case WLAN_PUB_ACTION_TDLS_DISCOVER_RES:
initiator = false; initiator = false;
break; break;
...@@ -1222,7 +1222,7 @@ int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, ...@@ -1222,7 +1222,7 @@ int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
* by the AP. * by the AP.
*/ */
drv_mgd_protect_tdls_discover(sdata->local, sdata); drv_mgd_protect_tdls_discover(sdata->local, sdata);
/* fall-through */ fallthrough;
case WLAN_TDLS_SETUP_CONFIRM: case WLAN_TDLS_SETUP_CONFIRM:
case WLAN_PUB_ACTION_TDLS_DISCOVER_RES: case WLAN_PUB_ACTION_TDLS_DISCOVER_RES:
/* no special handling */ /* no special handling */
......
...@@ -1740,7 +1740,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local, ...@@ -1740,7 +1740,7 @@ static bool __ieee80211_tx(struct ieee80211_local *local,
case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_AP_VLAN:
sdata = container_of(sdata->bss, sdata = container_of(sdata->bss,
struct ieee80211_sub_if_data, u.ap); struct ieee80211_sub_if_data, u.ap);
/* fall through */ fallthrough;
default: default:
vif = &sdata->vif; vif = &sdata->vif;
break; break;
...@@ -2383,7 +2383,7 @@ int ieee80211_lookup_ra_sta(struct ieee80211_sub_if_data *sdata, ...@@ -2383,7 +2383,7 @@ int ieee80211_lookup_ra_sta(struct ieee80211_sub_if_data *sdata,
} else if (sdata->wdev.use_4addr) { } else if (sdata->wdev.use_4addr) {
return -ENOLINK; return -ENOLINK;
} }
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
case NL80211_IFTYPE_OCB: case NL80211_IFTYPE_OCB:
case NL80211_IFTYPE_ADHOC: case NL80211_IFTYPE_ADHOC:
...@@ -2553,7 +2553,7 @@ static struct sk_buff *ieee80211_build_hdr(struct ieee80211_sub_if_data *sdata, ...@@ -2553,7 +2553,7 @@ static struct sk_buff *ieee80211_build_hdr(struct ieee80211_sub_if_data *sdata,
band = chanctx_conf->def.chan->band; band = chanctx_conf->def.chan->band;
if (sdata->wdev.use_4addr) if (sdata->wdev.use_4addr)
break; break;
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
if (sdata->vif.type == NL80211_IFTYPE_AP) if (sdata->vif.type == NL80211_IFTYPE_AP)
chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf); chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);
...@@ -3000,7 +3000,7 @@ void ieee80211_check_fast_xmit(struct sta_info *sta) ...@@ -3000,7 +3000,7 @@ void ieee80211_check_fast_xmit(struct sta_info *sta)
build.hdr_len = 30; build.hdr_len = 30;
break; break;
} }
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS);
/* DA BSSID SA */ /* DA BSSID SA */
...@@ -3711,7 +3711,7 @@ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw, ...@@ -3711,7 +3711,7 @@ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw,
case NL80211_IFTYPE_AP_VLAN: case NL80211_IFTYPE_AP_VLAN:
tx.sdata = container_of(tx.sdata->bss, tx.sdata = container_of(tx.sdata->bss,
struct ieee80211_sub_if_data, u.ap); struct ieee80211_sub_if_data, u.ap);
/* fall through */ fallthrough;
default: default:
vif = &tx.sdata->vif; vif = &tx.sdata->vif;
break; break;
...@@ -4050,7 +4050,7 @@ static bool ieee80211_multicast_to_unicast(struct sk_buff *skb, ...@@ -4050,7 +4050,7 @@ static bool ieee80211_multicast_to_unicast(struct sk_buff *skb,
return false; return false;
if (sdata->wdev.use_4addr) if (sdata->wdev.use_4addr)
return false; return false;
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
/* check runtime toggle for this bss */ /* check runtime toggle for this bss */
if (!sdata->bss->multicast_to_unicast) if (!sdata->bss->multicast_to_unicast)
......
...@@ -2347,10 +2347,10 @@ int ieee80211_reconfig(struct ieee80211_local *local) ...@@ -2347,10 +2347,10 @@ int ieee80211_reconfig(struct ieee80211_local *local)
case NL80211_IFTYPE_ADHOC: case NL80211_IFTYPE_ADHOC:
if (sdata->vif.bss_conf.ibss_joined) if (sdata->vif.bss_conf.ibss_joined)
WARN_ON(drv_join_ibss(local, sdata)); WARN_ON(drv_join_ibss(local, sdata));
/* fall through */ fallthrough;
default: default:
ieee80211_reconfig_stations(sdata); ieee80211_reconfig_stations(sdata);
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: /* AP stations are handled later */ case NL80211_IFTYPE_AP: /* AP stations are handled later */
for (i = 0; i < IEEE80211_NUM_ACS; i++) for (i = 0; i < IEEE80211_NUM_ACS; i++)
drv_conf_tx(local, sdata, i, drv_conf_tx(local, sdata, i,
...@@ -2399,7 +2399,7 @@ int ieee80211_reconfig(struct ieee80211_local *local) ...@@ -2399,7 +2399,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
break; break;
case NL80211_IFTYPE_ADHOC: case NL80211_IFTYPE_ADHOC:
changed |= BSS_CHANGED_IBSS; changed |= BSS_CHANGED_IBSS;
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
changed |= BSS_CHANGED_SSID | BSS_CHANGED_P2P_PS; changed |= BSS_CHANGED_SSID | BSS_CHANGED_P2P_PS;
...@@ -2414,8 +2414,7 @@ int ieee80211_reconfig(struct ieee80211_local *local) ...@@ -2414,8 +2414,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
if (rcu_access_pointer(sdata->u.ap.beacon)) if (rcu_access_pointer(sdata->u.ap.beacon))
drv_start_ap(local, sdata); drv_start_ap(local, sdata);
} }
fallthrough;
/* fall through */
case NL80211_IFTYPE_MESH_POINT: case NL80211_IFTYPE_MESH_POINT:
if (sdata->vif.bss_conf.enable_beacon) { if (sdata->vif.bss_conf.enable_beacon) {
changed |= BSS_CHANGED_BEACON | changed |= BSS_CHANGED_BEACON |
...@@ -2885,7 +2884,7 @@ void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, ...@@ -2885,7 +2884,7 @@ void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata,
case IEEE80211_SMPS_AUTOMATIC: case IEEE80211_SMPS_AUTOMATIC:
case IEEE80211_SMPS_NUM_MODES: case IEEE80211_SMPS_NUM_MODES:
WARN_ON(1); WARN_ON(1);
/* fall through */ fallthrough;
case IEEE80211_SMPS_OFF: case IEEE80211_SMPS_OFF:
cap |= u16_encode_bits(WLAN_HT_CAP_SM_PS_DISABLED, cap |= u16_encode_bits(WLAN_HT_CAP_SM_PS_DISABLED,
IEEE80211_HE_6GHZ_CAP_SM_PS); IEEE80211_HE_6GHZ_CAP_SM_PS);
...@@ -3196,7 +3195,7 @@ bool ieee80211_chandef_vht_oper(struct ieee80211_hw *hw, u32 vht_cap_info, ...@@ -3196,7 +3195,7 @@ bool ieee80211_chandef_vht_oper(struct ieee80211_hw *hw, u32 vht_cap_info,
break; break;
case 0x01: case 0x01:
support_80_80 = false; support_80_80 = false;
/* fall through */ fallthrough;
case 0x02: case 0x02:
case 0x03: case 0x03:
ccf1 = ccfs2; ccf1 = ccfs2;
...@@ -3566,7 +3565,7 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local, ...@@ -3566,7 +3565,7 @@ u64 ieee80211_calculate_rx_timestamp(struct ieee80211_local *local,
break; break;
default: default:
WARN_ON(1); WARN_ON(1);
/* fall through */ fallthrough;
case RX_ENC_LEGACY: { case RX_ENC_LEGACY: {
struct ieee80211_supported_band *sband; struct ieee80211_supported_band *sband;
int shift = 0; int shift = 0;
......
...@@ -198,7 +198,7 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata, ...@@ -198,7 +198,7 @@ u16 ieee80211_select_queue(struct ieee80211_sub_if_data *sdata,
sta = rcu_dereference(sdata->u.vlan.sta); sta = rcu_dereference(sdata->u.vlan.sta);
if (sta) if (sta)
break; break;
/* fall through */ fallthrough;
case NL80211_IFTYPE_AP: case NL80211_IFTYPE_AP:
ra = skb->data; ra = skb->data;
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