summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CORE/HDD/inc/wlan_hdd_cfg.h5
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c10
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