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
This commit is contained in:

committed by
snandini

parent
dd019ef5ed
commit
39f370d202
@@ -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
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* 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;
|
QDF_STATUS status;
|
||||||
|
|
||||||
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
|
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
|
||||||
hdd_get_conparam() == QDF_GLOBAL_MISSION_MODE)
|
hdd_get_conparam() == QDF_GLOBAL_MONITOR_MODE)
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
if (adapter->vdev_id >= WLAN_MAX_VDEVS) {
|
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;
|
QDF_STATUS status;
|
||||||
|
|
||||||
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
|
if (hdd_get_conparam() == QDF_GLOBAL_FTM_MODE ||
|
||||||
hdd_get_conparam() == QDF_GLOBAL_MISSION_MODE)
|
hdd_get_conparam() == QDF_GLOBAL_MONITOR_MODE)
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
||||||
if (adapter->vdev_id >= WLAN_MAX_VDEVS) {
|
if (adapter->vdev_id >= WLAN_MAX_VDEVS) {
|
||||||
|
Reference in New Issue
Block a user