diff options
| author | Yingying Tang <yintang@codeaurora.org> | 2016-09-05 14:21:18 +0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-09-20 12:03:15 +0530 |
| commit | b47e93883a4b0c047adb9e2e2db3be10c2de257e (patch) | |
| tree | 4f9f0eee8af00a5cdecd770e7a445f344eb8530d | |
| parent | a81df48166a35f0cb156f87b966f803dfcd69772 (diff) | |
qcacld-2.0: Add break at end of switch case
Currently there are some places where break is missed at the end of
switch case. Add fix to correct it.
CRs-Fixed: 1063255
Change-Id: I117bdf7280e7cd1127d2251f1412a08ac8aadbc9
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_hostapd.c | 5 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_wmm.c | 2 | ||||
| -rw-r--r-- | CORE/SERVICES/BMI/ol_fw.c | 9 | ||||
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 19 |
4 files changed, 17 insertions, 18 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c index f045fc08314a..207f4ae06c30 100644 --- a/CORE/HDD/src/wlan_hdd_hostapd.c +++ b/CORE/HDD/src/wlan_hdd_hostapd.c @@ -3654,8 +3654,11 @@ static __iw_softap_getparam(struct net_device *dev, } case QCSAP_PARAM_AUTO_CHANNEL: - *value = (WLAN_HDD_GET_CTX + { + *value = (WLAN_HDD_GET_CTX (pHostapdAdapter))->cfg_ini->force_sap_acs; + break; + } case QCSAP_PARAM_RTSCTS: { diff --git a/CORE/HDD/src/wlan_hdd_wmm.c b/CORE/HDD/src/wlan_hdd_wmm.c index a455b7cf2ea7..a3b53c3b57c7 100644 --- a/CORE/HDD/src/wlan_hdd_wmm.c +++ b/CORE/HDD/src/wlan_hdd_wmm.c @@ -2672,6 +2672,7 @@ hdd_wlan_wmm_status_e hdd_wmm_delts( hdd_adapter_t* pAdapter, case SME_QOS_STATUS_RELEASE_FAILURE_RSP: // nothing we can do with the existing flow except leave it status = HDD_WLAN_WMM_STATUS_RELEASE_FAILED; + break; default: // we didn't get back one of the SME_QOS_STATUS_RELEASE_* status codes @@ -2679,6 +2680,7 @@ hdd_wlan_wmm_status_e hdd_wmm_delts( hdd_adapter_t* pAdapter, "%s: unexpected SME Status=%d", __func__, smeStatus ); VOS_ASSERT(0); status = HDD_WLAN_WMM_STATUS_RELEASE_FAILED; + break; } #endif diff --git a/CORE/SERVICES/BMI/ol_fw.c b/CORE/SERVICES/BMI/ol_fw.c index af7add647bb0..0b5c02a22335 100644 --- a/CORE/SERVICES/BMI/ol_fw.c +++ b/CORE/SERVICES/BMI/ol_fw.c @@ -756,17 +756,18 @@ static int __ol_transfer_bin_file(struct ol_softc *scn, ATH_BIN_FILE file, } switch (scn->target_type) { - default: - board_data_size = 0; - board_ext_data_size = 0; - break; case TARGET_TYPE_AR6004: board_data_size = AR6004_BOARD_DATA_SZ; board_ext_data_size = AR6004_BOARD_EXT_DATA_SZ; + break; case TARGET_TYPE_AR9888: board_data_size = AR9888_BOARD_DATA_SZ; board_ext_data_size = AR9888_BOARD_EXT_DATA_SZ; break; + default: + board_data_size = 0; + board_ext_data_size = 0; + break; } /* Determine where in Target RAM to write Board Data */ diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 20f44d0c0945..bf64e3ef55c3 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -16179,19 +16179,12 @@ static void wma_add_bss(tp_wma_handle wma, tpAddBssParams params) switch(params->halPersona) { - case VOS_STA_SAP_MODE: - /*If current bring up SAP channel matches the previous - *radar found channel then reset the last_radar_found_chan - *variable to avoid race conditions. - */ - if (params->currentOperChannel == - wma->dfs_ic->last_radar_found_chan) - wma->dfs_ic->last_radar_found_chan = 0; - case VOS_P2P_GO_MODE: - /*If current bring up P2P channel matches the previous - *radar found channel then reset the last_radar_found_chan - *variable to avoid race conditions. - */ + /*If current bring up SAP or P2P channel matches the previous + *radar found channel then reset the last_radar_found_chan + *variable to avoid race conditions. + */ + case VOS_STA_SAP_MODE: + case VOS_P2P_GO_MODE: if (params->currentOperChannel == wma->dfs_ic->last_radar_found_chan) wma->dfs_ic->last_radar_found_chan = 0; |
