From 50982ac6b3330ca1af0c82913acfd3218ecf80e2 Mon Sep 17 00:00:00 2001 From: Abdul Muqtadeer Ahmed Date: Mon, 4 Jan 2021 20:45:29 +0530 Subject: [PATCH] qcacld-3.0: Replace mission mode with monitor mode The command should not be sent when device is in monitor mode. But it is allowed in mission mode. Change-Id: Ic21a8244425315577e7f0b2423c4fe6c5ac42702 CRs-Fixed: 2847777 --- core/hdd/src/wlan_hdd_ioctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_ioctl.c b/core/hdd/src/wlan_hdd_ioctl.c index 9ae09178fe01..e5d5bbf5b8f4 100644 --- a/core/hdd/src/wlan_hdd_ioctl.c +++ b/core/hdd/src/wlan_hdd_ioctl.c @@ -2302,7 +2302,7 @@ static int hdd_enable_unit_test_commands(struct hdd_adapter *adapter, QDF_STATUS status; if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE || - hdd_get_conparam() == QDF_GLOBAL_MISSION_MODE) + hdd_get_conparam() == QDF_GLOBAL_MONITOR_MODE) return -EPERM; if (adapter->vdev_id >= WLAN_MAX_VDEVS) { @@ -2378,7 +2378,7 @@ static int hdd_disable_unit_test_commands(struct hdd_adapter *adapter, QDF_STATUS status; if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE || - hdd_get_conparam() == QDF_GLOBAL_MISSION_MODE) + hdd_get_conparam() == QDF_GLOBAL_MONITOR_MODE) return -EPERM; if (adapter->vdev_id >= WLAN_MAX_VDEVS) {