summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@qca.qualcomm.com>2015-05-27 20:05:03 -0700
committerAnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com>2015-05-28 15:55:05 +0530
commit958e13591d35fc91e33aaef62fd0e011d3ff5c51 (patch)
treeaf29c92f3ae429a2f4e3e428a2b8fd06df78167b
parent2276508a27220139239f028ef34f94a9dfcbe902 (diff)
qcacld-2.0: Block driver commands in FTM mode
Block STA and SAP specific driver commands in FTM mode. Change-Id: I93928fa05f253cba31fc8ab45e9b8a0644f44ea8 CRs-Fixed: 844532
-rw-r--r--CORE/HDD/src/wlan_hdd_hostapd.c5
-rwxr-xr-xCORE/HDD/src/wlan_hdd_main.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index 215d58661b50..6d08449ef1cd 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -340,6 +340,11 @@ static int hdd_hostapd_driver_command(hdd_adapter_t *pAdapter,
tANI_U8 *command = NULL;
int ret = 0;
+ if (VOS_FTM_MODE == hdd_get_conparam()) {
+ hddLog(LOGE, FL("Command not allowed in FTM mode"));
+ return -EINVAL;
+ }
+
/*
* Note that valid pointers are provided by caller
*/
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 5f331fdddfe9..90ec2f87d3c0 100755
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -3866,6 +3866,11 @@ static int hdd_driver_command(hdd_adapter_t *pAdapter,
tANI_U8 *command = NULL;
int ret = 0;
+ if (VOS_FTM_MODE == hdd_get_conparam()) {
+ hddLog(LOGE, FL("Command not allowed in FTM mode"));
+ return -EINVAL;
+ }
+
/*
* Note that valid pointers are provided by caller
*/