diff options
| author | Atul Mittal <atulmt@qti.qualcomm.com> | 2014-07-17 15:14:32 +0530 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-07-22 22:01:36 -0700 |
| commit | f30dcf97eb430170e6b8ecac0789ace36094a0b1 (patch) | |
| tree | 1e2a8ae742ae48da63cba9c31d82d7db1cee672b | |
| parent | 822915f0bc06ce6007326fb300e8ca3a288aa260 (diff) | |
qcacld: Fix debug print for ini config in HDD
Presently ini configuration settings are being printed
just after config is read from the file and saved in
hdd context. But by this time the trace is not enabled
for debug info in VOS and thus nothing gets printed.
The same info can not be printed even with iwpriv command
as it happens during early init part of the drvier.
fix the same, also add some additional debug info.
Change-Id: I7c3e85d9544b4ed8b6b6eb7e78b267f7e602b656
CRs-Fixed: 695930
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_cfg.h | 2 | ||||
| -rw-r--r-- | CORE/HDD/src/wlan_hdd_cfg.c | 14 | ||||
| -rwxr-xr-x | CORE/HDD/src/wlan_hdd_main.c | 3 |
3 files changed, 17 insertions, 2 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h index 99239e65d543..b927c6a7a1bd 100644 --- a/CORE/HDD/inc/wlan_hdd_cfg.h +++ b/CORE/HDD/inc/wlan_hdd_cfg.h @@ -3465,4 +3465,6 @@ VOS_STATUS hdd_string_to_u8_array( char *str, tANI_U8 *intArray, tANI_U8 *len, #ifdef WLAN_FEATURE_MBSSID v_VOID_t hdd_mbssid_apply_def_cfg_ini(hdd_adapter_t *pAdapter); #endif + +void print_hdd_cfg(hdd_context_t *pHddCtx); #endif diff --git a/CORE/HDD/src/wlan_hdd_cfg.c b/CORE/HDD/src/wlan_hdd_cfg.c index 07be7bb39b75..f0dbbc09677f 100644 --- a/CORE/HDD/src/wlan_hdd_cfg.c +++ b/CORE/HDD/src/wlan_hdd_cfg.c @@ -3993,7 +3993,7 @@ config_exit: } -static void print_hdd_cfg(hdd_context_t *pHddCtx) +void print_hdd_cfg(hdd_context_t *pHddCtx) { int i; @@ -4073,6 +4073,17 @@ static void print_hdd_cfg(hdd_context_t *pHddCtx) #ifdef FEATURE_WLAN_OKC VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [OkcEnabled] Value = [%u] ",pHddCtx->cfg_ini->isOkcIniFeatureEnabled); #endif +#ifdef FEATURE_WLAN_SCAN_PNO + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [configPNOScanSupport] Value = [%u] ",pHddCtx->cfg_ini->configPNOScanSupport); + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [configPNOScanTimerRepeatValue] Value = [%u] ",pHddCtx->cfg_ini->configPNOScanTimerRepeatValue); +#endif +#ifdef FEATURE_WLAN_TDLS + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fEnableTDLSSupport] Value = [%u] ",pHddCtx->cfg_ini->fEnableTDLSSupport); + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fEnableTDLSImplicitTrigger] Value = [%u] ",pHddCtx->cfg_ini->fEnableTDLSImplicitTrigger); + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fTDLSExternalControl] Value = [%u] ",pHddCtx->cfg_ini->fTDLSExternalControl); + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fTDLSUapsdMask] Value = [%u] ",pHddCtx->cfg_ini->fTDLSUapsdMask); + VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [fEnableTDLSBufferSta] Value = [%u] ",pHddCtx->cfg_ini->fEnableTDLSBufferSta); +#endif VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraDirAcVo] Value = [%u] ",pHddCtx->cfg_ini->InfraDirAcVo); VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraNomMsduSizeAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraNomMsduSizeAcVo); VOS_TRACE(VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO_HIGH, "Name = [InfraMeanDataRateAcVo] Value = [0x%x] ",pHddCtx->cfg_ini->InfraMeanDataRateAcVo); @@ -4773,7 +4784,6 @@ static VOS_STATUS hdd_apply_cfg_ini( hdd_context_t *pHddCtx, tCfgIniEntry* iniTa #ifndef QCA_WIFI_2_0 pHddCtx->cfg_ini->enablePowersaveOffload = 0; #endif - print_hdd_cfg(pHddCtx); return( ret_status ); } diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index 4570e11958d9..a34eebd29063 100755 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -6048,6 +6048,8 @@ static void hdd_update_tgt_services(hdd_context_t *hdd_ctx, #ifdef FEATURE_WLAN_SCAN_PNO /* PNO offload */ + hddLog(VOS_TRACE_LEVEL_INFO_HIGH, "%s: PNO Capability in f/w = %d", + __func__,cfg->pno_offload); if (cfg->pno_offload) cfg_ini->PnoOffload = TRUE; #endif @@ -11464,6 +11466,7 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc) hdd_wdi_trace_enable(eWLAN_MODULE_PAL, pHddCtx->cfg_ini->wdiTraceEnablePAL); + print_hdd_cfg(pHddCtx); if (VOS_FTM_MODE == hdd_get_conparam()) goto ftm_processing; |
