qcacld-3.0: cds: Replace fallthrough comment with attribute

-Wimplicit-fallthrough is being enabled by default. Some compilers
such as clang require the attribute instead of just a fallthrough comment.

Change-Id: Ie67561ab55512c5f9848ede02177104aefb09b7e
CRs-Fixed: 3217417
This commit is contained in:
David Oladunjoye
2022-06-09 12:10:43 -07:00
committed by Madan Koyyalamudi
parent 678d1dcf9c
commit 4d96c00a9f

View File

@@ -1,5 +1,6 @@
/* /*
* Copyright (c) 2014-2020 The Linux Foundation. All rights reserved. * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -70,7 +71,7 @@ uint32_t cds_get_vendor_reg_flags(struct wlan_objmgr_pdev *pdev,
flags |= IEEE80211_CHAN_VHT80_80; flags |= IEEE80211_CHAN_VHT80_80;
} }
bandwidth = CH_WIDTH_160MHZ; bandwidth = CH_WIDTH_160MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_160MHZ: case CH_WIDTH_160MHZ:
if (wlan_reg_get_5g_bonded_channel_state_for_freq(pdev, freq, if (wlan_reg_get_5g_bonded_channel_state_for_freq(pdev, freq,
bandwidth) != bandwidth) !=
@@ -79,7 +80,7 @@ uint32_t cds_get_vendor_reg_flags(struct wlan_objmgr_pdev *pdev,
flags |= IEEE80211_CHAN_VHT160; flags |= IEEE80211_CHAN_VHT160;
} }
bandwidth = CH_WIDTH_80MHZ; bandwidth = CH_WIDTH_80MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_80MHZ: case CH_WIDTH_80MHZ:
if (wlan_reg_get_5g_bonded_channel_state_for_freq(pdev, freq, if (wlan_reg_get_5g_bonded_channel_state_for_freq(pdev, freq,
bandwidth) != bandwidth) !=
@@ -88,7 +89,7 @@ uint32_t cds_get_vendor_reg_flags(struct wlan_objmgr_pdev *pdev,
flags |= IEEE80211_CHAN_VHT80; flags |= IEEE80211_CHAN_VHT80;
} }
bandwidth = CH_WIDTH_40MHZ; bandwidth = CH_WIDTH_40MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_40MHZ: case CH_WIDTH_40MHZ:
qdf_mem_zero(&ch_params, sizeof(ch_params)); qdf_mem_zero(&ch_params, sizeof(ch_params));
ch_params.ch_width = bandwidth; ch_params.ch_width = bandwidth;
@@ -117,14 +118,14 @@ uint32_t cds_get_vendor_reg_flags(struct wlan_objmgr_pdev *pdev,
} }
} }
bandwidth = CH_WIDTH_20MHZ; bandwidth = CH_WIDTH_20MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_20MHZ: case CH_WIDTH_20MHZ:
if (is_vht_enabled) if (is_vht_enabled)
flags |= IEEE80211_CHAN_VHT20; flags |= IEEE80211_CHAN_VHT20;
if (is_ht_enabled) if (is_ht_enabled)
flags |= IEEE80211_CHAN_HT20; flags |= IEEE80211_CHAN_HT20;
bandwidth = CH_WIDTH_10MHZ; bandwidth = CH_WIDTH_10MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_10MHZ: case CH_WIDTH_10MHZ:
if (wlan_reg_get_bonded_channel_state_for_freq(pdev, freq, if (wlan_reg_get_bonded_channel_state_for_freq(pdev, freq,
bandwidth, bandwidth,
@@ -133,7 +134,7 @@ uint32_t cds_get_vendor_reg_flags(struct wlan_objmgr_pdev *pdev,
sub_20_channel_width == WLAN_SUB_20_CH_WIDTH_10) sub_20_channel_width == WLAN_SUB_20_CH_WIDTH_10)
flags |= IEEE80211_CHAN_HALF; flags |= IEEE80211_CHAN_HALF;
bandwidth = CH_WIDTH_5MHZ; bandwidth = CH_WIDTH_5MHZ;
/* FALLTHROUGH */ fallthrough;
case CH_WIDTH_5MHZ: case CH_WIDTH_5MHZ:
if (wlan_reg_get_bonded_channel_state_for_freq(pdev, freq, if (wlan_reg_get_bonded_channel_state_for_freq(pdev, freq,
bandwidth, bandwidth,