From a19d2e085756ce03beef73de8cc2707db3c9ee93 Mon Sep 17 00:00:00 2001 From: Yingying Tang Date: Wed, 9 Mar 2016 13:33:05 +0800 Subject: qcacld-2.0: Set SAP TX leakage threshold when SAP start SAP TX leakage threshold is stored in SAP information structure when load driver. start SAP and then stop it, SAP information will be reset to zero. So the SAP TX leakage threshold can not be used after SAP start again. Set SAP TX leakage threshold when SAP start to fix this issue. Change-Id: Ibdba797378f47cbcb03208e02955e6964dc22333 CRs-Fixed: 986795 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 3 +++ CORE/HDD/src/wlan_hdd_main.c | 3 --- CORE/SAP/inc/sapApi.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index ca4a056b3641..c3012e0a6f04 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -12718,6 +12718,9 @@ static int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter, WLANSAP_Set_Dfs_Ignore_CAC(hHal, iniConfig->ignoreCAC); + wlansap_set_tx_leakage_threshold(hHal, + iniConfig->sap_tx_leakage_threshold); + capab_info = pMgmt_frame->u.beacon.capab_info; pConfig->privacy = (pMgmt_frame->u.beacon.capab_info & diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index 9423e3264068..fe1357546c29 100644 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -14596,9 +14596,6 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc) /* Fwr capabilities received, Set the Dot11 mode */ sme_SetDefDot11Mode(pHddCtx->hHal); - wlansap_set_tx_leakage_threshold(pHddCtx->hHal, - pHddCtx->cfg_ini->sap_tx_leakage_threshold); - /* Register with platform driver as client for Suspend/Resume */ status = hddRegisterPmOps(pHddCtx); if ( !VOS_IS_STATUS_SUCCESS( status ) ) diff --git a/CORE/SAP/inc/sapApi.h b/CORE/SAP/inc/sapApi.h index 9e7ca4661c17..be366cbf475e 100644 --- a/CORE/SAP/inc/sapApi.h +++ b/CORE/SAP/inc/sapApi.h @@ -629,7 +629,7 @@ typedef struct sSapDfsInfo * channel switch is disabled. */ v_U8_t disable_dfs_ch_switch; - uint16_t tx_leakage_threshold; + uint16_t tx_leakage_threshold; } tSapDfsInfo; typedef struct tagSapCtxList -- cgit v1.2.3