diff options
| author | Manikandan Mohan <manikand@qca.qualcomm.com> | 2015-11-05 14:04:56 -0800 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-11-06 18:12:27 +0530 |
| commit | f8d89925aa7d351e5154e95fd228e2ae1769e6d2 (patch) | |
| tree | fe3abb6e0171cb686d4af6a371aa140a53295aa2 | |
| parent | 70bad430dd511cd94099f158f399f820ee7a5e98 (diff) | |
qcacld: Configure only valid TSF gpio pin
Update qcacld to configure only valid GPIO setting if enabled in
INI file. Default TSF Gpio value is set as invalid, So it will not
be set in fw during driver load.
Change-Id: I0414becbf83718155a9ca51d60f34d0e8ffcd4e3
CRs-fixed: 935967
| -rw-r--r-- | CORE/HDD/inc/wlan_hdd_cfg.h | 5 | ||||
| -rwxr-xr-x | CORE/HDD/src/wlan_hdd_main.c | 10 |
2 files changed, 8 insertions, 7 deletions
diff --git a/CORE/HDD/inc/wlan_hdd_cfg.h b/CORE/HDD/inc/wlan_hdd_cfg.h index d10609da3589..9cab77599496 100644 --- a/CORE/HDD/inc/wlan_hdd_cfg.h +++ b/CORE/HDD/inc/wlan_hdd_cfg.h @@ -3181,8 +3181,9 @@ enum dot11p_mode { /* GPIO pin to toogle when capture tsf */ #define CFG_SET_TSF_GPIO_PIN_NAME "gtsf_gpio_pin" #define CFG_SET_TSF_GPIO_PIN_MIN (0) -#define CFG_SET_TSF_GPIO_PIN_MAX (255) -#define CFG_SET_TSF_GPIO_PIN_DEFAULT (34) +#define CFG_SET_TSF_GPIO_PIN_MAX (254) +#define TSF_GPIO_PIN_INVALID (255) +#define CFG_SET_TSF_GPIO_PIN_DEFAULT (TSF_GPIO_PIN_INVALID) #define CFG_MULTICAST_HOST_FW_MSGS "gMulticastHostFwMsgs" #define CFG_MULTICAST_HOST_FW_MSGS_MIN (0) diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c index 23166519c678..de4d85a775f2 100755 --- a/CORE/HDD/src/wlan_hdd_main.c +++ b/CORE/HDD/src/wlan_hdd_main.c @@ -12819,11 +12819,11 @@ int hdd_wlan_startup(struct device *dev, v_VOID_t *hif_sc) "%s: Error setting txlimit in sme", __func__); } - hal_status = sme_set_tsf_gpio(pHddCtx->hHal, pHddCtx->cfg_ini->tsf_gpio_pin); - - if (eHAL_STATUS_SUCCESS != hal_status) { - hddLog(VOS_TRACE_LEVEL_ERROR, - FL("set tsf GPIO fail")); + if (pHddCtx->cfg_ini->tsf_gpio_pin != TSF_GPIO_PIN_INVALID) { + hal_status = sme_set_tsf_gpio(pHddCtx->hHal, + pHddCtx->cfg_ini->tsf_gpio_pin); + if (eHAL_STATUS_SUCCESS != hal_status) + hddLog(VOS_TRACE_LEVEL_ERROR, FL("set tsf GPIO failed")); } #ifdef MSM_PLATFORM |
