Explorar o código

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
Abdul Muqtadeer Ahmed %!s(int64=4) %!d(string=hai) anos
pai
achega
39f370d202
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      core/hdd/src/wlan_hdd_ioctl.c

+ 3 - 3
core/hdd/src/wlan_hdd_ioctl.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -2295,7 +2295,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) {
@@ -2371,7 +2371,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) {