AI Trajectory


Trajectory: (Expand/Collapse All)
Seq Timestamp Type Name Duration
0/0 2026/07/26 08:30 flow patch-triage
1m Args:
null

Results:
{
  "EnableConfigs": [
    "MWIFIEX",
    "MWIFIEX_USB",
    "CFG80211",
    "USB"
  ],
  "FocusSymbols": [
    "mwifiex_wait_queue_complete",
    "mwifiex_send_cmd",
    "mwifiex_scan_networks",
    "mwifiex_add_card"
  ],
  "Reasoning": "The patch modifies the Marvell WiFi-Ex Driver to detach a caller-owned buffer from the current command if a wait is interrupted, preventing a potential use-after-free or memory corruption. It also removes the WQ_HIGHPRI flag from the workqueue allocation in mwifiex_add_card and mwifiex_reinit_sw. These are functional changes in a driver that can be reached via the USB interface, which is emulated in virtualized environments like QEMU using vhci (dummy USB device).",
  "WorthFuzzing": true
}

1/1 2026/07/26 08:30 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 8e2f76ab7bb0c8f8dc148543db5c1343a5476efb\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Sun Jul 26 08:30:31 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c\nindex a8eab6b1e63b0f..c8df3edff675fe 100644\n--- a/drivers/net/wireless/marvell/mwifiex/main.c\n+++ b/drivers/net/wireless/marvell/mwifiex/main.c\n@@ -1550,7 +1550,7 @@ mwifiex_reinit_sw(struct mwifiex_adapter *adapter)\n \n \tadapter-\u003eworkqueue =\n \t\talloc_workqueue(\"MWIFIEX_WORK_QUEUE\",\n-\t\t\t\tWQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 0);\n+\t\t\t\tWQ_MEM_RECLAIM | WQ_UNBOUND, 0);\n \tif (!adapter-\u003eworkqueue)\n \t\tgoto err_kmalloc;\n \n@@ -1716,7 +1716,7 @@ mwifiex_add_card(void *card, struct completion *fw_done,\n \n \tadapter-\u003eworkqueue =\n \t\talloc_workqueue(\"MWIFIEX_WORK_QUEUE\",\n-\t\t\t\tWQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 0);\n+\t\t\t\tWQ_MEM_RECLAIM | WQ_UNBOUND, 0);\n \tif (!adapter-\u003eworkqueue)\n \t\tgoto err_kmalloc;\n \ndiff --git a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c\nindex 9460d5352b234e..19196848778c0c 100644\n--- a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c\n+++ b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c\n@@ -57,6 +57,18 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\n \t\tmwifiex_dbg(adapter, ERROR, \"cmd_wait_q terminated: %d\\n\",\n \t\t\t    status);\n \t\tmwifiex_cancel_all_pending_cmd(adapter);\n+\n+\t\t/* The command response path writes through cmd_node-\u003edata_buf.\n+\t\t * On an interrupted wait, the caller can return and release a\n+\t\t * stack-allocated data_buf before a late firmware response is\n+\t\t * processed. Detach the caller-owned buffer from the current\n+\t\t * command so a late response cannot corrupt freed stack memory.\n+\t\t */\n+\t\tspin_lock_bh(\u0026adapter-\u003emwifiex_cmd_lock);\n+\t\tif (adapter-\u003ecurr_cmd == cmd_queued)\n+\t\t\tadapter-\u003ecurr_cmd-\u003edata_buf = NULL;\n+\t\tspin_unlock_bh(\u0026adapter-\u003emwifiex_cmd_lock);\n+\n \t\treturn status;\n \t}\n \n"
}

2/1 2026/07/26 08:30 agent patch-evaluator
1m Model:
best-expensive

Args:
null

Results:
{
  "EnableConfigs": [
    "MWIFIEX",
    "MWIFIEX_USB",
    "CFG80211",
    "USB"
  ],
  "FocusSymbols": [
    "mwifiex_wait_queue_complete",
    "mwifiex_send_cmd",
    "mwifiex_scan_networks",
    "mwifiex_add_card"
  ],
  "Reasoning": "The patch modifies the Marvell WiFi-Ex Driver to detach a caller-owned buffer from the current command if a wait is interrupted, preventing a potential use-after-free or memory corruption. It also removes the WQ_HIGHPRI flag from the workqueue allocation in mwifiex_add_card and mwifiex_reinit_sw. These are functional changes in a driver that can be reached via the USB interface, which is emulated in virtualized environments like QEMU using vhci (dummy USB device).",
  "WorthFuzzing": true
}

Instruction:
You are an expert Linux kernel maintainer.
Your job is to review a provided patch series and determine
if it makes functional changes to the kernel that should be fuzzed.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on your internal knowledge of the kernel. You must actively
use your code access tools to examine the actual source code and confirm any assumptions.

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
  even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).
- Code in vendor-specific PCIe switch, SmartNIC, or GPU drivers (e.g., mlxsw, pds_core, qed,
  ionic, amdgpu) that require physical PCIe hardware cards not emulated in standard QEMU.
- Driver .remove, .shutdown, or pci_unregister_driver teardown callbacks (e.g., igb_remove)
  that are executed only during PCI hot-unplug or sysfs driver unbind operations.

If it modifies reachable core kernel logic, drivers, or architectures, use your code search
tools to verify the code can be executed, then return WorthFuzzing=true.

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
   Prefer non-static, non-inlined API entrypoint functions over internal static helper functions
   (which are inlined by the compiler and do not have distinct symbol addresses).
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Also check "depends on" lines in Kconfig to include any non-standard parent subsystem configs
   needed for Kbuild to compile the code statically into vmlinux. List them in the EnableConfigs
   output array, and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


Use set-results tool to provide results of the analysis.
It must be called exactly once before the final reply.
Ignore results of this tool.

Prompt:
For your convenience, here is the diff of the changes:
commit 8e2f76ab7bb0c8f8dc148543db5c1343a5476efb
Author: syz-cluster <triage@syzkaller.com>
Date:   Sun Jul 26 08:30:31 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index a8eab6b1e63b0f..c8df3edff675fe 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -1550,7 +1550,7 @@ mwifiex_reinit_sw(struct mwifiex_adapter *adapter)
 
 	adapter->workqueue =
 		alloc_workqueue("MWIFIEX_WORK_QUEUE",
-				WQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
+				WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
 	if (!adapter->workqueue)
 		goto err_kmalloc;
 
@@ -1716,7 +1716,7 @@ mwifiex_add_card(void *card, struct completion *fw_done,
 
 	adapter->workqueue =
 		alloc_workqueue("MWIFIEX_WORK_QUEUE",
-				WQ_HIGHPRI | WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
+				WQ_MEM_RECLAIM | WQ_UNBOUND, 0);
 	if (!adapter->workqueue)
 		goto err_kmalloc;
 
diff --git a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c
index 9460d5352b234e..19196848778c0c 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_ioctl.c
@@ -57,6 +57,18 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,
 		mwifiex_dbg(adapter, ERROR, "cmd_wait_q terminated: %d\n",
 			    status);
 		mwifiex_cancel_all_pending_cmd(adapter);
+
+		/* The command response path writes through cmd_node->data_buf.
+		 * On an interrupted wait, the caller can return and release a
+		 * stack-allocated data_buf before a late firmware response is
+		 * processed. Detach the caller-owned buffer from the current
+		 * command so a late response cannot corrupt freed stack memory.
+		 */
+		spin_lock_bh(&adapter->mwifiex_cmd_lock);
+		if (adapter->curr_cmd == cmd_queued)
+			adapter->curr_cmd->data_buf = NULL;
+		spin_unlock_bh(&adapter->mwifiex_cmd_lock);
+
 		return status;
 	}
 

3/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 2586
							output: 39
							thoughts: 218
						

Thoughts:
**Analyzing a Potential Vulnerability in the Marvell WiFi-Ex Driver**

Okay, so I'm looking at this patch and it seems to be touching `mwifiex` – specifically, `drivers/net/wireless/marvell/mwifiex/main.c` and `drivers/net/wireless/marvell/mwifiex/sta_ioctl.c`. My immediate thought is, "What's the impact of these changes?" It looks like they're removing `WQ_HIGHPRI` from `alloc_workqueue` in `mwifiex_reinit_sw` and `mwifiex_add_card`, and also adding a new check in `mwifiex_wait_queue_complete` to handle buffer detachment during an interrupted wait.

My next step is to figure out if this is actually exploitable in a virtualized environment. The Marvell WiFi-Ex driver (`mwifiex`) typically supports SDIO, PCIe, and USB interfaces. USB is often the easiest to emulate using something like a USB gadget or vhci. So, the chances of this being reachable in a virtualized context are probably fairly high, which is important to consider.

To get a better picture, I'm going to quickly check the `Kconfig` file in that directory. I want to see if there are any specific configuration options that might provide clues about the conditions necessary to trigger this, or if I can figure out how the driver can be made available for testing. Understanding the available configurations will give me an idea about how to replicate a test environment.



4/2 2026/07/26 08:30 tool grepper
0m Args:
{
  "Expression": "config MWIFIEX",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/Kconfig"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/Kconfig-1-# SPDX-License-Identifier: GPL-2.0-only\ndrivers/net/wireless/marvell/mwifiex/Kconfig:2:config MWIFIEX\ndrivers/net/wireless/marvell/mwifiex/Kconfig-3-\ttristate \"Marvell WiFi-Ex Driver\"\n--\ndrivers/net/wireless/marvell/mwifiex/Kconfig-11-\ndrivers/net/wireless/marvell/mwifiex/Kconfig:12:config MWIFIEX_SDIO\ndrivers/net/wireless/marvell/mwifiex/Kconfig-13-\ttristate \"Marvell WiFi-Ex Driver for SD8786/SD8787/SD8797/SD8887/SD8897/SD8977/SD8978/SD8987/SD8997\"\n--\ndrivers/net/wireless/marvell/mwifiex/Kconfig-24-\ndrivers/net/wireless/marvell/mwifiex/Kconfig:25:config MWIFIEX_PCIE\ndrivers/net/wireless/marvell/mwifiex/Kconfig-26-\ttristate \"Marvell WiFi-Ex Driver for PCIE 8766/8897/8997\"\n--\ndrivers/net/wireless/marvell/mwifiex/Kconfig-36-\ndrivers/net/wireless/marvell/mwifiex/Kconfig:37:config MWIFIEX_USB\ndrivers/net/wireless/marvell/mwifiex/Kconfig-38-\ttristate \"Marvell WiFi-Ex Driver for USB8766/8797/8997\"\n"
}

5/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 3599
							output: 42
							thoughts: 30
						

Thoughts:
Here's my thought process, as if I were analyzing this code:

**MWIFIEX_USB Deep Dive**

Okay, so `MWIFIEX_USB` is clearly in the picture, which means we're dealing with a USB-based implementation of the MWIFIEX driver. My immediate next step is to drill down into how the asynchronous completion mechanism is being handled. I know this driver relies on queuing, so let's check `mwifiex_wait_queue_complete`. This function is critical for synchronizing the driver's operation, so understanding its behavior and potential bottlenecks is paramount. I need to trace *all* the places that call this function. That will tell me where these completion events are expected to be signaled from, and where the driver is blocked until these events are received. I need to map out the entire call graph related to this wait function, and understand all the states it's being used to synchronize. That will give me the big picture of any dependencies that will be impacted by its use, and if there are any race conditions to look out for.



6/2 2026/07/26 08:30 tool grepper
0m Args:
{
  "Expression": "mwifiex_wait_queue_complete",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/cmdevt.c=542=int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\n--\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-667-\t\tif (cmd_node-\u003ewait_q_enabled)\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c:668:\t\t\tret = mwifiex_wait_queue_complete(adapter, cmd_node);\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-669-\t}\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1476=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\ndrivers/net/wireless/marvell/mwifiex/main.h-1477-\t\t\t    struct net_device *dev);\ndrivers/net/wireless/marvell/mwifiex/main.h:1478:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/main.h-1479-\t\t\t\tstruct cmd_ctrl_node *cmd_queued);\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c=1470=int mwifiex_scan_networks(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c-1542-\t\t\t\t\t    \"wait internal scan\\n\");\ndrivers/net/wireless/marvell/mwifiex/scan.c:1543:\t\t\t\tmwifiex_wait_queue_complete(adapter, cmd_node);\ndrivers/net/wireless/marvell/mwifiex/scan.c-1544-\t\t\t}\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c=27=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-44- */\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c:45:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-46-\t\t\t\tstruct cmd_ctrl_node *cmd_queued)\n"
}

7/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 4522
							output: 41
							thoughts: 115
						

Thoughts:
**Analyzing the mwifiex Driver for Fuzzing Potential**

Okay, so I'm looking at `mwifiex_wait_queue_complete`. This function pops up in both `mwifiex_send_cmd` and `mwifiex_scan_networks`.  `mwifiex_send_cmd` is clearly a critical function, the backbone for sending commands down to the firmware.  Given that this is a USB driver, the potential for fuzzing using syzkaller and the virtual HCI device (vhci) is really promising. The entry points, the command functions are clearly there. Now, let's nail down those configuration options. Need to know what switches are enabled. I'm seeing `MWIFIEX` and `MWIFIEX_USB` options. That's a good start. Let me check the dependencies for `MWIFIEX_USB` to understand the setup. I need to understand the configuration to determine the optimal fuzzing strategy.



8/2 2026/07/26 08:30 tool grepper
0m Args:
{
  "Expression": "config MWIFIEX_USB",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/Kconfig"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/Kconfig=25=config MWIFIEX_PCIE\n--\ndrivers/net/wireless/marvell/mwifiex/Kconfig-36-\ndrivers/net/wireless/marvell/mwifiex/Kconfig:37:config MWIFIEX_USB\ndrivers/net/wireless/marvell/mwifiex/Kconfig-38-\ttristate \"Marvell WiFi-Ex Driver for USB8766/8797/8997\"\n"
}

9/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 5017
							output: 42
							thoughts: 27
						

Thoughts:
Okay, here's my interpretation of that thought process, assuming I'm well-versed in kernel configuration and Marvell wireless drivers:

**Analyzing the Marvell Wi-Fi Driver Kconfig**

Alright, my internal radar is pinging a specific Kconfig file – `drivers/net/wireless/marvell/mwifiex/Kconfig` – and I'm directing my mental focus around line 37. I'm immediately trying to figure out *why* I'm being drawn to that particular section. Am I looking for a specific configuration option related to power management? Perhaps some debugging flags? Or maybe I'm troubleshooting a specific module selection issue related to the Marvell Wi-Fi driver. I'm likely looking for a dependency or a default value related to some features. It's time to dig into that file and see what's being configured around that line. My expertise is now being focused in on that area to get a handle on what the system is going to do. Let's see what secrets that Kconfig file is holding!



10/2 2026/07/26 08:30 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/marvell/mwifiex/Kconfig",
  "FirstLine": 30,
  "LineCount": 20
}

Results:
{
  "Contents": "  30:\t\thelp\n  31:\t\t  This adds support for wireless adapters based on Marvell\n  32:\t\t  8766/8897/8997 chipsets with PCIe interface.\n  33:\t\n  34:\t\t  If you choose to build it as a module, it will be called\n  35:\t\t  mwifiex_pcie.\n  36:\t\n  37:\tconfig MWIFIEX_USB\n  38:\t\ttristate \"Marvell WiFi-Ex Driver for USB8766/8797/8997\"\n  39:\t\tdepends on MWIFIEX \u0026\u0026 USB\n  40:\t\tselect FW_LOADER\n  41:\t\thelp\n  42:\t\t  This adds support for wireless adapters based on Marvell\n  43:\t\t  8797/8997 chipset with USB interface.\n  44:\t\n  45:\t\t  If you choose to build it as a module, it will be called\n  46:\t\t  mwifiex_usb.\n"
}

11/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 5573
							output: 41
							thoughts: 36
						

Thoughts:
Okay, here's my take on those dependencies, summarized as a thought process:

**Dependencies and Their Structure**

Alright, let's break this down. My focus here is the relationship between the `MWIFIEX` driver and its dependencies. It's crucial, obviously, to understand how these modules relate to each other for any debugging or modification I'd want to do.

`MWIFIEX` needs `USB` to communicate with the host. That seems straightforward enough, given the driver's function. But `MWIFIEX` itself isn't a standalone entity. Digging deeper, I see it also has dependencies on `MAC80211` and `CFG80211`. That's where the real structure becomes interesting. These are the core wireless networking components, the lower layers. So `MWIFIEX` likely sits on top of these, providing a more specific interface or functionality related to a specific hardware family. Essentially `MWIFIEX` leverages the low level 802.11 stack to work on USB.



12/2 2026/07/26 08:30 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/marvell/mwifiex/Kconfig",
  "FirstLine": 1,
  "LineCount": 20
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig MWIFIEX\n   3:\t\ttristate \"Marvell WiFi-Ex Driver\"\n   4:\t\tdepends on CFG80211\n   5:\t\thelp\n   6:\t\t  This adds support for wireless adapters based on Marvell\n   7:\t\t  802.11n/ac chipsets.\n   8:\t\n   9:\t\t  If you choose to build it as a module, it will be called\n  10:\t\t  mwifiex.\n  11:\t\n  12:\tconfig MWIFIEX_SDIO\n  13:\t\ttristate \"Marvell WiFi-Ex Driver for SD8786/SD8787/SD8797/SD8887/SD8897/SD8977/SD8978/SD8987/SD8997\"\n  14:\t\tdepends on MWIFIEX \u0026\u0026 MMC\n  15:\t\tselect FW_LOADER\n  16:\t\tselect WANT_DEV_COREDUMP\n  17:\t\thelp\n  18:\t\t  This adds support for wireless adapters based on Marvell\n  19:\t\t  8786/8787/8797/8887/8897/8977/8978/8987/8997 chipsets with\n  20:\t\t  SDIO interface. SD8978 is also known as NXP IW416.\n"
}

13/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 6254
							output: 40
							thoughts: 108
						

Thoughts:
**Fuzzing the MWIFIEX Driver: Initial Assessment**

Okay, so I'm looking at this `MWIFIEX` driver and its associated configurations: `MWIFIEX`, `MWIFIEX_USB`, `CFG80211`, and the general `USB` support. The goal, as always, is to identify viable entry points for fuzzing. I need to figure out where I can inject malformed data to trigger interesting behavior.

Right away, `mwifiex_wait_queue_complete` catches my eye. It's called from `mwifiex_send_cmd` and `mwifiex_scan_networks`, which is a decent starting point. `mwifiex_send_cmd` in particular looks promising. It seems like a central command handler and is likely to touch a lot of different code paths. I need to understand its behavior and what kind of data it accepts.

Now, let's drill down. I should check what other functions call `mwifiex_send_cmd`. That'll help me understand the complete execution flow to find more interesting entrypoints. Finding all the call sites to this command handler would give me a good insight into the overall driver structure.



14/2 2026/07/26 08:30 tool grepper
0m Args:
{
  "Expression": "mwifiex_send_cmd",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 737 lines.\nUse more precise expression if possible.\n\ndrivers/net/wireless/marvell/mwifiex/11h.c=70=int mwifiex_11h_activate(struct mwifiex_private *priv, bool flag)\n--\ndrivers/net/wireless/marvell/mwifiex/11h.c-77-\ndrivers/net/wireless/marvell/mwifiex/11h.c:78:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/11h.c-79-\t\t\t\tHostCmd_ACT_GEN_SET, DOT11H_I, \u0026enable, true);\n--\ndrivers/net/wireless/marvell/mwifiex/11h.c=159=int mwifiex_stop_radar_detection(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/11h.c-167-\ndrivers/net/wireless/marvell/mwifiex/11h.c:168:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_CHAN_REPORT_REQUEST,\ndrivers/net/wireless/marvell/mwifiex/11h.c-169-\t\t\t\tHostCmd_ACT_GEN_SET, 0, \u0026radar_params, true);\n--\ndrivers/net/wireless/marvell/mwifiex/11n.c=576=int mwifiex_send_addba(struct mwifiex_private *priv, int tid, u8 *peer_mac)\n--\ndrivers/net/wireless/marvell/mwifiex/11n.c-628-\t/* We don't wait for the response of this command */\ndrivers/net/wireless/marvell/mwifiex/11n.c:629:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_11N_ADDBA_REQ,\ndrivers/net/wireless/marvell/mwifiex/11n.c-630-\t\t\t       0, 0, \u0026add_ba_req, false);\n--\ndrivers/net/wireless/marvell/mwifiex/11n.c=638=int mwifiex_send_delba(struct mwifiex_private *priv, int tid, u8 *peer_mac,\n--\ndrivers/net/wireless/marvell/mwifiex/11n.c-657-\t/* We don't wait for the response of this command */\ndrivers/net/wireless/marvell/mwifiex/11n.c:658:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_11N_DELBA,\ndrivers/net/wireless/marvell/mwifiex/11n.c-659-\t\t\t       HostCmd_ACT_GEN_SET, 0, \u0026delba, false);\n--\ndrivers/net/wireless/marvell/mwifiex/11n_rxreorder.c=765=void mwifiex_11n_ba_stream_timeout(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/11n_rxreorder.c-777-\tdelba.reason_code = cpu_to_le16(WLAN_REASON_QSTA_TIMEOUT);\ndrivers/net/wireless/marvell/mwifiex/11n_rxreorder.c:778:\tmwifiex_send_cmd(priv, HostCmd_CMD_11N_DELBA, 0, 0, \u0026delba, false);\ndrivers/net/wireless/marvell/mwifiex/11n_rxreorder.c-779-}\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=282=mwifiex_cfg80211_update_mgmt_frame_registrations(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-292-\t\t\tpriv-\u003emgmt_frame_mask |= HOST_MLME_MGMT_MASK;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:293:\t\tmwifiex_send_cmd(priv, HostCmd_CMD_MGMT_FRAME_REG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-294-\t\t\t\t HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=413=mwifiex_cfg80211_get_tx_power(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-420-\t\t\t\t\t\t\tMWIFIEX_BSS_ROLE_ANY);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:421:\tint ret = mwifiex_send_cmd(priv, HostCmd_CMD_RF_TX_PWR,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-422-\t\t\t\t   HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=521=mwifiex_cfg80211_set_default_mgmt_key(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-539-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:540:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_802_11_KEY_MATERIAL,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-541-\t\t\t     HostCmd_ACT_GEN_SET, true, \u0026encrypt_key, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=557=int mwifiex_send_domain_info_cmd_fw(struct wiphy *wiphy)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-627-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:628:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_802_11D_DOMAIN_INFO,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-629-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, false)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=707=mwifiex_set_frag(struct mwifiex_private *priv, u32 frag_thr)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-712-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:713:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-714-\t\t\t\tHostCmd_ACT_GEN_SET, FRAG_THRESH_I,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=725=mwifiex_set_rts(struct mwifiex_private *priv, u32 rts_thr)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-729-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:730:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-731-\t\t\t\tHostCmd_ACT_GEN_SET, RTS_THRESH_I,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=742=mwifiex_cfg80211_set_wiphy_params(struct wiphy *wiphy, int radio_idx,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-772-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:773:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_UAP_SYS_CONFIG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-774-\t\t\t\t       HostCmd_ACT_GEN_SET,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=811=mwifiex_cfg80211_deinit_p2p(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-814-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:815:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_P2P_MODE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-816-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026mode, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=828=mwifiex_cfg80211_init_p2p_client(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-835-\tmode = P2P_MODE_DEVICE;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:836:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_P2P_MODE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-837-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026mode, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-840-\tmode = P2P_MODE_CLIENT;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:841:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_P2P_MODE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-842-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026mode, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=854=mwifiex_cfg80211_init_p2p_go(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-861-\tmode = P2P_MODE_DEVICE;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:862:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_P2P_MODE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-863-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026mode, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-866-\tmode = P2P_MODE_GO;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:867:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_P2P_MODE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-868-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026mode, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=874=static int mwifiex_deinit_priv_params(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-880-\tpriv-\u003emgmt_frame_mask = 0;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:881:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_MGMT_FRAME_REG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-882-\t\t\t     HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1085=mwifiex_change_vif_to_p2p(struct net_device *dev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1127-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1128:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1129-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1139=mwifiex_change_vif_to_sta_adhoc(struct net_device *dev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1169-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1170:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1171-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1180=mwifiex_change_vif_to_ap(struct net_device *dev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1206-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1207:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1208-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1219=mwifiex_cfg80211_change_virtual_intf(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1262-\t\t\tmwifiex_deauthenticate(priv, NULL);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1263:\t\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1264-\t\t\t\t\t\tHostCmd_ACT_GEN_SET, 0, NULL,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1284-\t\t\tmwifiex_deauthenticate(priv, NULL);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1285:\t\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1286-\t\t\t\t\t\tHostCmd_ACT_GEN_SET, 0, NULL,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1461=mwifiex_dump_station_info(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1497-\t/* Get signal information from the firmware */\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1498:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_RSSI_INFO,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1499-\t\t\t     HostCmd_ACT_GEN_GET, 0, NULL, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1511-\t/* Get DTIM period information from firmware */\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1512:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1513-\t\t\t HostCmd_ACT_GEN_GET, DTIM_PERIOD_I,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1575=mwifiex_cfg80211_dump_station(struct wiphy *wiphy, struct wireless_dev *wdev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1586-\t} else if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) {\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1587:\t\tmwifiex_send_cmd(priv, HOST_CMD_APCMD_STA_LIST,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1588-\t\t\t\t HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1778=mwifiex_cfg80211_set_bitrate_mask(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1820-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1821:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_TX_RATE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1822-\t\t\t\tHostCmd_ACT_GEN_SET, 0, bitmap_rates, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1831=static int mwifiex_cfg80211_set_cqm_rssi_config(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1850-\t\tsubsc_evt.bcn_h_rssi_cfg.evt_freq = 1;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1851:\t\treturn mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1852-\t\t\t\t\tHostCmd_CMD_802_11_SUBSCRIBE_EVENT,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1855-\t\tsubsc_evt.action = HostCmd_ACT_BITWISE_CLR;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1856:\t\treturn mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1857-\t\t\t\t\tHostCmd_CMD_802_11_SUBSCRIBE_EVENT,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1905=mwifiex_cfg80211_del_station(struct wiphy *wiphy, struct wireless_dev *wdev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1935-\tif (is_valid_ether_addr(deauth_mac)) {\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:1936:\t\tif (mwifiex_send_cmd(priv, HostCmd_CMD_UAP_STA_DEAUTH,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-1937-\t\t\t\t     HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=1946=mwifiex_cfg80211_set_antenna(struct wiphy *wiphy, int radio_idx, u32 tx_ant,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2004-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2005:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_RF_ANTENNA,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2006-\t\t\t\tHostCmd_ACT_GEN_SET, 0, \u0026ant_cfg, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=2010=mwifiex_cfg80211_get_antenna(struct wiphy *wiphy, int radio_idx, u32 *tx_ant,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2015-\t\t\t\t\t\t\tMWIFIEX_BSS_ROLE_ANY);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2016:\tmwifiex_send_cmd(priv, HostCmd_CMD_RF_ANTENNA,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2017-\t\t\t HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=2028=static int mwifiex_cfg80211_stop_ap(struct wiphy *wiphy, struct net_device *dev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2041-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2042:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_UAP_BSS_STOP,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2043-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2048-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2049:\tif (mwifiex_send_cmd(priv, HOST_CMD_APCMD_SYS_RESET,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2050-\t\t\t     HostCmd_ACT_GEN_SET, 0, NULL, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=2266=mwifiex_cfg80211_assoc(struct mwifiex_private *priv, size_t ssid_len,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2303-\t\t/* set ibss coalescing_status */\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2304:\t\tret = mwifiex_send_cmd(\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2305-\t\t\t\tpriv,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=2770=mwifiex_cfg80211_sched_scan_start(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2852-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:2853:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_802_11_BG_SCAN_CONFIG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-2854-\t\t\t     HostCmd_ACT_GEN_SET, 0, bgscan_cfg, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=2982=struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3113-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3114:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_SET_BSS_MODE,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3115-\t\t\t\t       HostCmd_ACT_GEN_SET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=3447=static int mwifiex_set_mef_filter(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3480-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3481:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_MEF_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3482-\t\t\tHostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=3653=static int mwifiex_set_rekey_data(struct wiphy *wiphy, struct net_device *dev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3663-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3664:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_GTK_REKEY_OFFLOAD_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3665-\t\t\t\tHostCmd_ACT_GEN_SET, 0, data, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=3750=static int mwifiex_cfg80211_set_coalesce(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3762-\t\t\t    \"Disable coalesce and reset all previous rules\\n\");\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3763:\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_COALESCE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3764-\t\t\t\t\tHostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3779-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3780:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_COALESCE_CFG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3781-\t\t\t\tHostCmd_ACT_GEN_SET, 0, \u0026coalesce_cfg, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=3979=mwifiex_cfg80211_uap_add_station(struct mwifiex_private *priv, const u8 *mac,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3987-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:3988:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_ADD_NEW_STATION,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-3989-\t\t\t       HostCmd_ACT_ADD_STA, 0, (void *)\u0026add_sta, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=4142=static int mwifiex_tm_cmd(struct wiphy *wiphy, struct wireless_dev *wdev,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4174-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4175:\t\tif (mwifiex_send_cmd(priv, 0, 0, 0, hostcmd, true)) {\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4176-\t\t\tdev_err(priv-\u003eadapter-\u003edev, \"Failed to process hostcmd\\n\");\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=4205=mwifiex_cfg80211_start_radar_detection(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4235-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4236:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_CHAN_REPORT_REQUEST,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4237-\t\t\t     HostCmd_ACT_GEN_SET, 0, \u0026radar_params, true))\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=4274=mwifiex_cfg80211_authenticate(struct wiphy *wiphy,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4309-\t\tpriv-\u003emgmt_frame_mask |= HOST_MLME_MGMT_MASK;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4310:\t\tmwifiex_send_cmd(priv, HostCmd_CMD_MGMT_FRAME_REG,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4311-\t\t\t\t HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c=4700=int mwifiex_register_cfg80211(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4909-\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4910:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4911-\t\t\t HostCmd_ACT_GEN_GET, FRAG_THRESH_I, \u0026thr, true);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4912-\twiphy-\u003efrag_threshold = thr;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4913:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4914-\t\t\t HostCmd_ACT_GEN_GET, RTS_THRESH_I, \u0026thr, true);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4915-\twiphy-\u003erts_threshold = thr;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4916:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4917-\t\t\t HostCmd_ACT_GEN_GET, SHORT_RETRY_LIM_I, \u0026retry, true);\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4918-\twiphy-\u003eretry_short = (u8) retry;\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c:4919:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/cfg80211.c-4920-\t\t\t HostCmd_ACT_GEN_GET, LONG_RETRY_LIM_I, \u0026retry, true);\n--\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c=470=int mwifiex_process_event(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-541- */\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c:542:int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-543-\t\t     u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync)\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c=604=mwifiex_memrw_write(struct file *file, const char __user *ubuf, size_t count,\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-634-\tmemcpy(\u0026priv-\u003emem_rw, \u0026mem_rw, sizeof(mem_rw));\ndrivers/net/wireless/marvell/mwifiex/debugfs.c:635:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_MEM_ACCESS, cmd_action, 0,\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-636-\t\t\t     \u0026mem_rw, true))\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c=844=mwifiex_timeshare_coex_read(struct file *file, char __user *ubuf,\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-855-\ndrivers/net/wireless/marvell/mwifiex/debugfs.c:856:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_ROBUST_COEX,\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-857-\t\t\t       HostCmd_ACT_GEN_GET, 0, \u0026timeshare_coex, true);\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c=866=mwifiex_timeshare_coex_write(struct file *file, const char __user *ubuf,\n--\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-879-\ndrivers/net/wireless/marvell/mwifiex/debugfs.c:880:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_ROBUST_COEX,\ndrivers/net/wireless/marvell/mwifiex/debugfs.c-881-\t\t\t       HostCmd_ACT_GEN_SET, 0, \u0026timeshare_coex, true);\n--\ndrivers/net/wireless/marvell/mwifiex/ie.c=69=mwifiex_update_autoindex_ies(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/ie.c-129-\tif (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP)\ndrivers/net/wireless/marvell/mwifiex/ie.c:130:\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_UAP_SYS_CONFIG,\ndrivers/net/wireless/marvell/mwifiex/ie.c-131-\t\t\t\t\tHostCmd_ACT_GEN_SET,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=868=mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-998-\t    (priv-\u003ecurr_pkt_filter \u0026 HostCmd_ACT_MAC_ADHOC_G_PROTECTION_ON)) {\ndrivers/net/wireless/marvell/mwifiex/join.c:999:\t\tif (mwifiex_send_cmd(priv, HostCmd_CMD_MAC_CONTROL,\ndrivers/net/wireless/marvell/mwifiex/join.c-1000-\t\t\t\t     HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1148=mwifiex_cmd_802_11_ad_hoc_join(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1170-\ndrivers/net/wireless/marvell/mwifiex/join.c:1171:\t\tif (mwifiex_send_cmd(priv, HostCmd_CMD_MAC_CONTROL,\ndrivers/net/wireless/marvell/mwifiex/join.c-1172-\t\t\t\t     HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1397=int mwifiex_associate(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1417-\ndrivers/net/wireless/marvell/mwifiex/join.c:1418:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_ASSOCIATE,\ndrivers/net/wireless/marvell/mwifiex/join.c-1419-\t\t\t\tHostCmd_ACT_GEN_SET, 0, bss_desc, true);\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1428=mwifiex_adhoc_start(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1443-\ndrivers/net/wireless/marvell/mwifiex/join.c:1444:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_AD_HOC_START,\ndrivers/net/wireless/marvell/mwifiex/join.c-1445-\t\t\t\tHostCmd_ACT_GEN_SET, 0, adhoc_ssid, true);\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1454=int mwifiex_adhoc_join(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1493-\ndrivers/net/wireless/marvell/mwifiex/join.c:1494:\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_AD_HOC_JOIN,\ndrivers/net/wireless/marvell/mwifiex/join.c-1495-\t\t\t\tHostCmd_ACT_GEN_SET, 0, bss_desc, true);\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1502=static int mwifiex_deauthenticate_infra(struct mwifiex_private *priv, u8 *mac)\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1513-\ndrivers/net/wireless/marvell/mwifiex/join.c:1514:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_DEAUTHENTICATE,\ndrivers/net/wireless/marvell/mwifiex/join.c-1515-\t\t\t       HostCmd_ACT_GEN_SET, 0, mac_address, true);\n--\ndrivers/net/wireless/marvell/mwifiex/join.c=1527=int mwifiex_deauthenticate(struct mwifiex_private *priv, u8 *mac)\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1538-\t\tpriv-\u003emgmt_frame_mask = 0;\ndrivers/net/wireless/marvell/mwifiex/join.c:1539:\t\tif (mwifiex_send_cmd(priv, HostCmd_CMD_MGMT_FRAME_REG,\ndrivers/net/wireless/marvell/mwifiex/join.c-1540-\t\t\t\t     HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/join.c-1556-\tcase NL80211_IFTYPE_ADHOC:\ndrivers/net/wireless/marvell/mwifiex/join.c:1557:\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_AD_HOC_STOP,\ndrivers/net/wireless/marvell/mwifiex/join.c-1558-\t\t\t\t\tHostCmd_ACT_GEN_SET, 0, NULL, true);\ndrivers/net/wireless/marvell/mwifiex/join.c-1559-\tcase NL80211_IFTYPE_AP:\ndrivers/net/wireless/marvell/mwifiex/join.c:1560:\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_UAP_BSS_STOP,\ndrivers/net/wireless/marvell/mwifiex/join.c-1561-\t\t\t\t\tHostCmd_ACT_GEN_SET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/main.c=216=static void maybe_quirk_fw_disable_ds(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-225-\tver_ext.version_str_sel = 1;\ndrivers/net/wireless/marvell/mwifiex/main.c:226:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_VERSION_EXT,\ndrivers/net/wireless/marvell/mwifiex/main.c-227-\t\t\t     HostCmd_ACT_GEN_GET, 0, \u0026ver_ext, false)) {\n--\ndrivers/net/wireless/marvell/mwifiex/main.c=948=int mwifiex_set_mac_address(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-978-\t/* Send request to firmware */\ndrivers/net/wireless/marvell/mwifiex/main.c:979:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_MAC_ADDRESS,\ndrivers/net/wireless/marvell/mwifiex/main.c-980-\t\t\t       HostCmd_ACT_GEN_SET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/main.c=1050=void mwifiex_multi_chan_resync(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-1067-\tpriv = mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_ANY);\ndrivers/net/wireless/marvell/mwifiex/main.c:1068:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF,\ndrivers/net/wireless/marvell/mwifiex/main.c-1069-\t\t\t       HostCmd_ACT_GEN_SET, 0, \u0026tx_buf_size, false);\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1076=int mwifiex_complete_cmd(struct mwifiex_adapter *adapter,\n--\ndrivers/net/wireless/marvell/mwifiex/main.h-1078-\ndrivers/net/wireless/marvell/mwifiex/main.h:1079:int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\ndrivers/net/wireless/marvell/mwifiex/main.h-1080-\t\t     u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync);\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c=594=mwifiex_scan_channel_list(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c-745-\ndrivers/net/wireless/marvell/mwifiex/scan.c:746:\t\tret = mwifiex_send_cmd(priv, cmd_no, HostCmd_ACT_GEN_SET,\ndrivers/net/wireless/marvell/mwifiex/scan.c-747-\t\t\t\t       0, scan_cfg_out, false);\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c=2443=int mwifiex_stop_bg_scan(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c-2459-\ndrivers/net/wireless/marvell/mwifiex/scan.c:2460:\tif (mwifiex_send_cmd(priv, HostCmd_CMD_802_11_BG_SCAN_CONFIG,\ndrivers/net/wireless/marvell/mwifiex/scan.c-2461-\t\t\t     HostCmd_ACT_GEN_SET, 0, bgscan_cfg, true)) {\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c=1458=int mwifiex_dnld_dt_cfgdata(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-1474-\t\t    prop-\u003elength \u003c= MWIFIEX_SIZE_OF_CMD_BUFFER - S_DS_GEN) {\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:1475:\t\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-1476-\t\t\t\t\t       HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c=1509=int mwifiex_send_rgpower_table(struct mwifiex_private *priv, const u8 *data,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-1540-\t\t\thostcmd-\u003elen = get_unaligned_le16(\u0026hostcmd-\u003ecmd[2]);\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:1541:\t\t\tret = mwifiex_send_cmd(priv, 0, 0, 0, hostcmd, false);\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-1542-\t\t\tif (ret) {\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c=2354=int mwifiex_sta_init_cmd(struct mwifiex_private *priv, u8 first_sta)\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2367-\t\tif (priv-\u003eadapter-\u003eiface_type == MWIFIEX_PCIE) {\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2368:\t\t\tret = mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2369-\t\t\t\t\t       HostCmd_CMD_PCIE_DESC_DETAILS,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2375-\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2376:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_FUNC_INIT,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2377-\t\t\t\t       HostCmd_ACT_GEN_SET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2397-\t\tif (adapter-\u003ecal_data) {\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2398:\t\t\tmwifiex_send_cmd(priv, HostCmd_CMD_CFG_DATA,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2399-\t\t\t\t\t HostCmd_ACT_GEN_SET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2405-\t\t/* Read MAC address from HW */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2406:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_GET_HW_SPEC,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2407-\t\t\t\t       HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2415-\t\t\tsdio_sp_rx_aggr_enable = true;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2416:\t\t\tret = mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2417-\t\t\t\t\t       HostCmd_CMD_SDIO_SP_RX_AGGR_CFG,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2428-\t\t/* Reconfigure tx buf size */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2429:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2430-\t\t\t\t       HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2437-\t\t\tpriv-\u003eadapter-\u003eps_mode = MWIFIEX_802_11_POWER_MODE_PSP;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2438:\t\t\tret = mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2439-\t\t\t\t\t       HostCmd_CMD_802_11_PS_MODE_ENH,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2448-\t\t\tif (ISSUPP_DRCS_ENABLED(adapter-\u003efw_cap_info))\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2449:\t\t\t\tret = mwifiex_send_cmd(priv,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2450-\t\t\t\t\t\t       HostCmd_CMD_MC_POLICY,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2457-\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2458:\t\tmwifiex_send_cmd(priv, HostCmd_CMD_CHAN_REGION_CFG,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2459-\t\t\t\t HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2462-\t/* get tx rate */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2463:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_TX_RATE_CFG,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2464-\t\t\t       HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2469-\t/* get tx power */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2470:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_RF_TX_PWR,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2471-\t\t\t       HostCmd_ACT_GEN_GET, 0, NULL, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2477-\t/* Send request to firmware */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2478:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_AMSDU_AGGR_CTRL,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2479-\t\t\t       HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2484-\t/* set MAC Control */\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2485:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_MAC_CONTROL,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2486-\t\t\t       HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2495-\t\tauto_ds.idle_time = DEEP_SLEEP_IDLE_TIME;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2496:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_PS_MODE_ENH,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2497-\t\t\t\t       EN_AUTO_PS, BITMAP_AUTO_DS,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2505-\t\tstate_11d = ENABLE_11D;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2506:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_SNMP_MIB,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2507-\t\t\t\t       HostCmd_ACT_GEN_SET, DOT11D_I,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2516-\t\tpacket_aggr_enable = true;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2517:\t\tmwifiex_send_cmd(priv, HostCmd_CMD_PACKET_AGGR_CTRL,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2518-\t\t\t\t HostCmd_ACT_GEN_SET, 0,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2525-\ttx_cfg.tx_htcap = MWIFIEX_FW_DEF_HTTXCFG;\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c:2526:\tret = mwifiex_send_cmd(priv, HostCmd_CMD_11N_CFG,\ndrivers/net/wireless/marvell/mwifiex/sta_cmd.c-2527-\t\t\t       HostCmd_ACT_GEN_SET, 0, \u0026tx_cfg, true);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c=95=static int mwifiex_ret_802_11_rssi_info(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-136-\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c:137:\tmwifiex_send_cmd(priv, HostCmd_CMD_802_11_SUBSCRIBE_EVENT,\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-138-\t\t\t 0, 0, subsc_evt, false);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c=256=static int mwifiex_ret_tx_rate_cfg(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-311-\telse\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c:312:\t\treturn mwifiex_send_cmd(priv, HostCmd_CMD_802_11_TX_RATE_QUERY,\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-313-\t\t\t\t\tHostCmd_ACT_GEN_GET, 0, NULL, false);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c=693=static int mwifiex_ret_ver_ext(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-708-\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c:709:\t\t\tif (mwifiex_send_cmd(priv, HostCmd_CMD_802_11_PS_MODE_ENH,\ndrivers/net/wireless/marvell/mwifiex/sta_cmdresp.c-710-\t\t\t\t\t     DIS_AUTO_PS, BITMAP_AUTO_DS, \u0026auto_ds, false)) {\n--\ndrivers/net/wireless/marvell/mwifiex/sta_event.c=125=void mwifiex_reset_connect_state(struct mwifiex_private *priv, u16 reason_code,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_event.c-240-\ndrivers/net/wireless/marvell/mwifiex/sta_event.c:241:\tmwifiex_send_cmd(priv, HostCmd_CMD_GTK_REKEY_OFFLOAD_CFG,\ndrivers/net/wireless/marvell/mwifiex/sta_event.c-242-\t\t\t HostCmd_ACT_GEN_REMOVE, 0, NULL, false);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_event.c=696=int mwifiex_process_sta_event(struct mwifiex_private *priv)\n--\ndrivers/net/wireless/marvell/mwifiex/sta_event.c-819-\t\tmwifiex_dbg(adapter, EVENT, \"event: HS_ACT_REQ\\n\");\ndrivers/net/wireless/marvell/mwifiex/sta_event.c:820:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_HS_CFG_ENH,\ndrivers/net/wireless/marvell/mwifiex/sta_event.c-821-\t\t\t\t       0, 0, NULL, false);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_event.c-850-\t\tmwifiex_dbg(adapter, EVENT, \"event: BGS_REPORT\\n\");\ndrivers/net/wireless/marvell/mwifiex/sta_event.c:851:\t\tret = mwifiex_send_cmd(priv, HostCmd_CMD_802_11_BG_SCAN_QUERY,\n\n"
}

15/2 2026/07/26 08:30 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 22294
							output: 42
							thoughts: 450
						

Thoughts:
**Analyzing the mwifiex Driver Patch**

Okay, so I'm looking at this `mwifiex` driver patch. My initial thought is to trace the impact of changes, so I'm starting with `mwifiex_send_cmd` – it's a common entry point, and I see `mwifiex_wait_queue_complete` called from it. That's a good starting point. I notice that `mwifiex_wait_queue_complete` is also used in `mwifiex_scan_networks`.

Ah, the patch modifies `mwifiex_wait_queue_complete`. It looks like they're detaching the caller-owned buffer if the wait is interrupted. Smart, that's a classic fix for a use-after-free or a potential memory corruption issue when a command is interrupted. This change is specifically targeting `mwifiex_wait_queue_complete`. I need to confirm the reachability of this, it's critical.

Okay, let's see, Is this actually reachable, and from where? I see it's called from both `mwifiex_send_cmd` and `mwifiex_scan_networks`. So, can this be triggered from user space? Let's trace it. `mwifiex_send_cmd` itself is called by a bunch of cfg80211 callbacks: `mwifiex_cfg80211_set_tx_power`, `mwifiex_cfg80211_dump_station`, `mwifiex_cfg80211_set_antenna`, and others. Bingo! That's definitely reachable from user space via netlink. That's good to know.

The patch also touches `mwifiex_reinit_sw` and `mwifiex_add_card`, removing `WQ_HIGHPRI` from `alloc_workqueue`. Okay, that's a functional change, not security-related, but worth noting.

Time to focus in on the key symbols, I think `mwifiex_wait_queue_complete` is the heart of it, but it's called through `mwifiex_send_cmd`, which is core. It is the core of this driver. Looking at `mwifiex_add_card` and `mwifiex_reinit_sw`, so probe and reinit. Good, that sets the context. Now I'm going to dig deeper into the call paths to `mwifiex_wait_queue_complete`.



16/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "mwifiex_wait_queue_complete",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/cmdevt.c=542=int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\n--\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-667-\t\tif (cmd_node-\u003ewait_q_enabled)\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c:668:\t\t\tret = mwifiex_wait_queue_complete(adapter, cmd_node);\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-669-\t}\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1476=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\ndrivers/net/wireless/marvell/mwifiex/main.h-1477-\t\t\t    struct net_device *dev);\ndrivers/net/wireless/marvell/mwifiex/main.h:1478:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/main.h-1479-\t\t\t\tstruct cmd_ctrl_node *cmd_queued);\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c=1470=int mwifiex_scan_networks(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c-1542-\t\t\t\t\t    \"wait internal scan\\n\");\ndrivers/net/wireless/marvell/mwifiex/scan.c:1543:\t\t\t\tmwifiex_wait_queue_complete(adapter, cmd_node);\ndrivers/net/wireless/marvell/mwifiex/scan.c-1544-\t\t\t}\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c=27=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-44- */\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c:45:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-46-\t\t\t\tstruct cmd_ctrl_node *cmd_queued)\n"
}

17/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 23952
							output: 41
							thoughts: 138
						

Thoughts:
Okay, here's my breakdown of this.

**Analyzing Potential Focus Symbols in the mwifiex Driver**

Right, so I'm looking at this `mwifiex` code, and I see that `mwifiex_wait_queue_complete` gets called from both `mwifiex_send_cmd` and `mwifiex_scan_networks`.  That's interesting.  `mwifiex_send_cmd` seems like a pretty important function, a natural focus point for deeper investigation, and `mwifiex_scan_networks` is definitely up there too. Those are solid candidates as symbols to focus on. But wait, `mwifiex_wait_queue_complete` itself is potentially a significant function, given its use in those two.

Now, a quick check...is `mwifiex_wait_queue_complete` static? No, it's not. That makes it even *more* interesting as a potential focus symbol in its own right, because it's externally visible. It's likely involved in a core synchronization or completion mechanism. So, it definitely warrants a closer look. I'll need to remember to check out its usages and interactions.

Okay, let's also keep an eye on `mwifiex_reinit_sw` and `mwifiex_add_card` – they could also be related and influence the behavior around command completion or queuing.



18/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "mwifiex_reinit_sw",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/main.c=1529=int\ndrivers/net/wireless/marvell/mwifiex/main.c:1530:mwifiex_reinit_sw(struct mwifiex_adapter *adapter)\ndrivers/net/wireless/marvell/mwifiex/main.c-1531-{\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-1622-}\ndrivers/net/wireless/marvell/mwifiex/main.c:1623:EXPORT_SYMBOL_GPL(mwifiex_reinit_sw);\ndrivers/net/wireless/marvell/mwifiex/main.c-1624-\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1696=void mwifiex_dev_debugfs_remove(struct mwifiex_private *priv);\ndrivers/net/wireless/marvell/mwifiex/main.h-1697-#endif\ndrivers/net/wireless/marvell/mwifiex/main.h:1698:int mwifiex_reinit_sw(struct mwifiex_adapter *adapter);\ndrivers/net/wireless/marvell/mwifiex/main.h-1699-int mwifiex_shutdown_sw(struct mwifiex_adapter *adapter);\n--\ndrivers/net/wireless/marvell/mwifiex/pcie.c=546=static void mwifiex_pcie_reset_done(struct pci_dev *pdev)\n--\ndrivers/net/wireless/marvell/mwifiex/pcie.c-561-\ndrivers/net/wireless/marvell/mwifiex/pcie.c:562:\tret = mwifiex_reinit_sw(adapter);\ndrivers/net/wireless/marvell/mwifiex/pcie.c-563-\tif (ret)\n--\ndrivers/net/wireless/marvell/mwifiex/sdio.c=2680=static void mwifiex_sdio_card_reset_work(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/sdio.c-2701-\tcase 0:\ndrivers/net/wireless/marvell/mwifiex/sdio.c:2702:\t\tret = mwifiex_reinit_sw(adapter);\ndrivers/net/wireless/marvell/mwifiex/sdio.c-2703-\t\tif (ret)\n"
}

19/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 25056
							output: 40
							thoughts: 46
						

Thoughts:
Okay, here's my interpretation of those thoughts, presented as my own mental process:

**Deeper Dive into the WiFi Driver Initialization**

Alright, let me see... I'm looking at the `mwifiex_reinit_sw` function in the Marvell WiFi driver. Hmm, I know that function's responsibility is to reinitialize the software aspects of the driver, and its likely used in a variety of situations. So, it appears that `mwifiex_reinit_sw` is *only* ever called from the PCIe and SDIO driver code. That’s interesting, as this means it is likely triggered by hardware related events specific to those busses. Now, I need to understand what this means in context of the whole driver.

Wait a second. I need to be more thorough here! Going back up the call stack, I see `mwifiex_add_card` is definitely called from the USB driver code! So, `mwifiex_add_card` is used when a USB Marvell device is connected. This is an important detail. Now, how does this relationship impact the initialization process, and how will it influence the rest of my work? Okay, I've got to investigate what the difference is between the two call paths and why there might be such a distinct difference.



20/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "mwifiex_add_card",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/main.c=1524=EXPORT_SYMBOL_GPL(mwifiex_shutdown_sw);\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-1526-/* This function can be used for reinitting the adapter SW. Required\ndrivers/net/wireless/marvell/mwifiex/main.c:1527: * code is extracted from mwifiex_add_card()\ndrivers/net/wireless/marvell/mwifiex/main.c-1528- */\n--\ndrivers/net/wireless/marvell/mwifiex/main.c=1688=int\ndrivers/net/wireless/marvell/mwifiex/main.c:1689:mwifiex_add_card(void *card, struct completion *fw_done,\ndrivers/net/wireless/marvell/mwifiex/main.c-1690-\t\t const struct mwifiex_if_ops *if_ops, u8 iface_type,\n--\ndrivers/net/wireless/marvell/mwifiex/main.c-1782-}\ndrivers/net/wireless/marvell/mwifiex/main.c:1783:EXPORT_SYMBOL_GPL(mwifiex_add_card);\ndrivers/net/wireless/marvell/mwifiex/main.c-1784-\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1464=int mwifiex_init_shutdown_fw(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/main.h-1466-\ndrivers/net/wireless/marvell/mwifiex/main.h:1467:int mwifiex_add_card(void *card, struct completion *fw_done,\ndrivers/net/wireless/marvell/mwifiex/main.h-1468-\t\t     const struct mwifiex_if_ops *if_ops, u8 iface_type,\n--\ndrivers/net/wireless/marvell/mwifiex/pcie.c=376=static int mwifiex_pcie_probe(struct pci_dev *pdev,\n--\ndrivers/net/wireless/marvell/mwifiex/pcie.c-414-\ndrivers/net/wireless/marvell/mwifiex/pcie.c:415:\tif (mwifiex_add_card(card, \u0026card-\u003efw_done, \u0026pcie_ops,\ndrivers/net/wireless/marvell/mwifiex/pcie.c-416-\t\t\t     MWIFIEX_PCIE, \u0026pdev-\u003edev)) {\n--\ndrivers/net/wireless/marvell/mwifiex/sdio.c=551=mwifiex_sdio_probe(struct sdio_func *func, const struct sdio_device_id *id)\n--\ndrivers/net/wireless/marvell/mwifiex/sdio.c-606-\ndrivers/net/wireless/marvell/mwifiex/sdio.c:607:\tret = mwifiex_add_card(card, \u0026card-\u003efw_done, \u0026sdio_ops,\ndrivers/net/wireless/marvell/mwifiex/sdio.c-608-\t\t\t       MWIFIEX_SDIO, \u0026func-\u003edev);\n--\ndrivers/net/wireless/marvell/mwifiex/usb.c=385=static int mwifiex_usb_probe(struct usb_interface *intf,\n--\ndrivers/net/wireless/marvell/mwifiex/usb.c-514-\ndrivers/net/wireless/marvell/mwifiex/usb.c:515:\tret = mwifiex_add_card(card, \u0026card-\u003efw_done, \u0026usb_ops,\ndrivers/net/wireless/marvell/mwifiex/usb.c-516-\t\t\t       MWIFIEX_USB, \u0026card-\u003eudev-\u003edev);\ndrivers/net/wireless/marvell/mwifiex/usb.c-517-\tif (ret) {\ndrivers/net/wireless/marvell/mwifiex/usb.c:518:\t\tpr_err(\"%s: mwifiex_add_card failed: %d\\n\", __func__, ret);\ndrivers/net/wireless/marvell/mwifiex/usb.c-519-\t\tusb_reset_device(udev);\n"
}

21/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 26503
							output: 41
							thoughts: 214
						

Thoughts:
**Analyzing the Core Functions in the Marvell Wi-Fi Driver**

Okay, let's break this down systematically. I see that `mwifiex_add_card` is called from `mwifiex_usb_probe`, so it's definitely reachable – that's a key entry point during device initialization. I need to keep that in mind, even though I'd normally focus on runtime functions.

Next, `mwifiex_wait_queue_complete` is crucial, being called from both `mwifiex_send_cmd` and `mwifiex_scan_networks`. That tells me this is a likely point of contention, especially since `mwifiex_send_cmd` itself is called from numerous `cfg80211` callbacks. That establishes a clear chain of critical functions. Therefore, my primary focus should be `mwifiex_wait_queue_complete`, `mwifiex_send_cmd`, `mwifiex_scan_networks`, and, as I mentioned, `mwifiex_add_card` due to its role in the probe function. It is a hot path during initialization, but it's important to include it in the analysis.

Now, before I dig deeper, I need to verify that I've accounted for any relevant configuration options. I should check `MWIFIEX`, `MWIFIEX_USB`, `CFG80211`, and `USB` to ensure I'm accounting for all possible build configurations. Let me quickly double-check the dependencies related to `MWIFIEX_USB`, just to be certain.



22/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "config MWIFIEX_USB",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/Kconfig"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/Kconfig=25=config MWIFIEX_PCIE\n--\ndrivers/net/wireless/marvell/mwifiex/Kconfig-36-\ndrivers/net/wireless/marvell/mwifiex/Kconfig:37:config MWIFIEX_USB\ndrivers/net/wireless/marvell/mwifiex/Kconfig-38-\ttristate \"Marvell WiFi-Ex Driver for USB8766/8797/8997\"\n"
}

23/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 27231
							output: 34
							thoughts: 148
						

Thoughts:
**Analyzing the Marvell WiFi-Ex Driver Configuration**

Okay, so we're looking at the kernel configuration options for the Marvell WiFi-Ex driver, specifically the USB variant, `MWIFIEX_USB`. We already went through the source file; so that part is done. This `MWIFIEX_USB` is the primary configuration directive here. Now, let's break down the dependencies. It relies on both `MWIFIEX` and `USB`, which makes sense; it's a Marvell WiFi driver and it's communicating over USB. 

Now, I'm noting that `MWIFIEX` *itself* has a dependency. Let's see... Ah, yes, `MWIFIEX` depends on `CFG80211`. That's standard; it's the mac80211 wireless configuration interface. Now, I vaguely recall a relationship between `CFG80211` and `MAC80211`, which is the mac80211 stack itself. I'm double-checking because sometimes these dependencies are a bit tricky to follow. Hmm, *no*, it's the opposite! `MAC80211` depends on `CFG80211`. Right. So we might need to check the `CFG80211` config as well, to make sure there are no other configurations in play.



24/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "config CFG80211",
  "PathPrefix": "net/wireless/Kconfig"
}

Results:
{
  "Output": "net/wireless/Kconfig=14=config WEXT_PRIV\n--\nnet/wireless/Kconfig-16-\nnet/wireless/Kconfig:17:config CFG80211\nnet/wireless/Kconfig-18-\ttristate \"cfg80211 - wireless configuration API\"\n--\nnet/wireless/Kconfig=38=config NL80211_TESTMODE\n--\nnet/wireless/Kconfig-51-\nnet/wireless/Kconfig:52:config CFG80211_DEVELOPER_WARNINGS\nnet/wireless/Kconfig-53-\tbool \"enable developer warnings\"\n--\nnet/wireless/Kconfig-67-\nnet/wireless/Kconfig:68:config CFG80211_CERTIFICATION_ONUS\nnet/wireless/Kconfig-69-\tbool \"cfg80211 certification onus\"\n--\nnet/wireless/Kconfig-88-\nnet/wireless/Kconfig:89:config CFG80211_REQUIRE_SIGNED_REGDB\nnet/wireless/Kconfig-90-\tbool \"require regdb signature\" if CFG80211_CERTIFICATION_ONUS\n--\nnet/wireless/Kconfig-98-\nnet/wireless/Kconfig:99:config CFG80211_USE_KERNEL_REGDB_KEYS\nnet/wireless/Kconfig-100-\tbool \"allow regdb keys shipped with the kernel\" if CFG80211_CERTIFICATION_ONUS\n--\nnet/wireless/Kconfig-110-\nnet/wireless/Kconfig:111:config CFG80211_EXTRA_REGDB_KEYDIR\nnet/wireless/Kconfig-112-\tstring \"additional regdb key directory\" if CFG80211_CERTIFICATION_ONUS\n--\nnet/wireless/Kconfig-121-\nnet/wireless/Kconfig:122:config CFG80211_REG_CELLULAR_HINTS\nnet/wireless/Kconfig-123-\tbool \"cfg80211 regulatory support for cellular base station hints\"\n--\nnet/wireless/Kconfig-134-\nnet/wireless/Kconfig:135:config CFG80211_REG_RELAX_NO_IR\nnet/wireless/Kconfig-136-\tbool \"cfg80211 support for NO_IR relaxation\"\n--\nnet/wireless/Kconfig-158-\nnet/wireless/Kconfig:159:config CFG80211_DEFAULT_PS\nnet/wireless/Kconfig-160-\tbool \"enable powersave by default\"\n--\nnet/wireless/Kconfig-168-\nnet/wireless/Kconfig:169:config CFG80211_DEBUGFS\nnet/wireless/Kconfig-170-\tbool \"cfg80211 DebugFS entries\"\n--\nnet/wireless/Kconfig-176-\nnet/wireless/Kconfig:177:config CFG80211_CRDA_SUPPORT\nnet/wireless/Kconfig-178-\tbool \"support CRDA\" if EXPERT\n--\nnet/wireless/Kconfig-186-\nnet/wireless/Kconfig:187:config CFG80211_WEXT\nnet/wireless/Kconfig-188-\tbool \"cfg80211 wireless extensions compatibility\"\n--\nnet/wireless/Kconfig-193-\nnet/wireless/Kconfig:194:config CFG80211_KUNIT_TEST\nnet/wireless/Kconfig-195-\ttristate \"KUnit tests for cfg80211\" if !KUNIT_ALL_TESTS\n"
}

25/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 28632
							output: 41
							thoughts: 107
						

Thoughts:
**Kernel Configuration Deep Dive**

Okay, so I'm looking at these kernel configurations related to the Marvell WiFi driver, specifically `MWIFIEX`. My initial thought is that `CFG80211` is the core configuration piece. That makes sense; it's the generic configuration framework for wireless drivers. So, I see that we need `MWIFIEX`, `MWIFIEX_USB`, and of course `CFG80211`. Now, the system will naturally need `USB` enabled, which is typically handled in syzkaller, but I should be explicit and make sure it's included here. It's easy to overlook these basics.

I was expecting `MAC80211` to be necessary as well, since it's commonly involved in wireless implementations. However, I notice that the `MWIFIEX` driver only explicitly states a dependency on `CFG80211`. I should double-check that dependency list just to make absolutely certain I haven't missed anything obvious. Let's revisit the `MWIFIEX` dependencies to be sure. It's easy to make assumptions.



26/2 2026/07/26 08:31 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/marvell/mwifiex/Kconfig",
  "FirstLine": 1,
  "LineCount": 10
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: GPL-2.0-only\n   2:\tconfig MWIFIEX\n   3:\t\ttristate \"Marvell WiFi-Ex Driver\"\n   4:\t\tdepends on CFG80211\n   5:\t\thelp\n   6:\t\t  This adds support for wireless adapters based on Marvell\n   7:\t\t  802.11n/ac chipsets.\n   8:\t\n   9:\t\t  If you choose to build it as a module, it will be called\n  10:\t\t  mwifiex.\n"
}

27/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 29169
							output: 43
							thoughts: 212
						

Thoughts:
**Analyzing the WiFi Driver Patch**

Alright, let's break this down. Yes, we're dealing with `CFG80211` again, good. My initial scan of the configs shows we have `MWIFIEX`, `MWIFIEX_USB`, `CFG80211`, and `USB` in play. I'm focusing on key symbols: `mwifiex_wait_queue_complete`, `mwifiex_send_cmd`, `mwifiex_scan_networks`, and `mwifiex_add_card`.

Hmm, a quick observation – `mwifiex_reinit_sw` isn't reachable from USB, but `mwifiex_add_card` is. This patch is modifying these two functions, `mwifiex_add_card` and `mwifiex_reinit_sw`, specifically removing `WQ_HIGHPRI` from `alloc_workqueue`. Interesting. It looks like they're trying to refine how these work queues are created.

Also, it alters `mwifiex_wait_queue_complete` to handle a scenario where the wait is interrupted. Specifically, it detaches the caller-owned buffer from the current command in that case. That's a functional change, not just a cosmetic one. Likely dealing with a race condition or some other concurrency issue.

I should verify that `mwifiex_wait_queue_complete` isn't static; I'll need to confirm its visibility before going any further.



28/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "int mwifiex_wait_queue_complete",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/main.h=1476=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\ndrivers/net/wireless/marvell/mwifiex/main.h-1477-\t\t\t    struct net_device *dev);\ndrivers/net/wireless/marvell/mwifiex/main.h:1478:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/main.h-1479-\t\t\t\tstruct cmd_ctrl_node *cmd_queued);\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c=27=int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,\n--\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-44- */\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c:45:int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter,\ndrivers/net/wireless/marvell/mwifiex/sta_ioctl.c-46-\t\t\t\tstruct cmd_ctrl_node *cmd_queued)\n"
}

29/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 30071
							output: 41
							thoughts: 25
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue:

**Verifying a Dynamic Function Call**

Alright, the core point is established: we're dealing with something dynamic, which is good. That's the baseline. Now, I need to confirm something specific. Let's see... the code's got `mwifiex_send_cmd` in it. I need to make *absolutely* sure that function isn't declared as `static`. If it *were* static, that would constrain its scope in a way that wouldn't jive with the model of how I'm thinking about it, here. I need to verify that it's accessible from other modules, that it's globally visible. So, the verification: "Is `mwifiex_send_cmd` actually static?" That's the key question. Gotta check that detail.



30/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "int mwifiex_send_cmd",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/cmdevt.c=470=int mwifiex_process_event(struct mwifiex_adapter *adapter)\n--\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-541- */\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c:542:int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\ndrivers/net/wireless/marvell/mwifiex/cmdevt.c-543-\t\t     u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync)\n--\ndrivers/net/wireless/marvell/mwifiex/main.h=1076=int mwifiex_complete_cmd(struct mwifiex_adapter *adapter,\n--\ndrivers/net/wireless/marvell/mwifiex/main.h-1078-\ndrivers/net/wireless/marvell/mwifiex/main.h:1079:int mwifiex_send_cmd(struct mwifiex_private *priv, u16 cmd_no,\ndrivers/net/wireless/marvell/mwifiex/main.h-1080-\t\t     u16 cmd_action, u32 cmd_oid, void *data_buf, bool sync);\n"
}

31/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 30672
							output: 41
							thoughts: 25
						

Thoughts:
Okay, here's my interpretation of those thoughts, tailored for an expert audience, and delivered as a first-person summary:

**Assessing the Modularity and Reusability of `mwifiex_scan_networks`**

Alright, the initial assumption is that we're dealing with a system that's *not* entirely fixed. That's a fundamental starting point. We can't assume rigidity; instead, it's dynamic. This has significant implications for how we approach analysis and potential modification.

My immediate follow-up thought centers on a critical piece of the puzzle: `mwifiex_scan_networks`. The real question in my mind now is whether this function is declared `static` within its module. A `static` declaration would limit its scope, potentially hindering reusability or making it harder to integrate with other components. If it *is* static, we'll need to understand why, and consider the impact on the overall design. If not, then we are able to progress further. The goal now is to establish if the function has scope outside its module or is solely contained within it.



32/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "int mwifiex_scan_networks",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/main.h=1486=int mwifiex_request_scan(struct mwifiex_private *priv,\ndrivers/net/wireless/marvell/mwifiex/main.h-1487-\t\t\t struct cfg80211_ssid *req_ssid);\ndrivers/net/wireless/marvell/mwifiex/main.h:1488:int mwifiex_scan_networks(struct mwifiex_private *priv,\ndrivers/net/wireless/marvell/mwifiex/main.h-1489-\t\t\t  const struct mwifiex_user_scan_cfg *user_scan_in);\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c=1451=mwifiex_radio_type_to_band(u8 radio_type)\n--\ndrivers/net/wireless/marvell/mwifiex/scan.c-1469- */\ndrivers/net/wireless/marvell/mwifiex/scan.c:1470:int mwifiex_scan_networks(struct mwifiex_private *priv,\ndrivers/net/wireless/marvell/mwifiex/scan.c-1471-\t\t\t  const struct mwifiex_user_scan_cfg *user_scan_in)\n"
}

33/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 31300
							output: 41
							thoughts: 25
						

Thoughts:
Okay, here's my take on those thoughts, framed as an expert's internal monologue:

**Verifying Function Attributes**

Alright, that's right, things aren't always what they seem at first glance. We need to be absolutely sure about this. Specifically, I need to check the declaration of `mwifiex_add_card`. The whole point of looking at this function in particular is that its 'static' attribute or lack thereof is relevant to the larger objective. Therefore, I'm going to dig into the header files or the source itself and confirm that `mwifiex_add_card` isn't declared with the `static` keyword. This is the only way to be certain that what I'm assuming is actually true. If it were static, it would be a very different game.



34/2 2026/07/26 08:31 tool grepper
0m Args:
{
  "Expression": "int mwifiex_add_card",
  "PathPrefix": "drivers/net/wireless/marvell/mwifiex/"
}

Results:
{
  "Output": "drivers/net/wireless/marvell/mwifiex/main.h=1464=int mwifiex_init_shutdown_fw(struct mwifiex_private *priv,\n--\ndrivers/net/wireless/marvell/mwifiex/main.h-1466-\ndrivers/net/wireless/marvell/mwifiex/main.h:1467:int mwifiex_add_card(void *card, struct completion *fw_done,\ndrivers/net/wireless/marvell/mwifiex/main.h-1468-\t\t     const struct mwifiex_if_ops *if_ops, u8 iface_type,\n"
}

35/2 2026/07/26 08:31 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 31707
							output: 208
							thoughts: 223
						

Thoughts:
**Analyzing the Marvell WiFi-Ex Driver Patch**

Alright, let's break this down. It's clear this isn't a static situation; things are changing. My focus is on the identified symbols: `mwifiex_wait_queue_complete`, `mwifiex_send_cmd`, `mwifiex_scan_networks`, and `mwifiex_add_card`. They're key entry points for understanding the modifications.

The related configurations, `MWIFIEX`, `MWIFIEX_USB`, `CFG80211`, and `USB`, are equally important. They paint the picture of the driver's environment and the targeted interface. The presence of `MWIFIEX_USB` strongly suggests this impacts USB-connected devices using the Marvell WiFi-Ex driver.

Based on the description, this patch is addressing a potential vulnerability within the driver – a use-after-free or memory corruption scenario. Specifically, it involves the handling of caller-owned buffers when a wait is interrupted. Detaching the buffer in such a situation is a common pattern for preventing these issues. Removing the `WQ_HIGHPRI` flag from the workqueue allocation in `mwifiex_add_card` and `mwifiex_reinit_sw` seems like a performance optimization or a change in workqueue scheduling, not likely directly related to the memory corruption issue.

The fact that this driver can be accessed via USB, and that this USB interface can be emulated in virtualized environments like QEMU via vhci, means this is a practical and relevant issue for anyone working with this driver in a testing or virtualization context. The patch is probably addressing a specific flaw that's been exposed through testing in a virtualized environment.

We can tentatively call this process "set-results". This is the point where the results have been processed and summarized, and we are ready to move on.



36/2 2026/07/26 08:31 tool set-results
0m Args:
{
  "EnableConfigs": [
    "MWIFIEX",
    "MWIFIEX_USB",
    "CFG80211",
    "USB"
  ],
  "FocusSymbols": [
    "mwifiex_wait_queue_complete",
    "mwifiex_send_cmd",
    "mwifiex_scan_networks",
    "mwifiex_add_card"
  ],
  "Reasoning": "The patch modifies the Marvell WiFi-Ex Driver to detach a caller-owned buffer from the current command if a wait is interrupted, preventing a potential use-after-free or memory corruption. It also removes the WQ_HIGHPRI flag from the workqueue allocation in mwifiex_add_card and mwifiex_reinit_sw. These are functional changes in a driver that can be reached via the USB interface, which is emulated in virtualized environments like QEMU using vhci (dummy USB device).",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": [
    "MWIFIEX",
    "MWIFIEX_USB",
    "CFG80211",
    "USB"
  ],
  "FocusSymbols": [
    "mwifiex_wait_queue_complete",
    "mwifiex_send_cmd",
    "mwifiex_scan_networks",
    "mwifiex_add_card"
  ],
  "Reasoning": "The patch modifies the Marvell WiFi-Ex Driver to detach a caller-owned buffer from the current command if a wait is interrupted, preventing a potential use-after-free or memory corruption. It also removes the WQ_HIGHPRI flag from the workqueue allocation in mwifiex_add_card and mwifiex_reinit_sw. These are functional changes in a driver that can be reached via the USB interface, which is emulated in virtualized environments like QEMU using vhci (dummy USB device).",
  "WorthFuzzing": true
}

LLM Calls Summary:
Total Calls Total Tokens Avg Tokens Total Duration (Seconds) Avg Duration (Seconds)
Tool Calls Summary:
Total Calls Total Duration (Seconds) Avg Duration (Seconds)