|
@@ -1,5 +1,6 @@
|
|
|
/*
|
|
|
* Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. 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
|
|
@@ -73,9 +74,6 @@ QDF_STATUS os_if_monitor_mode_configure(struct hdd_adapter *adapter,
|
|
|
struct nlattr *tb[SET_MONITOR_MODE_CONFIG_MAX + 1];
|
|
|
QDF_STATUS status;
|
|
|
|
|
|
- if (tb[SET_MONITOR_MODE_INVALID])
|
|
|
- return QDF_STATUS_E_FAILURE;
|
|
|
-
|
|
|
vdev = hdd_objmgr_get_vdev_by_user(adapter, WLAN_PKT_CAPTURE_ID);
|
|
|
if (!vdev)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
@@ -87,6 +85,9 @@ QDF_STATUS os_if_monitor_mode_configure(struct hdd_adapter *adapter,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
+ if (tb[SET_MONITOR_MODE_INVALID])
|
|
|
+ return QDF_STATUS_E_FAILURE;
|
|
|
+
|
|
|
if (tb[SET_MONITOR_MODE_DATA_TX_FRAME_TYPE] &&
|
|
|
nla_get_u32(tb[SET_MONITOR_MODE_DATA_TX_FRAME_TYPE]) <
|
|
|
PACKET_CAPTURE_DATA_MAX_FILTER) {
|