diff options
| author | CNSS_WLAN Service <cnssbldsw@qualcomm.com> | 2019-04-23 05:36:50 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-04-23 05:36:50 -0700 |
| commit | 663840517a083c19e5c583be6c157f0051eb733c (patch) | |
| tree | 3f27bf8d4798903cc43cd0e37fc2e9e2d70c3e5d | |
| parent | 07cbb7292c68ea873298f8dbd492a91f659b35f3 (diff) | |
| parent | 9135ea57b623f3d3983bf0ed1f5da9f15f64817e (diff) | |
Merge "qcacld-2.0: Enable survey dump on SAP" into wlan-cld2.driver.lnx.1.0
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg80211.c | 25 | ||||
| -rw-r--r-- | CORE/SME/src/sme_common/sme_Api.c | 1 |
2 files changed, 13 insertions, 13 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index df2c0facf62f..86f3d3c023a6 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -31027,8 +31027,8 @@ static int __wlan_hdd_cfg80211_dump_survey(struct wiphy *wiphy, if (0 != status) return status; - if ((NULL == pHddCtx->chan_info) && - (pHddCtx->cfg_ini->fEnableSNRMonitoring)) { + if ((NULL == pHddCtx->chan_info) || + (0 == pHddCtx->cfg_ini->fEnableSNRMonitoring)) { hddLog(LOGE, FL("chan_info is NULL")); return -EINVAL; } @@ -31038,19 +31038,18 @@ static int __wlan_hdd_cfg80211_dump_survey(struct wiphy *wiphy, return -EINVAL; } - pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter); + if (WLAN_HDD_INFRA_STATION == pAdapter->device_mode) { + pHddStaCtx = WLAN_HDD_GET_STATION_CTX_PTR(pAdapter); - if (0 == pHddCtx->cfg_ini->fEnableSNRMonitoring || - eConnectionState_Associated != pHddStaCtx->conn_info.connState) - { - return -ENONET; - } + if (eConnectionState_Associated != pHddStaCtx->conn_info.connState) + return -ENONET; - if (VOS_TRUE == pHddStaCtx->hdd_ReassocScenario) - { - VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO, - "%s: Roaming in progress, hence return ", __func__); - return -ENONET; + if (VOS_TRUE == pHddStaCtx->hdd_ReassocScenario) + { + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO, + "%s: Roaming in progress, hence return ", __func__); + return -ENONET; + } } halHandle = WLAN_HDD_GET_HAL_CTX(pAdapter); diff --git a/CORE/SME/src/sme_common/sme_Api.c b/CORE/SME/src/sme_common/sme_Api.c index c64121462826..dd3d380c5d58 100644 --- a/CORE/SME/src/sme_common/sme_Api.c +++ b/CORE/SME/src/sme_common/sme_Api.c @@ -5177,6 +5177,7 @@ eHalStatus sme_GetConfigParam(tHalHandle hHal, tSmeConfigParams *pParam) pMac->roam.configParam.sta_roam_policy.dfs_mode; pParam->csrConfig.sta_roam_policy_params.skip_unsafe_channels = pMac->roam.configParam.sta_roam_policy.skip_unsafe_channels; + pParam->snr_monitor_enabled = pMac->snr_monitor_enabled; pParam->sub20_config_info = pMac->sub20_config_info; pParam->sub20_channelwidth = pMac->sub20_channelwidth; pParam->sub20_dynamic_channelwidth = pMac->sub20_dynamic_channelwidth; |
