From 6ba30a130923f1db9a1d3c26360bf831fc9da2d8 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 13 Sep 2016 13:59:43 -0700 Subject: [PATCH] qcacld-3.0: Cleanup MBSSID compilation flag (phase 2) The WLAN_FEATURE_MBSSID conditional compilation flag is no longer needed since MBSSID is a required feature. Remove this flag and any alternate code referenced in the conditional compilation blocks. Phase 2 covers wlan_hdd_cfg80211.c, with other *.c files to follow in future changes. Change-Id: Id7171529eaeefe652085bd1ed6377e3cde050694 CRs-Fixed: 1066411 --- core/hdd/src/wlan_hdd_cfg80211.c | 77 ++------------------------------ 1 file changed, 4 insertions(+), 73 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 00f4306a0cb4..991b36cecef3 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -1178,8 +1178,6 @@ static int is_driver_dfs_capable(struct wiphy *wiphy, * * Return: 0 - No DFS issue, 1 - Override done and negative error codes */ - -#ifdef WLAN_FEATURE_MBSSID int wlan_hdd_sap_cfg_dfs_override(hdd_adapter_t *adapter) { hdd_adapter_t *con_sap_adapter; @@ -1248,12 +1246,6 @@ int wlan_hdd_sap_cfg_dfs_override(hdd_adapter_t *adapter) return con_ch; } -#else -int wlan_hdd_sap_cfg_dfs_override(hdd_adapter_t *adapter) -{ - return 0; -} -#endif /** * wlan_hdd_set_acs_ch_range : Start ACS channel range values @@ -1358,11 +1350,7 @@ static int wlan_hdd_cfg80211_start_acs(hdd_adapter_t *adapter) adapter->macAddressCurrent.bytes, sizeof(struct qdf_mac_addr)); hdd_notice("ACS Started for wlan%d", adapter->dev->ifindex); status = wlansap_acs_chselect( -#ifdef WLAN_FEATURE_MBSSID WLAN_HDD_GET_SAP_CTX_PTR(adapter), -#else - hdd_ctx->pcds_context, -#endif acs_event_callback, sap_config, adapter->dev); @@ -6348,7 +6336,6 @@ static int wlan_hdd_cfg80211_bpf_offload(struct wiphy *wiphy, return ret; } -#ifdef WLAN_FEATURE_MBSSID /** * wlan_hdd_set_pre_cac_status() - Set the pre cac status * @pre_cac_adapter: AP adapter used for pre cac @@ -6418,49 +6405,6 @@ static int wlan_hdd_sap_get_nol(hdd_adapter_t *ap_adapter, uint8_t *nol, return 0; } -#else -static int wlan_hdd_set_pre_cac_status(hdd_adapter_t *pre_cac_adapter, - bool status, tHalHandle handle) -{ - QDF_STATUS ret; - - ret = wlan_sap_set_pre_cac_status( - (WLAN_HDD_GET_CTX(pre_cac_adapter))->pcds_context, status, - handle); - if (QDF_IS_STATUS_ERROR(ret)) - return -EINVAL; - - return 0; -} - -static int wlan_hdd_set_chan_before_pre_cac(hdd_adapter_t *ap_adapter, - uint8_t chan_before_pre_cac) -{ - QDF_STATUS ret; - - ret = wlan_sap_set_chan_before_pre_cac( - (WLAN_HDD_GET_CTX(ap_adapter))->pcds_context, - chan_before_pre_cac); - if (QDF_IS_STATUS_ERROR(ret)) - return -EINVAL; - - return 0; -} - -static int wlan_hdd_sap_get_nol(hdd_adapter_t *ap_adapter, uint8_t *nol, - uint32_t *nol_len) -{ - QDF_STATUS ret; - - ret = wlansap_get_dfs_nol( - (WLAN_HDD_GET_CTX(ap_adapter))->pcds_context, - nol, nol_len); - if (QDF_IS_STATUS_ERROR(ret)) - return -EINVAL; - - return 0; -} -#endif /** * wlan_hdd_validate_and_get_pre_cac_ch() - Validate and get pre cac channel @@ -9133,9 +9077,6 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy, tCsrRoamSetKey setKey; int status; uint32_t roamId = 0xFF; -#ifndef WLAN_FEATURE_MBSSID - v_CONTEXT_t p_cds_context = (WLAN_HDD_GET_CTX(pAdapter))->pcds_context; -#endif hdd_hostapd_state_t *pHostapdState; QDF_STATUS qdf_ret_status; hdd_context_t *pHddCtx; @@ -9302,13 +9243,8 @@ static int __wlan_hdd_cfg80211_add_key(struct wiphy *wiphy, (pAdapter->device_mode == QDF_P2P_GO_MODE)) { pHostapdState = WLAN_HDD_GET_HOSTAP_STATE_PTR(pAdapter); if (pHostapdState->bssState == BSS_START) { -#ifdef WLAN_FEATURE_MBSSID - status = - wlansap_set_key_sta(WLAN_HDD_GET_SAP_CTX_PTR - (pAdapter), &setKey); -#else - status = wlansap_set_key_sta(p_cds_context, &setKey); -#endif + status = wlansap_set_key_sta( + WLAN_HDD_GET_SAP_CTX_PTR(pAdapter), &setKey); if (status != QDF_STATUS_SUCCESS) { hdd_err("[%4d] wlansap_set_key_sta returned ERROR status= %d", __LINE__, status); @@ -13426,13 +13362,8 @@ static int __wlan_hdd_cfg80211_set_mac_acl(struct wiphy *wiphy, sizeof(qcmacaddr)); } } -#ifdef WLAN_FEATURE_MBSSID - qdf_status = - wlansap_set_mac_acl(WLAN_HDD_GET_SAP_CTX_PTR(pAdapter), - pConfig); -#else - qdf_status = wlansap_set_mac_acl(p_cds_context, pConfig); -#endif + qdf_status = wlansap_set_mac_acl( + WLAN_HDD_GET_SAP_CTX_PTR(pAdapter), pConfig); if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { hdd_err("SAP Set Mac Acl fail"); return -EINVAL;