AI Trajectory


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

Results:
{
  "EnableConfigs": [
    "ATH10K",
    "ATH10K_DEBUGFS",
    "ATH10K_USB"
  ],
  "FocusSymbols": [
    "ath10k_reg_value_write",
    "ath10k_mem_value_write",
    "ath10k_htt_rx_proc_rx_frag_ind_hl"
  ],
  "KMSANReasoning": "The patch adds input validation and bounds checking in ath10k debugfs write handlers (ath10k_reg_value_write and ath10k_mem_value_write) and in HTT RX fragment processing (ath10k_htt_rx_proc_rx_frag_ind_hl). Specifically, it checks register/memory bounds against hardware parameters to prevent out-of-bounds writes, and validates skb buffer lengths before accessing packet headers and descriptors to prevent out-of-bounds reads.\n\nThese issues represent out-of-bounds memory access bugs that are covered by KASAN. The patch does not introduce or expose uninitialized variable usage, uninitialized struct padding, or kernel-to-user info-leaks. Therefore, dedicated KMSAN fuzzing is not required.",
  "NeedsKMSAN": false,
  "Reasoning": "The patch introduces bounds checks and packet length validation in the ath10k driver, specifically for debugfs register/memory write handlers and Host-based Low-latency (HL) RX fragment processing. These code paths are reachable in virtualized environments via debugfs and USB-emulated ath10k devices. Fuzzing is warranted to test edge cases in malformed frame handling and debugfs operations.",
  "WorthFuzzing": true
}

1/1 2026/09/11 07:49 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit 42abbcaf61cabbf1ee18115aa75e8ea8dcc6dc8b\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Fri Sep 11 07:49:53 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c\nindex fb61e53ff4c34..50e0170211b81 100644\n--- a/drivers/net/wireless/ath/ath10k/debug.c\n+++ b/drivers/net/wireless/ath/ath10k/debug.c\n@@ -729,6 +729,13 @@ static ssize_t ath10k_reg_value_write(struct file *file,\n \n \treg_addr = ar-\u003edebug.reg_addr;\n \n+\t/* FIX: Validate register address */\n+\tif (reg_addr \u003e ar-\u003ehw_params.reg_size) {\n+\t\tath10k_warn(ar, \"Invalid register address 0x%08x\\n\", reg_addr);\n+\t\tret = -EINVAL;\n+\t\tgoto exit;\n+\t}\n+\n \tret = kstrtou32_from_user(user_buf, count, 0, \u0026reg_val);\n \tif (ret)\n \t\tgoto exit;\n@@ -819,6 +826,19 @@ static ssize_t ath10k_mem_value_write(struct file *file,\n \n \tmutex_lock(\u0026ar-\u003econf_mutex);\n \n+\t/* FIX: Validate address against memory size */\n+\tif (*ppos \u003e ar-\u003ehw_params.mem_size) {\n+\t\tath10k_warn(ar, \"Invalid address 0x%08x for mem_value\\n\", (u32)*ppos);\n+\t\treturn -EINVAL;\n+\t}\n+\n+\t/* FIX: Validate size against remaining memory */\n+\tif (count \u003e ar-\u003ehw_params.mem_size - *ppos) {\n+\t\tath10k_warn(ar, \"Invalid size %zu for mem_value at 0x%08x\\n\",\n+\t\t\t    count, (u32)*ppos);\n+\t\treturn -EINVAL;\n+\t}\n+\n \tbuf = vmalloc(count);\n \tif (!buf) {\n \t\tret = -ENOMEM;\ndiff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c\nindex ab2d373b4750d..4fabb92647d9f 100644\n--- a/drivers/net/wireless/ath/ath10k/htt_rx.c\n+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c\n@@ -2775,6 +2775,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,\n \tstruct htt_resp *resp;\n \tsize_t tot_hdr_len;\n \n+\n+\t/* FIX: Validate skb length before skb_pull */\n+\tif (skb-\u003elen \u003c HTT_RX_FRAG_IND_INFO0_HEADER_LEN) {\n+\t\tath10k_warn(ar, \"Invalid skb len %d for RX_FRAG_IND\\n\", skb-\u003elen);\n+\t\treturn false;\n+\t}\n+\n \tresp = (struct htt_resp *)(skb-\u003edata + HTT_RX_FRAG_IND_INFO0_HEADER_LEN);\n \tskb_pull(skb, HTT_RX_FRAG_IND_INFO0_HEADER_LEN);\n \tskb_trim(skb, skb-\u003elen - FCS_LEN);\n@@ -2792,6 +2799,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,\n \tnum_mpdu_ranges = MS(__le32_to_cpu(rx_hl-\u003ehdr.info1),\n \t\t\t     HTT_RX_INDICATION_INFO1_NUM_MPDU_RANGES);\n \n+\t/* FIX: Validate num_mpdu_ranges */\n+\tif (num_mpdu_ranges \u003e 1) {\n+\t\tath10k_warn(ar, \"Invalid num_mpdu_ranges %d\\n\", num_mpdu_ranges);\n+\t\tgoto err;\n+\t}\n+\n+\n \ttot_hdr_len = sizeof(struct htt_resp_hdr) +\n \t\t      sizeof(rx_hl-\u003ehdr) +\n \t\t      sizeof(rx_hl-\u003eppdu) +\n@@ -2799,10 +2813,26 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,\n \t\t      sizeof(rx_hl-\u003efw_desc) +\n \t\t      sizeof(struct htt_rx_indication_mpdu_range) * num_mpdu_ranges;\n \n+\t/* FIX: Validate tot_hdr_len against skb length */\n+\tif (tot_hdr_len \u003e skb-\u003elen) {\n+\t\tath10k_warn(ar, \"Invalid tot_hdr_len %zu \u003e skb-\u003elen %u\\n\",\n+\t\t\t    tot_hdr_len, skb-\u003elen);\n+\t\tgoto err;\n+\t}\n+\n+\n \ttid =  MS(rx_hl-\u003ehdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);\n \trx_desc = (struct htt_hl_rx_desc *)(skb-\u003edata + tot_hdr_len);\n \trx_desc_info = __le32_to_cpu(rx_desc-\u003einfo);\n \n+\n+\t/* FIX: Validate fw_desc.len against remaining skb length */\n+\tif (rx_hl-\u003efw_desc.len \u003e skb-\u003elen - tot_hdr_len) {\n+\t\tath10k_warn(ar, \"Invalid fw_desc.len %u \u003e remaining skb len\\n\",\n+\t\t\t    rx_hl-\u003efw_desc.len);\n+\t\tgoto err;\n+\t}\n+\n \thdr = (struct ieee80211_hdr *)((u8 *)rx_desc + rx_hl-\u003efw_desc.len);\n \n \tif (is_multicast_ether_addr(hdr-\u003eaddr1)) {\n"
}

2/1 2026/09/11 07:49 agent patch-evaluator
0m Model:
core

Args:
null

Results:
{
  "EnableConfigs": [
    "ATH10K",
    "ATH10K_DEBUGFS",
    "ATH10K_USB"
  ],
  "FocusSymbols": [
    "ath10k_reg_value_write",
    "ath10k_mem_value_write",
    "ath10k_htt_rx_proc_rx_frag_ind_hl"
  ],
  "Reasoning": "The patch introduces bounds checks and packet length validation in the ath10k driver, specifically for debugfs register/memory write handlers and Host-based Low-latency (HL) RX fragment processing. These code paths are reachable in virtualized environments via debugfs and USB-emulated ath10k devices. Fuzzing is warranted to test edge cases in malformed frame handling and debugfs operations.",
  "WorthFuzzing": true
}

Instruction:
You are an expert Linux kernel maintainer and security engineer.
Your job is to review a provided patch series and evaluate whether it warrants fuzzing with syzkaller.

IMPORTANT: The changes have ALREADY been applied and committed as the HEAD commit in
your workspace. Do NOT rely on internal assumptions. You must actively use your code access
tools to inspect the actual source code, callers, and surrounding context.

================================================================================
1. CORE TRIAGE PHILOSOPHY
================================================================================
The goal of patch fuzzing is to discover crashes, regressions, exposed latent bugs,
and newly triggered assertions introduced by the patch series.

- REACHABILITY IS THE PRIMARY GATE:
  Fuzzing can only discover bugs in code that can actually execute in standard virtualized
  environments (GCE or QEMU, utilizing software-emulated devices like USB gadgets, netdev, tun/tap).
  If the modified code is structurally unreachable (see Section 2), it MUST NOT be fuzzed,
  regardless of whether it adds assertions or complex logic.

- DO NOT BLINDLY TRUST "NO FUNCTIONAL CHANGE" (NFCI) OR "REFACTORING" CLAIMS:
  Patch authors routinely label changes as "cleanups", "refactorings", or state
  "No functional change intended". Do NOT take these claims at face value.
  Code refactorings that rearrange logic, introduce helper functions, or alter state management
  in core subsystems frequently introduce subtle semantic shifts or uncover latent kernel bugs.
  If reachable executable code is modified or refactored, it MUST be fuzzed.

- NEW OR MODIFIED ASSERTIONS IN REACHABLE CODE MUST BE FUZZED:
  When a patch introduces or modifies runtime checks or assertions (e.g., WARN_ON*, VM_WARN_ON*,
  BUG_ON*, lockdep_assert*) in reachable code paths, it enforces new or stricter invariants.
  Even if the author believes the invariant always holds, fuzzing is essential to verify whether
  an unusual sequence of operations can violate it.

================================================================================
2. WHEN TO RETURN WorthFuzzing=false (NEGATIVE CRITERIA)
================================================================================
Return WorthFuzzing=false ONLY IF all modified code falls strictly into one or more of these categories:

- Non-kernel and non-executable changes:
  * Modifications to Documentation/, comments, or spelling fixes.
  * User-space directories, self-tests, samples, or scripts (e.g., tools/, samples/, scripts/, usr/)
    that do not affect the compiled kernel image (vmlinux) or kernel modules.
  * Purely decorative logging (e.g., message strings in pr_err, printk, dev_info) or tracepoints
    that do not alter control flow or data structures.
  * Build system or Kconfig changes that do not alter compiled C logic.
- Structurally unreachable hardware:
  * Vendor-specific PCIe switches, SmartNICs, or GPU drivers (e.g., mlxsw, pds_core, qed,
    ionic, amdgpu) requiring physical ASIC/PCIe cards not emulated in standard QEMU.
- Unreachable execution paths:
  * Driver teardown callbacks (.remove, .shutdown, pci_unregister_driver) executed only during
    physical PCI hot-unplug or manual sysfs driver unbinding.
  * Code paths exclusive to architectures other than the target architecture.

================================================================================
3. WHEN TO RETURN WorthFuzzing=true (POSITIVE CRITERIA)
================================================================================
Return WorthFuzzing=true whenever the patch touches reachable executable code, including:
- Core Subsystems:
  * Any logic modifications in memory management (mm/), synchronization/locking (kernel/locking/),
    BPF, scheduler, core networking, VFS, or syscall handling.
- Refactorings and Code Cleanups:
  * Any restructuring of reachable data structures, helper abstractions, or algorithm flows.
- Runtime Assertions and Defensive Checks:
  * Any introduction or alteration of assertions (WARN_ON*, VM_WARN_ON*, BUG_ON*, etc.) in reachable paths.
- Reachable Drivers and Protocols:
  * Drivers accessible via virtual buses (virtio, USB gadget, loopback, netlink, binder, sockets, etc.).

================================================================================
4. EXTRACTING FocusSymbols (PREVENTING DILUTION)
================================================================================
When WorthFuzzing=true, you must extract specific kernel functions into FocusSymbols to guide the fuzzer:

- AVOID UBIQUITOUS LIFECYCLE HOT-PATHS:
  Do NOT list generic, ubiquitous functions called by almost every program in the corpus
  (including, but not limited to: general memory allocators and deallocators, page fault
  and trap handlers, or core synchronization primitives; this is not an exhaustive list).
  Listing ubiquitous functions causes the fuzzer to classify thousands of unrelated tests as "focused",
  which severely dilutes fuzzing effort away from the actual changes.

- TARGET SPECIFIC FEATURE LOGIC AND ENTRYPOINTS:
  List functions that specifically implement the logic being added or altered, or direct API entrypoints
  for the subsystem feature under review.

- HANDLING STATIC INLINE FUNCTIONS IN HEADERS (.h):
  Compiler-inlined static functions (such as static inlines in mm/*.h or include/linux/*.h) lack
  distinct symbol addresses in vmlinux and cannot be targeted directly by symbol coverage filters.
  If the changes are primarily in static inline helpers, identify non-static, feature-specific caller
  functions in .c files that exercise them (avoiding ubiquitous lifecycle wrappers).

================================================================================
5. IDENTIFYING EnableConfigs
================================================================================
Identify any specific CONFIG_ options required to properly compile and reach the modified code:
- Inspect Kconfig files and #ifdef guards; do not make assumptions.
- Check "depends on" lines in Kconfig to include any non-standard parent subsystem configs needed.
- Strip any '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:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 42abbcaf61cabbf1ee18115aa75e8ea8dcc6dc8b
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Sep 11 07:49:53 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index fb61e53ff4c34..50e0170211b81 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -729,6 +729,13 @@ static ssize_t ath10k_reg_value_write(struct file *file,
 
 	reg_addr = ar->debug.reg_addr;
 
+	/* FIX: Validate register address */
+	if (reg_addr > ar->hw_params.reg_size) {
+		ath10k_warn(ar, "Invalid register address 0x%08x\n", reg_addr);
+		ret = -EINVAL;
+		goto exit;
+	}
+
 	ret = kstrtou32_from_user(user_buf, count, 0, &reg_val);
 	if (ret)
 		goto exit;
@@ -819,6 +826,19 @@ static ssize_t ath10k_mem_value_write(struct file *file,
 
 	mutex_lock(&ar->conf_mutex);
 
+	/* FIX: Validate address against memory size */
+	if (*ppos > ar->hw_params.mem_size) {
+		ath10k_warn(ar, "Invalid address 0x%08x for mem_value\n", (u32)*ppos);
+		return -EINVAL;
+	}
+
+	/* FIX: Validate size against remaining memory */
+	if (count > ar->hw_params.mem_size - *ppos) {
+		ath10k_warn(ar, "Invalid size %zu for mem_value at 0x%08x\n",
+			    count, (u32)*ppos);
+		return -EINVAL;
+	}
+
 	buf = vmalloc(count);
 	if (!buf) {
 		ret = -ENOMEM;
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index ab2d373b4750d..4fabb92647d9f 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -2775,6 +2775,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 	struct htt_resp *resp;
 	size_t tot_hdr_len;
 
+
+	/* FIX: Validate skb length before skb_pull */
+	if (skb->len < HTT_RX_FRAG_IND_INFO0_HEADER_LEN) {
+		ath10k_warn(ar, "Invalid skb len %d for RX_FRAG_IND\n", skb->len);
+		return false;
+	}
+
 	resp = (struct htt_resp *)(skb->data + HTT_RX_FRAG_IND_INFO0_HEADER_LEN);
 	skb_pull(skb, HTT_RX_FRAG_IND_INFO0_HEADER_LEN);
 	skb_trim(skb, skb->len - FCS_LEN);
@@ -2792,6 +2799,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 	num_mpdu_ranges = MS(__le32_to_cpu(rx_hl->hdr.info1),
 			     HTT_RX_INDICATION_INFO1_NUM_MPDU_RANGES);
 
+	/* FIX: Validate num_mpdu_ranges */
+	if (num_mpdu_ranges > 1) {
+		ath10k_warn(ar, "Invalid num_mpdu_ranges %d\n", num_mpdu_ranges);
+		goto err;
+	}
+
+
 	tot_hdr_len = sizeof(struct htt_resp_hdr) +
 		      sizeof(rx_hl->hdr) +
 		      sizeof(rx_hl->ppdu) +
@@ -2799,10 +2813,26 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 		      sizeof(rx_hl->fw_desc) +
 		      sizeof(struct htt_rx_indication_mpdu_range) * num_mpdu_ranges;
 
+	/* FIX: Validate tot_hdr_len against skb length */
+	if (tot_hdr_len > skb->len) {
+		ath10k_warn(ar, "Invalid tot_hdr_len %zu > skb->len %u\n",
+			    tot_hdr_len, skb->len);
+		goto err;
+	}
+
+
 	tid =  MS(rx_hl->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
 	rx_desc = (struct htt_hl_rx_desc *)(skb->data + tot_hdr_len);
 	rx_desc_info = __le32_to_cpu(rx_desc->info);
 
+
+	/* FIX: Validate fw_desc.len against remaining skb length */
+	if (rx_hl->fw_desc.len > skb->len - tot_hdr_len) {
+		ath10k_warn(ar, "Invalid fw_desc.len %u > remaining skb len\n",
+			    rx_hl->fw_desc.len);
+		goto err;
+	}
+
 	hdr = (struct ieee80211_hdr *)((u8 *)rx_desc + rx_hl->fw_desc.len);
 
 	if (is_multicast_ether_addr(hdr->addr1)) {

3/2 2026/09/11 07:49 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 4229
							output: 38
							thoughts: 112
						

Thoughts:
**Analyzing the Potential Impact of a Network Driver Patch**

Okay, so this patch touches `ath10k` specifically, targeting `debug.c` and `htt_rx.c`. My immediate thought is, "Can this be easily reproduced and tested within the standard virtualization setup we use, like syzkaller and QEMU?" We need to know this for proper verification. Wait, before I dig too deep into the code, I need to confirm: is `ath10k` a USB, PCI, or SDIO driver? That fundamentally influences the testing strategy. I'll quickly check the source tree under `drivers/net/wireless/ath/ath10k/` using grepper or codesearch to confirm its bus type. This is a crucial first step for figuring out the setup.



4/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ath10k_usb",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/Makefile=34=ath10k_sdio-y += sdio.o\ndrivers/net/wireless/ath/ath10k/Makefile-35-\ndrivers/net/wireless/ath/ath10k/Makefile:36:obj-$(CONFIG_ATH10K_USB) += ath10k_usb.o\ndrivers/net/wireless/ath/ath10k/Makefile:37:ath10k_usb-y += usb.o\ndrivers/net/wireless/ath/ath10k/Makefile-38-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-17-\ndrivers/net/wireless/ath/ath10k/usb.c:18:static void ath10k_usb_post_recv_transfers(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:19:\t\t\t\t\t   struct ath10k_usb_pipe *recv_pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-20-\n--\ndrivers/net/wireless/ath/ath10k/usb.c=35=static struct ath10k_urb_context *\ndrivers/net/wireless/ath/ath10k/usb.c:36:ath10k_usb_alloc_urb_from_pipe(struct ath10k_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-37-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-56-\ndrivers/net/wireless/ath/ath10k/usb.c:57:static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-58-\t\t\t\t\tstruct ath10k_urb_context *urb_context)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-73-\ndrivers/net/wireless/ath/ath10k/usb.c:74:static void ath10k_usb_cleanup_recv_urb(struct ath10k_urb_context *urb_context)\ndrivers/net/wireless/ath/ath10k/usb.c-75-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-78-\ndrivers/net/wireless/ath/ath10k/usb.c:79:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-80-}\ndrivers/net/wireless/ath/ath10k/usb.c-81-\ndrivers/net/wireless/ath/ath10k/usb.c:82:static void ath10k_usb_free_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:83:\t\t\t\t\t   struct ath10k_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-84-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-104-\tfor (;;) {\ndrivers/net/wireless/ath/ath10k/usb.c:105:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-106-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-113-\ndrivers/net/wireless/ath/ath10k/usb.c:114:static void ath10k_usb_cleanup_pipe_resources(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-115-{\ndrivers/net/wireless/ath/ath10k/usb.c:116:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-117-\tint i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-119-\tfor (i = 0; i \u003c ATH10K_USB_PIPE_MAX; i++)\ndrivers/net/wireless/ath/ath10k/usb.c:120:\t\tath10k_usb_free_pipe_resources(ar, \u0026ar_usb-\u003epipes[i]);\ndrivers/net/wireless/ath/ath10k/usb.c-121-}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-124-\ndrivers/net/wireless/ath/ath10k/usb.c:125:static void ath10k_usb_recv_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath10k/usb.c-126-{\ndrivers/net/wireless/ath/ath10k/usb.c-127-\tstruct ath10k_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath10k/usb.c:128:\tstruct ath10k_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath10k/usb.c-129-\tstruct ath10k *ar = pipe-\u003ear_usb-\u003ear;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-172-cleanup_recv_urb:\ndrivers/net/wireless/ath/ath10k/usb.c:173:\tath10k_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-174-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-177-\t\t/* our free urbs are piling up, post more transfers */\ndrivers/net/wireless/ath/ath10k/usb.c:178:\t\tath10k_usb_post_recv_transfers(ar, pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-179-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-181-\ndrivers/net/wireless/ath/ath10k/usb.c:182:static void ath10k_usb_transmit_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath10k/usb.c-183-{\ndrivers/net/wireless/ath/ath10k/usb.c-184-\tstruct ath10k_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath10k/usb.c:185:\tstruct ath10k_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath10k/usb.c-186-\tstruct ath10k *ar = pipe-\u003ear_usb-\u003ear;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-196-\turb_context-\u003eskb = NULL;\ndrivers/net/wireless/ath/ath10k/usb.c:197:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-198-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-204-/* pipe operations */\ndrivers/net/wireless/ath/ath10k/usb.c:205:static void ath10k_usb_post_recv_transfers(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:206:\t\t\t\t\t   struct ath10k_usb_pipe *recv_pipe)\ndrivers/net/wireless/ath/ath10k/usb.c-207-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-212-\tfor (;;) {\ndrivers/net/wireless/ath/ath10k/usb.c:213:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(recv_pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-214-\t\tif (!urb_context)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-229-\t\t\t\t  ATH10K_USB_RX_BUFFER_SIZE,\ndrivers/net/wireless/ath/ath10k/usb.c:230:\t\t\t\t  ath10k_usb_recv_complete, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-231-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-254-err:\ndrivers/net/wireless/ath/ath10k/usb.c:255:\tath10k_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-256-}\ndrivers/net/wireless/ath/ath10k/usb.c-257-\ndrivers/net/wireless/ath/ath10k/usb.c:258:static void ath10k_usb_flush_all(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-259-{\ndrivers/net/wireless/ath/ath10k/usb.c:260:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-261-\tint i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-270-\ndrivers/net/wireless/ath/ath10k/usb.c:271:static void ath10k_usb_start_recv_pipes(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-272-{\ndrivers/net/wireless/ath/ath10k/usb.c:273:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-274-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-276-\ndrivers/net/wireless/ath/ath10k/usb.c:277:\tath10k_usb_post_recv_transfers(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-278-\t\t\t\t       \u0026ar_usb-\u003epipes[ATH10K_USB_PIPE_RX_DATA]);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-280-\ndrivers/net/wireless/ath/ath10k/usb.c:281:static void ath10k_usb_tx_complete(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/usb.c-282-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-291-\ndrivers/net/wireless/ath/ath10k/usb.c:292:static void ath10k_usb_rx_complete(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/usb.c-293-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-359-\ndrivers/net/wireless/ath/ath10k/usb.c:360:static void ath10k_usb_io_comp_work(struct work_struct *work)\ndrivers/net/wireless/ath/ath10k/usb.c-361-{\ndrivers/net/wireless/ath/ath10k/usb.c:362:\tstruct ath10k_usb_pipe *pipe = container_of(work,\ndrivers/net/wireless/ath/ath10k/usb.c:363:\t\t\t\t\t\t    struct ath10k_usb_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-364-\t\t\t\t\t\t    io_complete_work);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-369-\t\tif (pipe-\u003eflags \u0026 ATH10K_USB_PIPE_FLAG_TX)\ndrivers/net/wireless/ath/ath10k/usb.c:370:\t\t\tath10k_usb_tx_complete(ar, skb);\ndrivers/net/wireless/ath/ath10k/usb.c-371-\t\telse\ndrivers/net/wireless/ath/ath10k/usb.c:372:\t\t\tath10k_usb_rx_complete(ar, skb);\ndrivers/net/wireless/ath/ath10k/usb.c-373-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-375-\ndrivers/net/wireless/ath/ath10k/usb.c:376:#define ATH10K_USB_MAX_DIAG_CMD (sizeof(struct ath10k_usb_ctrl_diag_cmd_write))\ndrivers/net/wireless/ath/ath10k/usb.c:377:#define ATH10K_USB_MAX_DIAG_RESP (sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-378-\ndrivers/net/wireless/ath/ath10k/usb.c:379:static void ath10k_usb_destroy(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-380-{\ndrivers/net/wireless/ath/ath10k/usb.c:381:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-382-\ndrivers/net/wireless/ath/ath10k/usb.c:383:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:384:\tath10k_usb_cleanup_pipe_resources(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-385-\tusb_set_intfdata(ar_usb-\u003einterface, NULL);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-390-\ndrivers/net/wireless/ath/ath10k/usb.c:391:static int ath10k_usb_hif_start(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-392-{\ndrivers/net/wireless/ath/ath10k/usb.c-393-\tint i;\ndrivers/net/wireless/ath/ath10k/usb.c:394:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-395-\ndrivers/net/wireless/ath/ath10k/usb.c-396-\tath10k_core_napi_enable(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:397:\tath10k_usb_start_recv_pipes(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-398-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-408-\ndrivers/net/wireless/ath/ath10k/usb.c:409:static int ath10k_usb_hif_tx_sg(struct ath10k *ar, u8 pipe_id,\ndrivers/net/wireless/ath/ath10k/usb.c-410-\t\t\t\tstruct ath10k_hif_sg_item *items, int n_items)\ndrivers/net/wireless/ath/ath10k/usb.c-411-{\ndrivers/net/wireless/ath/ath10k/usb.c:412:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:413:\tstruct ath10k_usb_pipe *pipe = \u0026ar_usb-\u003epipes[pipe_id];\ndrivers/net/wireless/ath/ath10k/usb.c-414-\tstruct ath10k_urb_context *urb_context;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-419-\tfor (i = 0; i \u003c n_items; i++) {\ndrivers/net/wireless/ath/ath10k/usb.c:420:\t\turb_context = ath10k_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath10k/usb.c-421-\t\tif (!urb_context) {\n--\ndrivers/net/wireless/ath/ath10k/usb.c-439-\t\t\t\t  skb-\u003elen,\ndrivers/net/wireless/ath/ath10k/usb.c:440:\t\t\t\t  ath10k_usb_transmit_complete, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-441-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-463-err_free_urb_to_pipe:\ndrivers/net/wireless/ath/ath10k/usb.c:464:\tath10k_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-465-err:\n--\ndrivers/net/wireless/ath/ath10k/usb.c-468-\ndrivers/net/wireless/ath/ath10k/usb.c:469:static void ath10k_usb_hif_stop(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-470-{\ndrivers/net/wireless/ath/ath10k/usb.c:471:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-472-\tath10k_core_napi_sync_disable(ar);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-474-\ndrivers/net/wireless/ath/ath10k/usb.c:475:static u16 ath10k_usb_hif_get_free_queue_number(struct ath10k *ar, u8 pipe_id)\ndrivers/net/wireless/ath/ath10k/usb.c-476-{\ndrivers/net/wireless/ath/ath10k/usb.c:477:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-478-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-481-\ndrivers/net/wireless/ath/ath10k/usb.c:482:static int ath10k_usb_submit_ctrl_out(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-483-\t\t\t\t      u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-485-{\ndrivers/net/wireless/ath/ath10k/usb.c:486:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-487-\tu8 *buf = NULL;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-515-\ndrivers/net/wireless/ath/ath10k/usb.c:516:static int ath10k_usb_submit_ctrl_in(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-517-\t\t\t\t     u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-519-{\ndrivers/net/wireless/ath/ath10k/usb.c:520:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-521-\tu8 *buf = NULL;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-551-\ndrivers/net/wireless/ath/ath10k/usb.c:552:static int ath10k_usb_ctrl_msg_exchange(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-553-\t\t\t\t\tu8 req_val, u8 *req_buf, u32 req_len,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-559-\t/* send command */\ndrivers/net/wireless/ath/ath10k/usb.c:560:\tret = ath10k_usb_submit_ctrl_out(ar, req_val, 0, 0,\ndrivers/net/wireless/ath/ath10k/usb.c-561-\t\t\t\t\t req_buf, req_len);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-566-\tif (resp_buf) {\ndrivers/net/wireless/ath/ath10k/usb.c:567:\t\tret = ath10k_usb_submit_ctrl_in(ar, resp_val, 0, 0,\ndrivers/net/wireless/ath/ath10k/usb.c-568-\t\t\t\t\t\tresp_buf, *resp_len);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-577-\ndrivers/net/wireless/ath/ath10k/usb.c:578:static int ath10k_usb_hif_diag_read(struct ath10k *ar, u32 address, void *buf,\ndrivers/net/wireless/ath/ath10k/usb.c-579-\t\t\t\t    size_t buf_len)\ndrivers/net/wireless/ath/ath10k/usb.c-580-{\ndrivers/net/wireless/ath/ath10k/usb.c:581:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:582:\tstruct ath10k_usb_ctrl_diag_cmd_read *cmd;\ndrivers/net/wireless/ath/ath10k/usb.c-583-\tu32 resp_len;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-585-\ndrivers/net/wireless/ath/ath10k/usb.c:586:\tif (buf_len \u003c sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-587-\t\treturn -EINVAL;\ndrivers/net/wireless/ath/ath10k/usb.c-588-\ndrivers/net/wireless/ath/ath10k/usb.c:589:\tcmd = (struct ath10k_usb_ctrl_diag_cmd_read *)ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath10k/usb.c-590-\tmemset(cmd, 0, sizeof(*cmd));\n--\ndrivers/net/wireless/ath/ath10k/usb.c-592-\tcmd-\u003eaddress = cpu_to_le32(address);\ndrivers/net/wireless/ath/ath10k/usb.c:593:\tresp_len = sizeof(struct ath10k_usb_ctrl_diag_resp_read);\ndrivers/net/wireless/ath/ath10k/usb.c-594-\ndrivers/net/wireless/ath/ath10k/usb.c:595:\tret = ath10k_usb_ctrl_msg_exchange(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-596-\t\t\t\t\t   ATH10K_USB_CONTROL_REQ_DIAG_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-603-\ndrivers/net/wireless/ath/ath10k/usb.c:604:\tif (resp_len != sizeof(struct ath10k_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath10k/usb.c-605-\t\treturn -EMSGSIZE;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-607-\tmemcpy(buf, ar_usb-\u003ediag_resp_buffer,\ndrivers/net/wireless/ath/ath10k/usb.c:608:\t       sizeof(struct ath10k_usb_ctrl_diag_resp_read));\ndrivers/net/wireless/ath/ath10k/usb.c-609-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-612-\ndrivers/net/wireless/ath/ath10k/usb.c:613:static int ath10k_usb_hif_diag_write(struct ath10k *ar, u32 address,\ndrivers/net/wireless/ath/ath10k/usb.c-614-\t\t\t\t     const void *data, int nbytes)\ndrivers/net/wireless/ath/ath10k/usb.c-615-{\ndrivers/net/wireless/ath/ath10k/usb.c:616:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:617:\tstruct ath10k_usb_ctrl_diag_cmd_write *cmd;\ndrivers/net/wireless/ath/ath10k/usb.c-618-\tint ret;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-622-\ndrivers/net/wireless/ath/ath10k/usb.c:623:\tcmd = (struct ath10k_usb_ctrl_diag_cmd_write *)ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath10k/usb.c-624-\tmemset(cmd, 0, sizeof(*cmd));\n--\ndrivers/net/wireless/ath/ath10k/usb.c-628-\ndrivers/net/wireless/ath/ath10k/usb.c:629:\tret = ath10k_usb_ctrl_msg_exchange(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-630-\t\t\t\t\t   ATH10K_USB_CONTROL_REQ_DIAG_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-639-\ndrivers/net/wireless/ath/ath10k/usb.c:640:static int ath10k_usb_bmi_exchange_msg(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-641-\t\t\t\t       void *req, u32 req_len,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-646-\tif (req) {\ndrivers/net/wireless/ath/ath10k/usb.c:647:\t\tret = ath10k_usb_submit_ctrl_out(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-648-\t\t\t\t\t\t ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-658-\tif (resp) {\ndrivers/net/wireless/ath/ath10k/usb.c:659:\t\tret = ath10k_usb_submit_ctrl_in(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-660-\t\t\t\t\t\tATH10K_USB_CONTROL_REQ_RECV_BMI_RESP,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-672-\ndrivers/net/wireless/ath/ath10k/usb.c:673:static void ath10k_usb_hif_get_default_pipe(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-674-\t\t\t\t\t    u8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-679-\ndrivers/net/wireless/ath/ath10k/usb.c:680:static int ath10k_usb_hif_map_service_to_pipe(struct ath10k *ar, u16 svc_id,\ndrivers/net/wireless/ath/ath10k/usb.c-681-\t\t\t\t\t      u8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-703-\ndrivers/net/wireless/ath/ath10k/usb.c:704:static int ath10k_usb_hif_power_up(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-705-\t\t\t\t   enum ath10k_firmware_mode fw_mode)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-709-\ndrivers/net/wireless/ath/ath10k/usb.c:710:static void ath10k_usb_hif_power_down(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-711-{\ndrivers/net/wireless/ath/ath10k/usb.c:712:\tath10k_usb_flush_all(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-713-}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-716-\ndrivers/net/wireless/ath/ath10k/usb.c:717:static int ath10k_usb_hif_suspend(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-718-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-721-\ndrivers/net/wireless/ath/ath10k/usb.c:722:static int ath10k_usb_hif_resume(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.c-723-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-727-\ndrivers/net/wireless/ath/ath10k/usb.c:728:static const struct ath10k_hif_ops ath10k_usb_hif_ops = {\ndrivers/net/wireless/ath/ath10k/usb.c:729:\t.tx_sg\t\t\t= ath10k_usb_hif_tx_sg,\ndrivers/net/wireless/ath/ath10k/usb.c:730:\t.diag_read\t\t= ath10k_usb_hif_diag_read,\ndrivers/net/wireless/ath/ath10k/usb.c:731:\t.diag_write\t\t= ath10k_usb_hif_diag_write,\ndrivers/net/wireless/ath/ath10k/usb.c:732:\t.exchange_bmi_msg\t= ath10k_usb_bmi_exchange_msg,\ndrivers/net/wireless/ath/ath10k/usb.c:733:\t.start\t\t\t= ath10k_usb_hif_start,\ndrivers/net/wireless/ath/ath10k/usb.c:734:\t.stop\t\t\t= ath10k_usb_hif_stop,\ndrivers/net/wireless/ath/ath10k/usb.c:735:\t.map_service_to_pipe\t= ath10k_usb_hif_map_service_to_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c:736:\t.get_default_pipe\t= ath10k_usb_hif_get_default_pipe,\ndrivers/net/wireless/ath/ath10k/usb.c:737:\t.get_free_queue_number\t= ath10k_usb_hif_get_free_queue_number,\ndrivers/net/wireless/ath/ath10k/usb.c:738:\t.power_up\t\t= ath10k_usb_hif_power_up,\ndrivers/net/wireless/ath/ath10k/usb.c:739:\t.power_down\t\t= ath10k_usb_hif_power_down,\ndrivers/net/wireless/ath/ath10k/usb.c-740-#ifdef CONFIG_PM\ndrivers/net/wireless/ath/ath10k/usb.c:741:\t.suspend\t\t= ath10k_usb_hif_suspend,\ndrivers/net/wireless/ath/ath10k/usb.c:742:\t.resume\t\t\t= ath10k_usb_hif_resume,\ndrivers/net/wireless/ath/ath10k/usb.c-743-#endif\n--\ndrivers/net/wireless/ath/ath10k/usb.c-745-\ndrivers/net/wireless/ath/ath10k/usb.c:746:static u8 ath10k_usb_get_logical_pipe_num(u8 ep_address, int *urb_count)\ndrivers/net/wireless/ath/ath10k/usb.c-747-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-790-\ndrivers/net/wireless/ath/ath10k/usb.c:791:static int ath10k_usb_alloc_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c:792:\t\t\t\t\t   struct ath10k_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath10k/usb.c-793-\t\t\t\t\t   int urb_cnt)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-811-\t\tpipe-\u003eurb_alloc++;\ndrivers/net/wireless/ath/ath10k/usb.c:812:\t\tath10k_usb_free_urb_to_pipe(pipe, urb_context);\ndrivers/net/wireless/ath/ath10k/usb.c-813-\t}\n--\ndrivers/net/wireless/ath/ath10k/usb.c-822-\ndrivers/net/wireless/ath/ath10k/usb.c:823:static int ath10k_usb_setup_pipe_resources(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-824-\t\t\t\t\t   struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-825-{\ndrivers/net/wireless/ath/ath10k/usb.c:826:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-827-\tstruct usb_host_interface *iface_desc = interface-\u003ecur_altsetting;\ndrivers/net/wireless/ath/ath10k/usb.c-828-\tstruct usb_endpoint_descriptor *endpoint;\ndrivers/net/wireless/ath/ath10k/usb.c:829:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.c-830-\tint ret, i, urbcount;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-871-\t\tpipe_num =\ndrivers/net/wireless/ath/ath10k/usb.c:872:\t\t    ath10k_usb_get_logical_pipe_num(endpoint-\u003ebEndpointAddress,\ndrivers/net/wireless/ath/ath10k/usb.c-873-\t\t\t\t\t\t    \u0026urbcount);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-924-\ndrivers/net/wireless/ath/ath10k/usb.c:925:\t\tret = ath10k_usb_alloc_pipe_resources(ar, pipe, urbcount);\ndrivers/net/wireless/ath/ath10k/usb.c-926-\t\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-932-\ndrivers/net/wireless/ath/ath10k/usb.c:933:static int ath10k_usb_create(struct ath10k *ar,\ndrivers/net/wireless/ath/ath10k/usb.c-934-\t\t\t     struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-935-{\ndrivers/net/wireless/ath/ath10k/usb.c:936:\tstruct ath10k_usb *ar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-937-\tstruct usb_device *dev = interface_to_usbdev(interface);\ndrivers/net/wireless/ath/ath10k/usb.c:938:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.c-939-\tint ret, i;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-948-\t\tINIT_WORK(\u0026pipe-\u003eio_complete_work,\ndrivers/net/wireless/ath/ath10k/usb.c:949:\t\t\t  ath10k_usb_io_comp_work);\ndrivers/net/wireless/ath/ath10k/usb.c-950-\t\tskb_queue_head_init(\u0026pipe-\u003eio_comp_queue);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-965-\ndrivers/net/wireless/ath/ath10k/usb.c:966:\tret = ath10k_usb_setup_pipe_resources(ar, interface);\ndrivers/net/wireless/ath/ath10k/usb.c-967-\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-972-err:\ndrivers/net/wireless/ath/ath10k/usb.c:973:\tath10k_usb_destroy(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-974-\treturn ret;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-976-\ndrivers/net/wireless/ath/ath10k/usb.c:977:static int ath10k_usb_napi_poll(struct napi_struct *ctx, int budget)\ndrivers/net/wireless/ath/ath10k/usb.c-978-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c-991-/* ath10k usb driver registered functions */\ndrivers/net/wireless/ath/ath10k/usb.c:992:static int ath10k_usb_probe(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath10k/usb.c-993-\t\t\t    const struct usb_device_id *id)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-995-\tstruct ath10k *ar;\ndrivers/net/wireless/ath/ath10k/usb.c:996:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.c-997-\tstruct usb_device *dev = interface_to_usbdev(interface);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1010-\tar = ath10k_core_create(sizeof(*ar_usb), \u0026dev-\u003edev, ATH10K_BUS_USB,\ndrivers/net/wireless/ath/ath10k/usb.c:1011:\t\t\t\thw_rev, \u0026ath10k_usb_hif_ops);\ndrivers/net/wireless/ath/ath10k/usb.c-1012-\tif (!ar) {\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1016-\ndrivers/net/wireless/ath/ath10k/usb.c:1017:\tnetif_napi_add(ar-\u003enapi_dev, \u0026ar-\u003enapi, ath10k_usb_napi_poll);\ndrivers/net/wireless/ath/ath10k/usb.c-1018-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1025-\ndrivers/net/wireless/ath/ath10k/usb.c:1026:\tar_usb = ath10k_usb_priv(ar);\ndrivers/net/wireless/ath/ath10k/usb.c:1027:\tret = ath10k_usb_create(ar, interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1028-\tif (ret)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1051-err_usb_destroy:\ndrivers/net/wireless/ath/ath10k/usb.c:1052:\tath10k_usb_destroy(ar);\ndrivers/net/wireless/ath/ath10k/usb.c-1053-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1059-\ndrivers/net/wireless/ath/ath10k/usb.c:1060:static void ath10k_usb_disconnect(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-1061-{\ndrivers/net/wireless/ath/ath10k/usb.c:1062:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.c-1063-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1069-\tnetif_napi_del(\u0026ar_usb-\u003ear-\u003enapi);\ndrivers/net/wireless/ath/ath10k/usb.c:1070:\tath10k_usb_destroy(ar_usb-\u003ear);\ndrivers/net/wireless/ath/ath10k/usb.c-1071-\tath10k_core_destroy(ar_usb-\u003ear);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1075-\ndrivers/net/wireless/ath/ath10k/usb.c:1076:static int ath10k_usb_pm_suspend(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath10k/usb.c-1077-\t\t\t\t pm_message_t message)\ndrivers/net/wireless/ath/ath10k/usb.c-1078-{\ndrivers/net/wireless/ath/ath10k/usb.c:1079:\tstruct ath10k_usb *ar_usb = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1080-\ndrivers/net/wireless/ath/ath10k/usb.c:1081:\tath10k_usb_flush_all(ar_usb-\u003ear);\ndrivers/net/wireless/ath/ath10k/usb.c-1082-\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1084-\ndrivers/net/wireless/ath/ath10k/usb.c:1085:static int ath10k_usb_pm_resume(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath10k/usb.c-1086-{\ndrivers/net/wireless/ath/ath10k/usb.c:1087:\tstruct ath10k_usb *ar_usb = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath10k/usb.c-1088-\tstruct ath10k *ar = ar_usb-\u003ear;\ndrivers/net/wireless/ath/ath10k/usb.c-1089-\ndrivers/net/wireless/ath/ath10k/usb.c:1090:\tath10k_usb_post_recv_transfers(ar,\ndrivers/net/wireless/ath/ath10k/usb.c-1091-\t\t\t\t       \u0026ar_usb-\u003epipes[ATH10K_USB_PIPE_RX_DATA]);\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1097-\ndrivers/net/wireless/ath/ath10k/usb.c:1098:#define ath10k_usb_pm_suspend NULL\ndrivers/net/wireless/ath/ath10k/usb.c:1099:#define ath10k_usb_pm_resume NULL\ndrivers/net/wireless/ath/ath10k/usb.c-1100-\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1103-/* table of devices that work with this driver */\ndrivers/net/wireless/ath/ath10k/usb.c:1104:static struct usb_device_id ath10k_usb_ids[] = {\ndrivers/net/wireless/ath/ath10k/usb.c-1105-\t{USB_DEVICE(0x13b1, 0x0042)}, /* Linksys WUSB6100M */\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1108-\ndrivers/net/wireless/ath/ath10k/usb.c:1109:MODULE_DEVICE_TABLE(usb, ath10k_usb_ids);\ndrivers/net/wireless/ath/ath10k/usb.c-1110-\ndrivers/net/wireless/ath/ath10k/usb.c:1111:static struct usb_driver ath10k_usb_driver = {\ndrivers/net/wireless/ath/ath10k/usb.c:1112:\t.name = \"ath10k_usb\",\ndrivers/net/wireless/ath/ath10k/usb.c:1113:\t.probe = ath10k_usb_probe,\ndrivers/net/wireless/ath/ath10k/usb.c:1114:\t.suspend = ath10k_usb_pm_suspend,\ndrivers/net/wireless/ath/ath10k/usb.c:1115:\t.resume = ath10k_usb_pm_resume,\ndrivers/net/wireless/ath/ath10k/usb.c:1116:\t.disconnect = ath10k_usb_disconnect,\ndrivers/net/wireless/ath/ath10k/usb.c:1117:\t.id_table = ath10k_usb_ids,\ndrivers/net/wireless/ath/ath10k/usb.c-1118-\t.supports_autosuspend = true,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1121-\ndrivers/net/wireless/ath/ath10k/usb.c:1122:module_usb_driver(ath10k_usb_driver);\ndrivers/net/wireless/ath/ath10k/usb.c-1123-\n--\ndrivers/net/wireless/ath/ath10k/usb.h-43-\ndrivers/net/wireless/ath/ath10k/usb.h:44:struct ath10k_usb_ctrl_diag_cmd_write {\ndrivers/net/wireless/ath/ath10k/usb.h-45-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-50-\ndrivers/net/wireless/ath/ath10k/usb.h:51:struct ath10k_usb_ctrl_diag_cmd_read {\ndrivers/net/wireless/ath/ath10k/usb.h-52-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-55-\ndrivers/net/wireless/ath/ath10k/usb.h:56:struct ath10k_usb_ctrl_diag_resp_read {\ndrivers/net/wireless/ath/ath10k/usb.h-57-\tu8 value[4];\n--\ndrivers/net/wireless/ath/ath10k/usb.h-60-/* tx/rx pipes for usb */\ndrivers/net/wireless/ath/ath10k/usb.h:61:enum ath10k_usb_pipe_id {\ndrivers/net/wireless/ath/ath10k/usb.h-62-\tATH10K_USB_PIPE_TX_CTRL = 0,\n--\ndrivers/net/wireless/ath/ath10k/usb.h-72-\ndrivers/net/wireless/ath/ath10k/usb.h:73:struct ath10k_usb_pipe {\ndrivers/net/wireless/ath/ath10k/usb.h-74-\tstruct list_head urb_list_head;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-82-\tu8 logical_pipe_num;\ndrivers/net/wireless/ath/ath10k/usb.h:83:\tstruct ath10k_usb *ar_usb;\ndrivers/net/wireless/ath/ath10k/usb.h-84-\tu16 max_packet_size;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-92-/* usb device object */\ndrivers/net/wireless/ath/ath10k/usb.h:93:struct ath10k_usb {\ndrivers/net/wireless/ath/ath10k/usb.h-94-\t/* protects pipe-\u003eurb_list_head and  pipe-\u003eurb_cnt */\n--\ndrivers/net/wireless/ath/ath10k/usb.h-98-\tstruct usb_interface *interface;\ndrivers/net/wireless/ath/ath10k/usb.h:99:\tstruct ath10k_usb_pipe pipes[ATH10K_USB_PIPE_MAX];\ndrivers/net/wireless/ath/ath10k/usb.h-100-\tu8 *diag_cmd_buffer;\n--\ndrivers/net/wireless/ath/ath10k/usb.h=106=struct ath10k_urb_context {\ndrivers/net/wireless/ath/ath10k/usb.h-107-\tstruct list_head link;\ndrivers/net/wireless/ath/ath10k/usb.h:108:\tstruct ath10k_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath10k/usb.h-109-\tstruct sk_buff *skb;\n--\ndrivers/net/wireless/ath/ath10k/usb.h-112-\ndrivers/net/wireless/ath/ath10k/usb.h:113:static inline struct ath10k_usb *ath10k_usb_priv(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/usb.h-114-{\ndrivers/net/wireless/ath/ath10k/usb.h:115:\treturn (struct ath10k_usb *)ar-\u003edrv_priv;\ndrivers/net/wireless/ath/ath10k/usb.h-116-}\n"
}

5/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 17902
							output: 50
							thoughts: 304
						

Thoughts:
**My Assessment of the ath10k Driver Vulnerabilities**

Okay, so the ath10k driver has a USB driver component (CONFIG_ATH10K_USB), which means it's potentially accessible for fuzzing via USB gadget emulation or even directly through syzkaller, or potentially through debugfs files. This opens up some interesting avenues for investigation.

But first, let's drill down. Let me take a look at the debugfs interactions, specifically how `ath10k_reg_value_write`, `ath10k_mem_value_write`, and `ath10k_htt_rx_proc_rx_frag_ind_hl` are being used. What's the context?

Alright, let's re-examine the recent patch. I need to understand what protections are being introduced here.

*   In `drivers/net/wireless/ath/ath10k/debug.c`, it looks like `ath10k_reg_value_write` now includes a check to see if the register address exceeds the driver's hardware parameters (`ar->hw_params.reg_size`). That's good. And the same file, `ath10k_mem_value_write` adds checks to the offset and the size of the data being written, limiting the write operation to the available memory, as indicated by `ar->hw_params.mem_size`.

*   And in `drivers/net/wireless/ath/ath10k/htt_rx.c`, `ath10k_htt_rx_proc_rx_frag_ind_hl` gets new length checks on the skb and the header data, which is crucial. These are all the key functions here.

Now, I really need to get into the details of the changes to `ath10k_htt_rx_proc_rx_frag_ind_hl` and its call chain within `htt_rx.c`. This is where the potential for deeper vulnerabilities may lie, since this function handles received fragments.



6/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ath10k_htt_rx_proc_rx_frag_ind_hl",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/htt_rx.c=2743=static int ath10k_htt_rx_frag_wep_decap(struct sk_buff *skb,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2757-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:2758:static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2759-\t\t\t\t\t      struct htt_rx_fragment_indication *rx,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4490=static const struct ath10k_htt_rx_ops htt_rx_ops_hl = {\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4491:\t.htt_rx_proc_rx_frag_ind = ath10k_htt_rx_proc_rx_frag_ind_hl,\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4492-};\n"
}

7/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 19012
							output: 39
							thoughts: 17
						

Thoughts:
Here's my take on those thoughts:

**Tracing the Usage of `htt_rx_ops_hl`**

Alright, let's dive in. My immediate thought is, "Where's this `htt_rx_ops_hl` function actually *doing* work?" I need to understand its context. I need to know what code is calling it and why. Is it part of the data path, control plane, or something else entirely? Understanding the call sites is the key to figuring out its function and its role in the system. I'll start by looking for direct usages and then work my way up the call stack to see where it fits into the broader picture. Let's see what the code has to show me.



8/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "htt_rx_ops_hl",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/htt_rx.c=4482=static const struct ath10k_htt_rx_ops htt_rx_ops_64 = {\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4489-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4490:static const struct ath10k_htt_rx_ops htt_rx_ops_hl = {\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4491-\t.htt_rx_proc_rx_frag_ind = ath10k_htt_rx_proc_rx_frag_ind_hl,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4494=void ath10k_htt_set_rx_ops(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4498-\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4499:\t\thtt-\u003erx_ops = \u0026htt_rx_ops_hl;\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4500-\telse if (ar-\u003ehw_params.target_64bit)\n"
}

9/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 19599
							output: 43
							thoughts: 26
						

Thoughts:
Here's my attempt at summarizing the thought process, tailored for an expert audience:

**Analyzing the Callers of `ath10k_htt_rx_proc_rx_frag_ind`**

Okay, so I need to understand the control flow surrounding `ath10k_htt_rx_proc_rx_frag_ind`. Let's dig in and figure out where this function is actually called within the `ath10k` driver. I'm going to start by tracing its usage – which functions directly invoke it, and what parameters are passed. This will give me a better understanding of the context in which it operates. Knowing the callers will expose the logical entry points for fragmentation handling in the RX path of the driver, and thus help me comprehend the overall message processing flow. I’m thinking I’ll get a good overview by seeing what calls `ath10k_htt_rx_proc_rx_frag_ind`, then looking at the functions that call *those* functions, and so on.



10/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "htt_rx_proc_rx_frag_ind",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/htt.h=2019=struct ath10k_htt_rx_ops {\n--\ndrivers/net/wireless/ath/ath10k/htt.h-2025-\tvoid (*htt_reset_paddrs_ring)(struct ath10k_htt *htt, int idx);\ndrivers/net/wireless/ath/ath10k/htt.h:2026:\tbool (*htt_rx_proc_rx_frag_ind)(struct ath10k_htt *htt,\ndrivers/net/wireless/ath/ath10k/htt.h-2027-\t\t\t\t\tstruct htt_rx_fragment_indication *rx,\n--\ndrivers/net/wireless/ath/ath10k/htt.h=2062=static inline void ath10k_htt_reset_paddrs_ring(struct ath10k_htt *htt, int idx)\n--\ndrivers/net/wireless/ath/ath10k/htt.h-2067-\ndrivers/net/wireless/ath/ath10k/htt.h:2068:static inline bool ath10k_htt_rx_proc_rx_frag_ind(struct ath10k_htt *htt,\ndrivers/net/wireless/ath/ath10k/htt.h-2069-\t\t\t\t\t\t  struct htt_rx_fragment_indication *rx,\n--\ndrivers/net/wireless/ath/ath10k/htt.h-2071-{\ndrivers/net/wireless/ath/ath10k/htt.h:2072:\tif (!htt-\u003erx_ops-\u003ehtt_rx_proc_rx_frag_ind)\ndrivers/net/wireless/ath/ath10k/htt.h-2073-\t\treturn true;\ndrivers/net/wireless/ath/ath10k/htt.h-2074-\ndrivers/net/wireless/ath/ath10k/htt.h:2075:\treturn htt-\u003erx_ops-\u003ehtt_rx_proc_rx_frag_ind(htt, rx, skb);\ndrivers/net/wireless/ath/ath10k/htt.h-2076-}\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=2743=static int ath10k_htt_rx_frag_wep_decap(struct sk_buff *skb,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2757-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:2758:static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,\ndrivers/net/wireless/ath/ath10k/htt_rx.c-2759-\t\t\t\t\t      struct htt_rx_fragment_indication *rx,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4105=bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4220-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4221:\t\treturn ath10k_htt_rx_proc_rx_frag_ind(htt,\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4222-\t\t\t\t\t\t      \u0026resp-\u003erx_frag_ind,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4490=static const struct ath10k_htt_rx_ops htt_rx_ops_hl = {\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4491:\t.htt_rx_proc_rx_frag_ind = ath10k_htt_rx_proc_rx_frag_ind_hl,\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4492-};\n"
}

11/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 20903
							output: 46
							thoughts: 34
						

Thoughts:
Okay, let's dive into this. Here's how I'd approach that specific question and what's going through my mind:

**Investigating the `ath10k_htt_t2h_msg_handler` Call Chain**

Right, so we're looking at the receive path specifically for the USB interface, and we suspect something's happening with the `ath10k_htt_t2h_msg_handler` function. My first thought is: "Is that function actually triggered during USB receive operations, or is it exclusively related to other, perhaps PCI-based, interactions?" We need to confirm if it even *could* be involved.

To figure this out, I'm mentally tracing the call chain. I'd start with the USB receive interrupt handler (or whatever entry point the USB driver provides) and methodically follow the execution path. I'm thinking about things like: "Does the USB driver pass received data directly to the ath10k core? If so, what function(s) does it call?" "Does this path branch depending on the type of data or the control messages?" "Does the ath10k core have a dedicated function for handling incoming USB data, or does it reuse existing PCI-related functions?"

I'm focusing on the data flow and looking for any connection between the USB receive logic and `ath10k_htt_t2h_msg_handler`. My gut feeling (based on past experience) is that it *might* be relevant, but I need solid evidence, not assumptions. I’ll be looking for calls to it, or anything else it might call, directly or indirectly. The goal is to establish a clear connection, or if one doesn’t exist, understand *why* it doesn't. And if it's not being called, figure out where the data *is* going to, and why.



12/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ath10k_htt_t2h_msg_handler",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/htt.h=2432=void ath10k_htt_htc_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb);\ndrivers/net/wireless/ath/ath10k/htt.h:2433:bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb);\ndrivers/net/wireless/ath/ath10k/htt.h-2434-int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt);\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=3668=void ath10k_htt_htc_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3671-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:3672:\trelease = ath10k_htt_t2h_msg_handler(ar, skb);\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3673-\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4072=static void ath10k_htt_rx_sec_ind_handler(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4104-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4105:bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4106-{\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4331-}\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4332:EXPORT_SYMBOL(ath10k_htt_t2h_msg_handler);\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4333-\n--\ndrivers/net/wireless/ath/ath10k/pci.c=1334=static void ath10k_pci_htt_rx_deliver(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/pci.c-1336-\tskb_pull(skb, sizeof(struct ath10k_htc_hdr));\ndrivers/net/wireless/ath/ath10k/pci.c:1337:\tath10k_htt_t2h_msg_handler(ar, skb);\ndrivers/net/wireless/ath/ath10k/pci.c-1338-}\n--\ndrivers/net/wireless/ath/ath10k/snoc.c=636=static void ath10k_snoc_htt_rx_deliver(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/snoc.c-638-\tskb_pull(skb, sizeof(struct ath10k_htc_hdr));\ndrivers/net/wireless/ath/ath10k/snoc.c:639:\tath10k_htt_t2h_msg_handler(ar, skb);\ndrivers/net/wireless/ath/ath10k/snoc.c-640-}\n"
}

13/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 22324
							output: 60
							thoughts: 49
						

Thoughts:
Here's my take on those thoughts:

**Analyzing the ath10k USB RX Path**

Okay, so I'm thinking I need to zero in on how data moves from the USB side of the ath10k driver into the system. My first instinct is to dive into `usb.c` and `htc.c` – that's where I'd expect to find the low-level USB interaction and Host to Target Communication (HTC) layers. Specifically, I'm going to look at `ath10k_htt_htc_t2h_msg_handler`. That's where I assume the actual message handling from the target (the wireless chip) to the host (the computer) takes place. After that, I will trace the path of where the received data is handled. So then, I will check out `ath10k_usb_rx_complete`. I would imagine this function is called when a USB receive operation completes. I'll need to see how the received data from the USB controller is passed up the stack after it's been received. Hopefully, between those two functions, I can understand the whole flow, including how the data is being parsed, what the error conditions are, and where it goes from there. That's my initial hypothesis, anyway. Time to dig in!



14/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ath10k_htt_htc_t2h_msg_handler|ath10k_usb_rx_complete",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/htt.c=288=int ath10k_htt_connect(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt.c-299-\tconn_req.ep_ops.ep_tx_complete = ath10k_htt_htc_tx_complete;\ndrivers/net/wireless/ath/ath10k/htt.c:300:\tconn_req.ep_ops.ep_rx_complete = ath10k_htt_htc_t2h_msg_handler;\ndrivers/net/wireless/ath/ath10k/htt.c-301-\tconn_req.ep_ops.ep_tx_credits = ath10k_htt_op_ep_tx_credits;\n--\ndrivers/net/wireless/ath/ath10k/htt.h=2431=void ath10k_htt_htc_tx_complete(struct ath10k *ar, struct sk_buff *skb);\ndrivers/net/wireless/ath/ath10k/htt.h:2432:void ath10k_htt_htc_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb);\ndrivers/net/wireless/ath/ath10k/htt.h-2433-bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb);\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=3566=static void ath10k_htt_rx_tx_mode_switch_ind(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3667-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:3668:void ath10k_htt_htc_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3669-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c=281=static void ath10k_usb_tx_complete(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-291-\ndrivers/net/wireless/ath/ath10k/usb.c:292:static void ath10k_usb_rx_complete(struct ath10k *ar, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath10k/usb.c-293-{\n--\ndrivers/net/wireless/ath/ath10k/usb.c=360=static void ath10k_usb_io_comp_work(struct work_struct *work)\n--\ndrivers/net/wireless/ath/ath10k/usb.c-371-\t\telse\ndrivers/net/wireless/ath/ath10k/usb.c:372:\t\t\tath10k_usb_rx_complete(ar, skb);\ndrivers/net/wireless/ath/ath10k/usb.c-373-\t}\n"
}

15/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 23547
							output: 44
							thoughts: 53
						

Thoughts:
Here's my take on those thoughts:

**Analyzing the ath10k USB RX Completion**

Okay, so I'm diving into the `ath10k_usb_rx_complete` function. Looks like I'm going to find this one tucked away in `drivers/net/wireless/ath/ath10k/usb.c`. That file path immediately suggests this is the core of the USB-specific receive completion handling for the ath10k wireless driver. I'm guessing this function is the central point where the driver processes incoming data from the USB interface after a receive operation is marked as finished. Time to dig in and see exactly how they've implemented it. I'm keen to understand the data structures and flow control involved, since this is a critical performance bottleneck for wireless adapters. I'll be particularly focused on how it interacts with the USB layer.



16/2 2026/09/11 07:50 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath10k/usb.c",
  "FirstLine": 292,
  "LineCount": 40
}

Results:
{
  "Contents": " 292:\tstatic void ath10k_usb_rx_complete(struct ath10k *ar, struct sk_buff *skb)\n 293:\t{\n 294:\t\tstruct ath10k_htc *htc = \u0026ar-\u003ehtc;\n 295:\t\tstruct ath10k_htc_hdr *htc_hdr;\n 296:\t\tenum ath10k_htc_ep_id eid;\n 297:\t\tstruct ath10k_htc_ep *ep;\n 298:\t\tu16 payload_len;\n 299:\t\tu8 *trailer;\n 300:\t\tint ret;\n 301:\t\n 302:\t\thtc_hdr = (struct ath10k_htc_hdr *)skb-\u003edata;\n 303:\t\teid = eid_from_htc_hdr(htc_hdr);\n 304:\t\tep = \u0026ar-\u003ehtc.endpoint[eid];\n 305:\t\n 306:\t\tif (ep-\u003eservice_id == 0) {\n 307:\t\t\tath10k_warn(ar, \"ep %d is not connected\\n\", eid);\n 308:\t\t\tgoto out_free_skb;\n 309:\t\t}\n 310:\t\n 311:\t\tpayload_len = le16_to_cpu(htc_hdr-\u003elen);\n 312:\t\tif (!payload_len) {\n 313:\t\t\tath10k_warn(ar, \"zero length frame received, firmware crashed?\\n\");\n 314:\t\t\tgoto out_free_skb;\n 315:\t\t}\n 316:\t\n 317:\t\tif (payload_len \u003c htc_hdr-\u003etrailer_len) {\n 318:\t\t\tath10k_warn(ar, \"malformed frame received, firmware crashed?\\n\");\n 319:\t\t\tgoto out_free_skb;\n 320:\t\t}\n 321:\t\n 322:\t\tif (htc_hdr-\u003eflags \u0026 ATH10K_HTC_FLAG_TRAILER_PRESENT) {\n 323:\t\t\ttrailer = skb-\u003edata + sizeof(*htc_hdr) + payload_len -\n 324:\t\t\t\t  htc_hdr-\u003etrailer_len;\n 325:\t\n 326:\t\t\tret = ath10k_htc_process_trailer(htc,\n 327:\t\t\t\t\t\t\t trailer,\n 328:\t\t\t\t\t\t\t htc_hdr-\u003etrailer_len,\n 329:\t\t\t\t\t\t\t eid,\n 330:\t\t\t\t\t\t\t NULL,\n 331:\t\t\t\t\t\t\t NULL);\n"
}

17/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 24508
							output: 44
							thoughts: 16
						

Thoughts:
Okay, here's my attempt at summarizing the thought process, as requested, targeting an expert audience and starting with a bolded header:

**Diving Deeper: Lines 332-358 Require Scrutiny**

Alright, I'm at a point where I need to take a closer look at the specifics, and I'm directing my focus to lines 332 through 358. Given the context of the work, I suspect there's a particular nuance here that needs unpicking, perhaps a critical assumption or a complex interplay of variables. My experience tells me that these often are where the authors get either brilliant insights or subtle but important errors. I'll need to meticulously evaluate the arguments presented, ensuring they align with established principles and empirical data. I am prepared to rigorously examine the methodology used if any, and its assumptions to see if they're sound. It's likely that a detailed comparison to related literature, particularly contrasting viewpoints, is going to be useful. I'll need to dissect the logic, scrutinize the evidence offered, and identify any potential weaknesses or areas where further clarification is required. This section could hold the key to either a critical piece of validation or a potentially significant challenge to the overall framework.



18/2 2026/09/11 07:50 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath10k/usb.c",
  "FirstLine": 332,
  "LineCount": 30
}

Results:
{
  "Contents": " 332:\t\t\tif (ret)\n 333:\t\t\t\tgoto out_free_skb;\n 334:\t\n 335:\t\t\tif (is_trailer_only_msg(htc_hdr))\n 336:\t\t\t\tgoto out_free_skb;\n 337:\t\n 338:\t\t\t/* strip off the trailer from the skb since it should not\n 339:\t\t\t * be passed on to upper layers\n 340:\t\t\t */\n 341:\t\t\tskb_trim(skb, skb-\u003elen - htc_hdr-\u003etrailer_len);\n 342:\t\t}\n 343:\t\n 344:\t\tskb_pull(skb, sizeof(*htc_hdr));\n 345:\t\tep-\u003eep_ops.ep_rx_complete(ar, skb);\n 346:\t\t/* The RX complete handler now owns the skb... */\n 347:\t\n 348:\t\tif (test_bit(ATH10K_FLAG_CORE_REGISTERED, \u0026ar-\u003edev_flags)) {\n 349:\t\t\tlocal_bh_disable();\n 350:\t\t\tnapi_schedule(\u0026ar-\u003enapi);\n 351:\t\t\tlocal_bh_enable();\n 352:\t\t}\n 353:\t\n 354:\t\treturn;\n 355:\t\n 356:\tout_free_skb:\n 357:\t\tdev_kfree_skb(skb);\n 358:\t}\n 359:\t\n 360:\tstatic void ath10k_usb_io_comp_work(struct work_struct *work)\n 361:\t{\n"
}

19/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 25267
							output: 42
							thoughts: 135
						

Thoughts:
**Analyzing the ath10k_usb RX Path**

Okay, let's break this down. My initial observation is that the `ath10k_usb` driver, specifically, is responsible for handling the USB WiFi traffic. I'm focusing on the receive path here.

My interest is sparked by how the data flows, specifically how the `ep->ep_ops.ep_rx_complete` callback function interacts with the higher-level functions. The call stack unfolds like this: it seems that `ep_rx_complete` ultimately calls `ath10k_htt_htc_t2h_msg_handler`, which then calls `ath10k_htt_t2h_msg_handler`. This function, in turn, seems to pass the data along to `ath10k_htt_rx_proc_rx_frag_ind`. From there the data flows to `ath10k_htt_rx_proc_rx_frag_ind_hl`.

The crucial detail, which is where my immediate question stems from, is the `dev_type` being `HL` (Host-based Low-latency) in this particular path for USB. I want to make sure this is what I expect. I need to verify that this is indeed what the driver does for USB devices, especially given the "HL" designation.



20/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ATH10K_DEV_TYPE_HL",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/core.h=999=enum ath10k_dev_type {\ndrivers/net/wireless/ath/ath10k/core.h-1000-\tATH10K_DEV_TYPE_LL,\ndrivers/net/wireless/ath/ath10k/core.h:1001:\tATH10K_DEV_TYPE_HL,\ndrivers/net/wireless/ath/ath10k/core.h-1002-};\n--\ndrivers/net/wireless/ath/ath10k/htc.c=43=static inline void ath10k_htc_restore_tx_skb(struct ath10k_htc *htc,\n--\ndrivers/net/wireless/ath/ath10k/htc.c-47-\ndrivers/net/wireless/ath/ath10k/htc.c:48:\tif (htc-\u003ear-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htc.c-49-\t\tdma_unmap_single(htc-\u003ear-\u003edev, skb_cb-\u003epaddr, skb-\u003elen, DMA_TO_DEVICE);\n--\ndrivers/net/wireless/ath/ath10k/htc.c=165=int ath10k_htc_send(struct ath10k_htc *htc,\n--\ndrivers/net/wireless/ath/ath10k/htc.c-194-\tskb_cb-\u003eeid = eid;\ndrivers/net/wireless/ath/ath10k/htc.c:195:\tif (ar-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL) {\ndrivers/net/wireless/ath/ath10k/htc.c-196-\t\tskb_cb-\u003epaddr = dma_map_single(dev, skb-\u003edata, skb-\u003elen,\n--\ndrivers/net/wireless/ath/ath10k/htc.c-217-err_unmap:\ndrivers/net/wireless/ath/ath10k/htc.c:218:\tif (ar-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htc.c-219-\t\tdma_unmap_single(dev, skb_cb-\u003epaddr, skb-\u003elen, DMA_TO_DEVICE);\n--\ndrivers/net/wireless/ath/ath10k/htt.c=288=int ath10k_htt_connect(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt.c-313-\ndrivers/net/wireless/ath/ath10k/htt.c:314:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL) {\ndrivers/net/wireless/ath/ath10k/htt.c-315-\t\tep = \u0026ar-\u003ehtc.endpoint[htt-\u003eeid];\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=268=int ath10k_htt_rx_ring_refill(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-272-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:273:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-274-\t\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=288=void ath10k_htt_rx_free(struct ath10k_htt *htt)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-289-{\ndrivers/net/wireless/ath/ath10k/htt_rx.c:290:\tif (htt-\u003ear-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-291-\t\treturn;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=785=int ath10k_htt_rx_alloc(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-792-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:793:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-794-\t\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=2975=static void ath10k_htt_rx_tx_compl_ind(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3044-\t\t */\ndrivers/net/wireless/ath/ath10k/htt_rx.c:3045:\t\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL) {\ndrivers/net/wireless/ath/ath10k/htt_rx.c-3046-\t\t\tath10k_txrx_tx_unref(htt, \u0026tx_done);\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4105=bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4132-\tcase HTT_T2H_MSG_TYPE_RX_IND:\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4133:\t\tif (ar-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL) {\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4134-\t\t\tath10k_htt_rx_proc_rx_ind_ll(htt, \u0026resp-\u003erx_ind);\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c=4494=void ath10k_htt_set_rx_ops(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4497-\ndrivers/net/wireless/ath/ath10k/htt_rx.c:4498:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_rx.c-4499-\t\thtt-\u003erx_ops = \u0026htt_rx_ops_hl;\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c=477=int ath10k_htt_tx_start(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c-490-\ndrivers/net/wireless/ath/ath10k/htt_tx.c:491:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_tx.c-492-\t\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c=1180=int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu)\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c-1251-err_unmap_msdu:\ndrivers/net/wireless/ath/ath10k/htt_tx.c:1252:\tif (ar-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_tx.c-1253-\t\tdma_unmap_single(dev, skb_cb-\u003epaddr, msdu-\u003elen, DMA_TO_DEVICE);\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c=1831=void ath10k_htt_set_tx_ops(struct ath10k_htt *htt)\n--\ndrivers/net/wireless/ath/ath10k/htt_tx.c-1834-\ndrivers/net/wireless/ath/ath10k/htt_tx.c:1835:\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/htt_tx.c-1836-\t\thtt-\u003etx_ops = \u0026htt_tx_ops_hl;\n--\ndrivers/net/wireless/ath/ath10k/mac.c=998=static void ath10k_mac_vif_beacon_cleanup(struct ath10k_vif *arvif)\n--\ndrivers/net/wireless/ath/ath10k/mac.c-1006-\tif (arvif-\u003ebeacon_buf) {\ndrivers/net/wireless/ath/ath10k/mac.c:1007:\t\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/mac.c-1008-\t\t\tkfree(arvif-\u003ebeacon_buf);\n--\ndrivers/net/wireless/ath/ath10k/mac.c=5556=static int ath10k_add_interface(struct ieee80211_hw *hw,\n--\ndrivers/net/wireless/ath/ath10k/mac.c-5681-\t    vif-\u003etype == NL80211_IFTYPE_AP) {\ndrivers/net/wireless/ath/ath10k/mac.c:5682:\t\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL) {\ndrivers/net/wireless/ath/ath10k/mac.c-5683-\t\t\tarvif-\u003ebeacon_buf = kmalloc(IEEE80211_MAX_FRAME_LEN,\n--\ndrivers/net/wireless/ath/ath10k/mac.c-5906-\tif (arvif-\u003ebeacon_buf) {\ndrivers/net/wireless/ath/ath10k/mac.c:5907:\t\tif (ar-\u003ebus_param.dev_type == ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/mac.c-5908-\t\t\tkfree(arvif-\u003ebeacon_buf);\n--\ndrivers/net/wireless/ath/ath10k/sdio.c=2517=static int ath10k_sdio_probe(struct sdio_func *func,\n--\ndrivers/net/wireless/ath/ath10k/sdio.c-2619-\ndrivers/net/wireless/ath/ath10k/sdio.c:2620:\tbus_params.dev_type = ATH10K_DEV_TYPE_HL;\ndrivers/net/wireless/ath/ath10k/sdio.c-2621-\t/* TODO: don't know yet how to get chip_id with SDIO */\n--\ndrivers/net/wireless/ath/ath10k/txrx.c=43=int ath10k_txrx_tx_unref(struct ath10k_htt *htt,\n--\ndrivers/net/wireless/ath/ath10k/txrx.c-93-\ndrivers/net/wireless/ath/ath10k/txrx.c:94:\tif (ar-\u003ebus_param.dev_type != ATH10K_DEV_TYPE_HL)\ndrivers/net/wireless/ath/ath10k/txrx.c-95-\t\tdma_unmap_single(dev, skb_cb-\u003epaddr, msdu-\u003elen, DMA_TO_DEVICE);\n--\ndrivers/net/wireless/ath/ath10k/usb.c=992=static int ath10k_usb_probe(struct usb_interface *interface,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1035-\ndrivers/net/wireless/ath/ath10k/usb.c:1036:\tbus_params.dev_type = ATH10K_DEV_TYPE_HL;\ndrivers/net/wireless/ath/ath10k/usb.c-1037-\t/* TODO: don't know yet how to get chip_id with USB */\n"
}

21/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 28994
							output: 36
							thoughts: 83
						

Thoughts:
Here's my take on those thoughts:

**Analyzing the ath10k USB Driver's Receive Path**

Okay, so I'm digging into this `ath10k_usb_probe` function, and it's setting `bus_params.dev_type` to `ATH10K_DEV_TYPE_HL`. That's a crucial piece of information. This confirms that for USB-based ath10k devices, we're directly hitting `ath10k_htt_rx_proc_rx_frag_ind_hl` in the receive path. No surprises there, but it's good to have that locked down definitively.

Now, I need to double-check the Kconfig options for ath10k, specifically related to debugfs and the htt_rx processing. I'm wondering if there are any specific configurations that might affect how `ath10k_htt_rx_proc_rx_frag_ind_hl` behaves or if any debugging features are enabled that might provide more insights into its operation. I'll need to confirm what's enabled.



22/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ATH10K",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "\nFull output is too long, showing 500 out of 10063 lines.\nUse more precise expression if possible.\n\ndrivers/net/wireless/ath/ath10k/Kconfig-1-# SPDX-License-Identifier: ISC\ndrivers/net/wireless/ath/ath10k/Kconfig:2:config ATH10K\ndrivers/net/wireless/ath/ath10k/Kconfig-3-\ttristate \"Atheros 802.11ac wireless cards support\"\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-7-\tselect WANT_DEV_COREDUMP\ndrivers/net/wireless/ath/ath10k/Kconfig:8:\tselect ATH10K_CE\ndrivers/net/wireless/ath/ath10k/Kconfig-9-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-14-\ndrivers/net/wireless/ath/ath10k/Kconfig:15:config ATH10K_CE\ndrivers/net/wireless/ath/ath10k/Kconfig-16-\tbool\ndrivers/net/wireless/ath/ath10k/Kconfig-17-\ndrivers/net/wireless/ath/ath10k/Kconfig:18:config ATH10K_PCI\ndrivers/net/wireless/ath/ath10k/Kconfig-19-\ttristate \"Atheros ath10k PCI support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:20:\tdepends on ATH10K \u0026\u0026 PCI\ndrivers/net/wireless/ath/ath10k/Kconfig-21-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-23-\ndrivers/net/wireless/ath/ath10k/Kconfig:24:config ATH10K_AHB\ndrivers/net/wireless/ath/ath10k/Kconfig-25-\tbool \"Atheros ath10k AHB support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:26:\tdepends on ATH10K_PCI \u0026\u0026 OF \u0026\u0026 RESET_CONTROLLER\ndrivers/net/wireless/ath/ath10k/Kconfig-27-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-29-\ndrivers/net/wireless/ath/ath10k/Kconfig:30:config ATH10K_SDIO\ndrivers/net/wireless/ath/ath10k/Kconfig-31-\ttristate \"Atheros ath10k SDIO support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:32:\tdepends on ATH10K \u0026\u0026 MMC\ndrivers/net/wireless/ath/ath10k/Kconfig-33-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-35-\ndrivers/net/wireless/ath/ath10k/Kconfig:36:config ATH10K_USB\ndrivers/net/wireless/ath/ath10k/Kconfig-37-\ttristate \"Atheros ath10k USB support (EXPERIMENTAL)\"\ndrivers/net/wireless/ath/ath10k/Kconfig:38:\tdepends on ATH10K \u0026\u0026 USB\ndrivers/net/wireless/ath/ath10k/Kconfig-39-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-42-\ndrivers/net/wireless/ath/ath10k/Kconfig:43:config ATH10K_SNOC\ndrivers/net/wireless/ath/ath10k/Kconfig-44-\ttristate \"Qualcomm ath10k SNOC support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:45:\tdepends on ATH10K\ndrivers/net/wireless/ath/ath10k/Kconfig-46-\tdepends on ARCH_QCOM || COMPILE_TEST\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-55-\ndrivers/net/wireless/ath/ath10k/Kconfig:56:config ATH10K_DEBUG\ndrivers/net/wireless/ath/ath10k/Kconfig-57-\tbool \"Atheros ath10k debugging\"\ndrivers/net/wireless/ath/ath10k/Kconfig:58:\tdepends on ATH10K\ndrivers/net/wireless/ath/ath10k/Kconfig-59-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-63-\ndrivers/net/wireless/ath/ath10k/Kconfig:64:config ATH10K_DEBUGFS\ndrivers/net/wireless/ath/ath10k/Kconfig-65-\tbool \"Atheros ath10k debugfs support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:66:\tdepends on ATH10K \u0026\u0026 DEBUG_FS\ndrivers/net/wireless/ath/ath10k/Kconfig-67-\thelp\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-71-\ndrivers/net/wireless/ath/ath10k/Kconfig:72:config ATH10K_LEDS\ndrivers/net/wireless/ath/ath10k/Kconfig-73-\tbool\ndrivers/net/wireless/ath/ath10k/Kconfig:74:\tdepends on ATH10K\ndrivers/net/wireless/ath/ath10k/Kconfig-75-\tdepends on LEDS_CLASS=y || LEDS_CLASS=MAC80211\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-77-\ndrivers/net/wireless/ath/ath10k/Kconfig:78:config ATH10K_SPECTRAL\ndrivers/net/wireless/ath/ath10k/Kconfig-79-\tbool \"Atheros ath10k spectral scan support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:80:\tdepends on ATH10K_DEBUGFS\ndrivers/net/wireless/ath/ath10k/Kconfig-81-\tselect RELAY\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-85-\ndrivers/net/wireless/ath/ath10k/Kconfig:86:config ATH10K_TRACING\ndrivers/net/wireless/ath/ath10k/Kconfig-87-\tbool \"Atheros ath10k tracing support\"\ndrivers/net/wireless/ath/ath10k/Kconfig:88:\tdepends on ATH10K\ndrivers/net/wireless/ath/ath10k/Kconfig-89-\tdepends on EVENT_TRACING\n--\ndrivers/net/wireless/ath/ath10k/Kconfig-92-\ndrivers/net/wireless/ath/ath10k/Kconfig:93:config ATH10K_DFS_CERTIFIED\ndrivers/net/wireless/ath/ath10k/Kconfig-94-\tbool \"Atheros DFS support for certified platforms\"\ndrivers/net/wireless/ath/ath10k/Kconfig:95:\tdepends on ATH10K \u0026\u0026 CFG80211_CERTIFICATION_ONUS\ndrivers/net/wireless/ath/ath10k/Kconfig-96-\tdefault n\n--\ndrivers/net/wireless/ath/ath10k/Makefile-1-# SPDX-License-Identifier: ISC\ndrivers/net/wireless/ath/ath10k/Makefile:2:obj-$(CONFIG_ATH10K) += ath10k_core.o\ndrivers/net/wireless/ath/ath10k/Makefile-3-ath10k_core-y += mac.o \\\n--\ndrivers/net/wireless/ath/ath10k/Makefile-17-\ndrivers/net/wireless/ath/ath10k/Makefile:18:ath10k_core-$(CONFIG_ATH10K_SPECTRAL) += spectral.o\ndrivers/net/wireless/ath/ath10k/Makefile-19-ath10k_core-$(CONFIG_NL80211_TESTMODE) += testmode.o\ndrivers/net/wireless/ath/ath10k/Makefile:20:ath10k_core-$(CONFIG_ATH10K_TRACING) += trace.o\ndrivers/net/wireless/ath/ath10k/Makefile-21-ath10k_core-$(CONFIG_THERMAL) += thermal.o\ndrivers/net/wireless/ath/ath10k/Makefile:22:ath10k_core-$(CONFIG_ATH10K_LEDS) += leds.o\ndrivers/net/wireless/ath/ath10k/Makefile-23-ath10k_core-$(CONFIG_MAC80211_DEBUGFS) += debugfs_sta.o\n--\ndrivers/net/wireless/ath/ath10k/Makefile=25=ath10k_core-$(CONFIG_DEV_COREDUMP) += coredump.o\ndrivers/net/wireless/ath/ath10k/Makefile:26:ath10k_core-$(CONFIG_ATH10K_CE) += ce.o\ndrivers/net/wireless/ath/ath10k/Makefile-27-\ndrivers/net/wireless/ath/ath10k/Makefile:28:obj-$(CONFIG_ATH10K_PCI) += ath10k_pci.o\ndrivers/net/wireless/ath/ath10k/Makefile-29-ath10k_pci-y += pci.o\ndrivers/net/wireless/ath/ath10k/Makefile-30-\ndrivers/net/wireless/ath/ath10k/Makefile:31:ath10k_pci-$(CONFIG_ATH10K_AHB) += ahb.o\ndrivers/net/wireless/ath/ath10k/Makefile-32-\ndrivers/net/wireless/ath/ath10k/Makefile:33:obj-$(CONFIG_ATH10K_SDIO) += ath10k_sdio.o\ndrivers/net/wireless/ath/ath10k/Makefile-34-ath10k_sdio-y += sdio.o\ndrivers/net/wireless/ath/ath10k/Makefile-35-\ndrivers/net/wireless/ath/ath10k/Makefile:36:obj-$(CONFIG_ATH10K_USB) += ath10k_usb.o\ndrivers/net/wireless/ath/ath10k/Makefile-37-ath10k_usb-y += usb.o\ndrivers/net/wireless/ath/ath10k/Makefile-38-\ndrivers/net/wireless/ath/ath10k/Makefile:39:obj-$(CONFIG_ATH10K_SNOC) += ath10k_snoc.o\ndrivers/net/wireless/ath/ath10k/Makefile-40-ath10k_snoc-y += qmi.o \\\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=16=static const struct of_device_id ath10k_ahb_of_match[] = {\ndrivers/net/wireless/ath/ath10k/ahb.c-17-\t{ .compatible = \"qcom,ipq4019-wifi\",\ndrivers/net/wireless/ath/ath10k/ahb.c:18:\t  .data = (void *)ATH10K_HW_QCA4019\ndrivers/net/wireless/ath/ath10k/ahb.c-19-\t},\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=73=static int ath10k_ahb_get_num_banks(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/ahb.c-74-{\ndrivers/net/wireless/ath/ath10k/ahb.c:75:\tif (ar-\u003ehw_rev == ATH10K_HW_QCA4019)\ndrivers/net/wireless/ath/ath10k/ahb.c-76-\t\treturn 1;\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=277=static void ath10k_ahb_halt_axi_bus(struct ath10k *ar, u32 haltreq_reg,\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-288-\t/* Wait for axi bus halted ack */\ndrivers/net/wireless/ath/ath10k/ahb.c:289:\ttimeout = jiffies + msecs_to_jiffies(ATH10K_AHB_AXI_BUS_HALT_TIMEOUT);\ndrivers/net/wireless/ath/ath10k/ahb.c-290-\tdo {\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-302-\ndrivers/net/wireless/ath/ath10k/ahb.c:303:\tath10k_dbg(ar, ATH10K_DBG_AHB, \"axi bus halted\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-304-}\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=306=static void ath10k_ahb_halt_chip(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-321-\ndrivers/net/wireless/ath/ath10k/ahb.c:322:\tcore_id = ath10k_ahb_read32(ar, ATH10K_AHB_WLAN_CORE_ID_REG);\ndrivers/net/wireless/ath/ath10k/ahb.c-323-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-325-\tcase 0:\ndrivers/net/wireless/ath/ath10k/ahb.c:326:\t\tglb_cfg_reg = ATH10K_AHB_TCSR_WIFI0_GLB_CFG;\ndrivers/net/wireless/ath/ath10k/ahb.c:327:\t\thaltreq_reg = ATH10K_AHB_TCSR_WCSS0_HALTREQ;\ndrivers/net/wireless/ath/ath10k/ahb.c:328:\t\thaltack_reg = ATH10K_AHB_TCSR_WCSS0_HALTACK;\ndrivers/net/wireless/ath/ath10k/ahb.c-329-\t\tbreak;\ndrivers/net/wireless/ath/ath10k/ahb.c-330-\tcase 1:\ndrivers/net/wireless/ath/ath10k/ahb.c:331:\t\tglb_cfg_reg = ATH10K_AHB_TCSR_WIFI1_GLB_CFG;\ndrivers/net/wireless/ath/ath10k/ahb.c:332:\t\thaltreq_reg = ATH10K_AHB_TCSR_WCSS1_HALTREQ;\ndrivers/net/wireless/ath/ath10k/ahb.c:333:\t\thaltack_reg = ATH10K_AHB_TCSR_WCSS1_HALTACK;\ndrivers/net/wireless/ath/ath10k/ahb.c-334-\t\tbreak;\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-386-\ndrivers/net/wireless/ath/ath10k/ahb.c:387:\tath10k_dbg(ar, ATH10K_DBG_AHB, \"core %d reset done\\n\", core_id);\ndrivers/net/wireless/ath/ath10k/ahb.c-388-}\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=404=static int ath10k_ahb_request_irq_intx(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-417-\t}\ndrivers/net/wireless/ath/ath10k/ahb.c:418:\tar_pci-\u003eoper_irq_mode = ATH10K_PCI_IRQ_INTX;\ndrivers/net/wireless/ath/ath10k/ahb.c-419-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=436=static int ath10k_ahb_resource_init(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-453-\ndrivers/net/wireless/ath/ath10k/ahb.c:454:\tar_ahb-\u003egcc_mem = ioremap(ATH10K_GCC_REG_BASE,\ndrivers/net/wireless/ath/ath10k/ahb.c:455:\t\t\t\t  ATH10K_GCC_REG_SIZE);\ndrivers/net/wireless/ath/ath10k/ahb.c-456-\tif (!ar_ahb-\u003egcc_mem) {\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-461-\ndrivers/net/wireless/ath/ath10k/ahb.c:462:\tar_ahb-\u003etcsr_mem = ioremap(ATH10K_TCSR_REG_BASE,\ndrivers/net/wireless/ath/ath10k/ahb.c:463:\t\t\t\t   ATH10K_TCSR_REG_SIZE);\ndrivers/net/wireless/ath/ath10k/ahb.c-464-\tif (!ar_ahb-\u003etcsr_mem) {\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-497-\ndrivers/net/wireless/ath/ath10k/ahb.c:498:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"irq: %d\\n\", ar_ahb-\u003eirq);\ndrivers/net/wireless/ath/ath10k/ahb.c-499-\ndrivers/net/wireless/ath/ath10k/ahb.c:500:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"mem: 0x%p mem_len: %lu gcc mem: 0x%p tcsr_mem: 0x%p\\n\",\ndrivers/net/wireless/ath/ath10k/ahb.c-501-\t\t   ar_ahb-\u003emem, ar_ahb-\u003emem_len,\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=548=static int ath10k_ahb_prepare_device(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-565-\t */\ndrivers/net/wireless/ath/ath10k/ahb.c:566:\tval = ath10k_ahb_gcc_read32(ar, ATH10K_AHB_GCC_FEPLL_PLL_DIV);\ndrivers/net/wireless/ath/ath10k/ahb.c:567:\tath10k_ahb_write32(ar, ATH10K_AHB_WIFI_SCRATCH_5_REG, val);\ndrivers/net/wireless/ath/ath10k/ahb.c-568-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=606=static int ath10k_ahb_wake_target_cpu(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-611-\tval = ath10k_ahb_read32(ar, addr);\ndrivers/net/wireless/ath/ath10k/ahb.c:612:\tval |= ATH10K_AHB_CORE_CTRL_CPU_INTR_MASK;\ndrivers/net/wireless/ath/ath10k/ahb.c-613-\tath10k_ahb_write32(ar, addr, val);\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=618=static int ath10k_ahb_hif_start(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/ahb.c-619-{\ndrivers/net/wireless/ath/ath10k/ahb.c:620:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"boot ahb hif start\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-621-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=631=static void ath10k_ahb_hif_stop(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-634-\ndrivers/net/wireless/ath/ath10k/ahb.c:635:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"boot ahb hif stop\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-636-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=645=static int ath10k_ahb_hif_power_up(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-649-\ndrivers/net/wireless/ath/ath10k/ahb.c:650:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"boot ahb hif power up\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-651-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=726=static int ath10k_ahb_probe(struct platform_device *pdev)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-742-\tsize = sizeof(*ar_pci) + sizeof(*ar_ahb);\ndrivers/net/wireless/ath/ath10k/ahb.c:743:\tar = ath10k_core_create(size, \u0026pdev-\u003edev, ATH10K_BUS_AHB,\ndrivers/net/wireless/ath/ath10k/ahb.c-744-\t\t\t\thw_rev, \u0026ath10k_ahb_hif_ops);\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-749-\ndrivers/net/wireless/ath/ath10k/ahb.c:750:\tath10k_dbg(ar, ATH10K_DBG_BOOT, \"ahb probe\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-751-\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-787-\ndrivers/net/wireless/ath/ath10k/ahb.c:788:\tbus_params.dev_type = ATH10K_DEV_TYPE_LL;\ndrivers/net/wireless/ath/ath10k/ahb.c-789-\tbus_params.chip_id = ath10k_ahb_soc_read32(ar, SOC_CHIP_ID_ADDRESS);\n--\ndrivers/net/wireless/ath/ath10k/ahb.c=823=static void ath10k_ahb_remove(struct platform_device *pdev)\n--\ndrivers/net/wireless/ath/ath10k/ahb.c-826-\ndrivers/net/wireless/ath/ath10k/ahb.c:827:\tath10k_dbg(ar, ATH10K_DBG_AHB, \"ahb remove\\n\");\ndrivers/net/wireless/ath/ath10k/ahb.c-828-\n--\ndrivers/net/wireless/ath/ath10k/ahb.h=12=struct ath10k_ahb {\n--\ndrivers/net/wireless/ath/ath10k/ahb.h-31-\ndrivers/net/wireless/ath/ath10k/ahb.h:32:#ifdef CONFIG_ATH10K_AHB\ndrivers/net/wireless/ath/ath10k/ahb.h-33-\ndrivers/net/wireless/ath/ath10k/ahb.h:34:#define ATH10K_GCC_REG_BASE                  0x1800000\ndrivers/net/wireless/ath/ath10k/ahb.h:35:#define ATH10K_GCC_REG_SIZE                  0x60000\ndrivers/net/wireless/ath/ath10k/ahb.h-36-\ndrivers/net/wireless/ath/ath10k/ahb.h:37:#define ATH10K_TCSR_REG_BASE                 0x1900000\ndrivers/net/wireless/ath/ath10k/ahb.h:38:#define ATH10K_TCSR_REG_SIZE                 0x80000\ndrivers/net/wireless/ath/ath10k/ahb.h-39-\ndrivers/net/wireless/ath/ath10k/ahb.h:40:#define ATH10K_AHB_GCC_FEPLL_PLL_DIV         0x2f020\ndrivers/net/wireless/ath/ath10k/ahb.h:41:#define ATH10K_AHB_WIFI_SCRATCH_5_REG        0x4f014\ndrivers/net/wireless/ath/ath10k/ahb.h-42-\ndrivers/net/wireless/ath/ath10k/ahb.h:43:#define ATH10K_AHB_WLAN_CORE_ID_REG          0x82030\ndrivers/net/wireless/ath/ath10k/ahb.h-44-\ndrivers/net/wireless/ath/ath10k/ahb.h:45:#define ATH10K_AHB_TCSR_WIFI0_GLB_CFG        0x49000\ndrivers/net/wireless/ath/ath10k/ahb.h:46:#define ATH10K_AHB_TCSR_WIFI1_GLB_CFG        0x49004\ndrivers/net/wireless/ath/ath10k/ahb.h-47-#define TCSR_WIFIX_GLB_CFG_DISABLE_CORE_CLK  BIT(25)\ndrivers/net/wireless/ath/ath10k/ahb.h-48-\ndrivers/net/wireless/ath/ath10k/ahb.h:49:#define ATH10K_AHB_TCSR_WCSS0_HALTREQ        0x52000\ndrivers/net/wireless/ath/ath10k/ahb.h:50:#define ATH10K_AHB_TCSR_WCSS1_HALTREQ        0x52010\ndrivers/net/wireless/ath/ath10k/ahb.h:51:#define ATH10K_AHB_TCSR_WCSS0_HALTACK        0x52004\ndrivers/net/wireless/ath/ath10k/ahb.h:52:#define ATH10K_AHB_TCSR_WCSS1_HALTACK        0x52014\ndrivers/net/wireless/ath/ath10k/ahb.h-53-\ndrivers/net/wireless/ath/ath10k/ahb.h:54:#define ATH10K_AHB_AXI_BUS_HALT_TIMEOUT      10 /* msec */\ndrivers/net/wireless/ath/ath10k/ahb.h-55-#define AHB_AXI_BUS_HALT_REQ                 1\n--\ndrivers/net/wireless/ath/ath10k/ahb.h-57-\ndrivers/net/wireless/ath/ath10k/ahb.h:58:#define ATH10K_AHB_CORE_CTRL_CPU_INTR_MASK   1\ndrivers/net/wireless/ath/ath10k/ahb.h-59-\n--\ndrivers/net/wireless/ath/ath10k/ahb.h=61=void ath10k_ahb_exit(void);\ndrivers/net/wireless/ath/ath10k/ahb.h-62-\ndrivers/net/wireless/ath/ath10k/ahb.h:63:#else /* CONFIG_ATH10K_AHB */\ndrivers/net/wireless/ath/ath10k/ahb.h-64-\n--\ndrivers/net/wireless/ath/ath10k/ahb.h=70=static inline void ath10k_ahb_exit(void)\n--\ndrivers/net/wireless/ath/ath10k/ahb.h-73-\ndrivers/net/wireless/ath/ath10k/ahb.h:74:#endif /* CONFIG_ATH10K_AHB */\ndrivers/net/wireless/ath/ath10k/ahb.h-75-\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=15=void ath10k_bmi_start(struct ath10k *ar)\ndrivers/net/wireless/ath/ath10k/bmi.c-16-{\ndrivers/net/wireless/ath/ath10k/bmi.c:17:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi start\\n\");\ndrivers/net/wireless/ath/ath10k/bmi.c-18-\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=23=int ath10k_bmi_done(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-28-\ndrivers/net/wireless/ath/ath10k/bmi.c:29:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi done\\n\");\ndrivers/net/wireless/ath/ath10k/bmi.c-30-\ndrivers/net/wireless/ath/ath10k/bmi.c-31-\tif (ar-\u003ebmi.done_sent) {\ndrivers/net/wireless/ath/ath10k/bmi.c:32:\t\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi skipped\\n\");\ndrivers/net/wireless/ath/ath10k/bmi.c-33-\t\treturn 0;\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=48=int ath10k_bmi_get_target_info(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-56-\ndrivers/net/wireless/ath/ath10k/bmi.c:57:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi get target info\\n\");\ndrivers/net/wireless/ath/ath10k/bmi.c-58-\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=86=int ath10k_bmi_get_target_info_sdio(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-95-\ndrivers/net/wireless/ath/ath10k/bmi.c:96:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi get target info SDIO\\n\");\ndrivers/net/wireless/ath/ath10k/bmi.c-97-\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=155=int ath10k_bmi_read_memory(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-163-\ndrivers/net/wireless/ath/ath10k/bmi.c:164:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi read address 0x%x length %d\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-165-\t\t   address, length);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=197=int ath10k_bmi_write_soc_reg(struct ath10k *ar, u32 address, u32 reg_val)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-202-\ndrivers/net/wireless/ath/ath10k/bmi.c:203:\tath10k_dbg(ar, ATH10K_DBG_BMI,\ndrivers/net/wireless/ath/ath10k/bmi.c-204-\t\t   \"bmi write soc register 0x%08x val 0x%08x\\n\",\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=226=int ath10k_bmi_read_soc_reg(struct ath10k *ar, u32 address, u32 *reg_val)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-233-\ndrivers/net/wireless/ath/ath10k/bmi.c:234:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi read soc register 0x%08x\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-235-\t\t   address);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-253-\ndrivers/net/wireless/ath/ath10k/bmi.c:254:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi read soc register value 0x%08x\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-255-\t\t   *reg_val);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=260=int ath10k_bmi_write_memory(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-267-\ndrivers/net/wireless/ath/ath10k/bmi.c:268:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi write address 0x%x length %d\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-269-\t\t   address, length);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=306=int ath10k_bmi_execute(struct ath10k *ar, u32 address, u32 param, u32 *result)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-313-\ndrivers/net/wireless/ath/ath10k/bmi.c:314:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi execute address 0x%x param 0x%x\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-315-\t\t   address, param);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-339-\ndrivers/net/wireless/ath/ath10k/bmi.c:340:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi execute result 0x%x\\n\", *result);\ndrivers/net/wireless/ath/ath10k/bmi.c-341-\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=345=static int ath10k_bmi_lz_data_large(struct ath10k *ar, const void *buffer, u32 length)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-352-\ndrivers/net/wireless/ath/ath10k/bmi.c:353:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"large bmi lz data buffer 0x%p length %d\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-354-\t\t   buffer, length);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=392=int ath10k_bmi_lz_data(struct ath10k *ar, const void *buffer, u32 length)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-398-\ndrivers/net/wireless/ath/ath10k/bmi.c:399:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi lz data buffer 0x%p length %d\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-400-\t\t   buffer, length);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=430=int ath10k_bmi_lz_stream_start(struct ath10k *ar, u32 address)\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-435-\ndrivers/net/wireless/ath/ath10k/bmi.c:436:\tath10k_dbg(ar, ATH10K_DBG_BMI, \"bmi lz stream start address 0x%x\\n\",\ndrivers/net/wireless/ath/ath10k/bmi.c-437-\t\t   address);\n--\ndrivers/net/wireless/ath/ath10k/bmi.c=456=int ath10k_bmi_fast_download(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/bmi.c-463-\ndrivers/net/wireless/ath/ath10k/bmi.c:464:\tath10k_dbg(ar, ATH10K_DBG_BMI,\ndrivers/net/wireless/ath/ath10k/bmi.c-465-\t\t   \"bmi fast download address 0x%x buffer 0x%p length %d\\n\",\n--\ndrivers/net/wireless/ath/ath10k/bmi.h=59=enum bmi_cmd_id {\n--\ndrivers/net/wireless/ath/ath10k/bmi.h-88-#define BMI_PARAM_GET_EXT_BOARD_ID 0x40000\ndrivers/net/wireless/ath/ath10k/bmi.h:89:#define ATH10K_BMI_EXT_BOARD_ID_SUPPORT 0x40000\ndrivers/net/wireless/ath/ath10k/bmi.h-90-\ndrivers/net/wireless/ath/ath10k/bmi.h:91:#define ATH10K_BMI_BOARD_ID_FROM_OTP_MASK   0x7c00\ndrivers/net/wireless/ath/ath10k/bmi.h:92:#define ATH10K_BMI_BOARD_ID_FROM_OTP_LSB    10\ndrivers/net/wireless/ath/ath10k/bmi.h-93-\ndrivers/net/wireless/ath/ath10k/bmi.h:94:#define ATH10K_BMI_CHIP_ID_FROM_OTP_MASK    0x18000\ndrivers/net/wireless/ath/ath10k/bmi.h:95:#define ATH10K_BMI_CHIP_ID_FROM_OTP_LSB     15\ndrivers/net/wireless/ath/ath10k/bmi.h-96-\ndrivers/net/wireless/ath/ath10k/bmi.h:97:#define ATH10K_BMI_BOARD_ID_STATUS_MASK 0xff\ndrivers/net/wireless/ath/ath10k/bmi.h:98:#define ATH10K_BMI_EBOARD_ID_STATUS_MASK 0xff\ndrivers/net/wireless/ath/ath10k/bmi.h-99-\n--\ndrivers/net/wireless/ath/ath10k/ce.c=480=static int _ath10k_ce_send_nolock_64(struct ath10k_ce_pipe *ce_state,\n--\ndrivers/net/wireless/ath/ath10k/ce.c-497-\ndrivers/net/wireless/ath/ath10k/ce.c:498:\tif (test_bit(ATH10K_FLAG_CRASH_FLUSH, \u0026ar-\u003edev_flags))\ndrivers/net/wireless/ath/ath10k/ce.c-499-\t\treturn -ESHUTDOWN;\n--\ndrivers/net/wireless/ath/ath10k/ce.c=1357=static int ath10k_ce_init_src_ring(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/ce.c-1390-\ndrivers/net/wireless/ath/ath10k/ce.c:1391:\tath10k_dbg(ar, ATH10K_DBG_BOOT,\ndrivers/net/wireless/ath/ath10k/ce.c-1392-\t\t   \"boot init ce src ring id %d entries %d base_addr %p\\n\",\n--\ndrivers/net/wireless/ath/ath10k/ce.c=1398=static int ath10k_ce_init_dest_ring(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/ce.c-1428-\ndrivers/net/wireless/ath/ath10k/ce.c:1429:\tath10k_dbg(ar, ATH10K_DBG_BOOT,\ndrivers/net/wireless/ath/ath10k/ce.c-1430-\t\t   \"boot ce dest ring id %d entries %d base_addr %p\\n\",\n--\ndrivers/net/wireless/ath/ath10k/ce.c=1853=static void ath10k_ce_set_ops(struct ath10k *ar,\n--\ndrivers/net/wireless/ath/ath10k/ce.c-1856-\tswitch (ar-\u003ehw_rev) {\ndrivers/net/wireless/ath/ath10k/ce.c:1857:\tcase ATH10K_HW_WCN3990:\ndrivers/net/wireless/ath/ath10k/ce.c-1858-\t\tce_state-\u003eops = \u0026ce_64_ops;\n--\ndrivers/net/wireless/ath/ath10k/core.c=39=static bool fw_diag_log;\n--\ndrivers/net/wireless/ath/ath10k/core.c-41-/* frame mode values are mapped as per enum ath10k_hw_txrx_mode */\ndrivers/net/wireless/ath/ath10k/core.c:42:unsigned int ath10k_frame_mode = ATH10K_HW_TXRX_NATIVE_WIFI;\ndrivers/net/wireless/ath/ath10k/core.c-43-\ndrivers/net/wireless/ath/ath10k/core.c:44:unsigned long ath10k_coredump_mask = BIT(ATH10K_FW_CRASH_DUMP_REGISTERS) |\ndrivers/net/wireless/ath/ath10k/core.c:45:\t\t\t\t     BIT(ATH10K_FW_CRASH_DUMP_CE_DATA);\ndrivers/net/wireless/ath/ath10k/core.c-46-\n--\ndrivers/net/wireless/ath/ath10k/core.c=65=static const struct ath10k_hw_params ath10k_hw_params_list[] = {\n--\ndrivers/net/wireless/ath/ath10k/core.c-68-\t\t.dev_id = QCA988X_2_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:69:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-70-\t\t.name = \"qca988x hw2.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-73-\t\t.led_pin = 1,\ndrivers/net/wireless/ath/ath10k/core.c:74:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_ALL,\ndrivers/net/wireless/ath/ath10k/core.c-75-\t\t.otp_exe_param = 0,\n--\ndrivers/net/wireless/ath/ath10k/core.c-114-\t\t.led_pin = 0,\ndrivers/net/wireless/ath/ath10k/core.c:115:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_ALL,\ndrivers/net/wireless/ath/ath10k/core.c-116-\t\t.otp_exe_param = 0,\n--\ndrivers/net/wireless/ath/ath10k/core.c-151-\t\t.dev_id = QCA9887_1_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:152:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-153-\t\t.name = \"qca9887 hw1.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-156-\t\t.led_pin = 1,\ndrivers/net/wireless/ath/ath10k/core.c:157:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_ALL,\ndrivers/net/wireless/ath/ath10k/core.c-158-\t\t.otp_exe_param = 0,\n--\ndrivers/net/wireless/ath/ath10k/core.c-193-\t\t.dev_id = QCA6174_3_2_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:194:\t\t.bus = ATH10K_BUS_SDIO,\ndrivers/net/wireless/ath/ath10k/core.c-195-\t\t.name = \"qca6174 hw3.2 sdio\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-230-\t\t.dev_id = QCA6164_2_1_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:231:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-232-\t\t.name = \"qca6164 hw2.1\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-271-\t\t.dev_id = QCA6174_2_1_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:272:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-273-\t\t.name = \"qca6174 hw2.1\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-312-\t\t.dev_id = QCA6174_2_1_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:313:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-314-\t\t.name = \"qca6174 hw3.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-353-\t\t.dev_id = QCA6174_2_1_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:354:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-355-\t\t.name = \"qca6174 hw3.2\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-398-\t\t.dev_id = QCA99X0_2_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:399:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-400-\t\t.name = \"qca99x0 hw2.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-445-\t\t.dev_id = QCA9984_1_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:446:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-447-\t\t.name = \"qca9984/qca9994 hw1.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-450-\t\t.led_pin = 17,\ndrivers/net/wireless/ath/ath10k/core.c:451:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_EACH,\ndrivers/net/wireless/ath/ath10k/core.c-452-\t\t.otp_exe_param = 0x00000700,\n--\ndrivers/net/wireless/ath/ath10k/core.c-498-\t\t.dev_id = QCA9888_2_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:499:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-500-\t\t.name = \"qca9888 hw2.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-503-\t\t.led_pin = 17,\ndrivers/net/wireless/ath/ath10k/core.c:504:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_EACH,\ndrivers/net/wireless/ath/ath10k/core.c-505-\t\t.otp_exe_param = 0x00000700,\n--\ndrivers/net/wireless/ath/ath10k/core.c-549-\t\t.dev_id = QCA9377_1_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:550:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-551-\t\t.name = \"qca9377 hw1.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-590-\t\t.dev_id = QCA9377_1_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:591:\t\t.bus = ATH10K_BUS_PCI,\ndrivers/net/wireless/ath/ath10k/core.c-592-\t\t.name = \"qca9377 hw1.1\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-633-\t\t.dev_id = QCA9377_1_0_DEVICE_ID,\ndrivers/net/wireless/ath/ath10k/core.c:634:\t\t.bus = ATH10K_BUS_SDIO,\ndrivers/net/wireless/ath/ath10k/core.c-635-\t\t.name = \"qca9377 hw1.1 sdio\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-667-\t\t.dev_id = 0,\ndrivers/net/wireless/ath/ath10k/core.c:668:\t\t.bus = ATH10K_BUS_AHB,\ndrivers/net/wireless/ath/ath10k/core.c-669-\t\t.name = \"qca4019 hw1.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c-672-\t\t.led_pin = 0,\ndrivers/net/wireless/ath/ath10k/core.c:673:\t\t.cc_wraparound_type = ATH10K_HW_CC_WRAP_SHIFTED_EACH,\ndrivers/net/wireless/ath/ath10k/core.c-674-\t\t.otp_exe_param = 0x0010000,\n--\ndrivers/net/wireless/ath/ath10k/core.c-715-\t\t.dev_id = 0,\ndrivers/net/wireless/ath/ath10k/core.c:716:\t\t.bus = ATH10K_BUS_SNOC,\ndrivers/net/wireless/ath/ath10k/core.c-717-\t\t.name = \"wcn3990 hw1.0\",\n--\ndrivers/net/wireless/ath/ath10k/core.c=752=static const char *const ath10k_core_fw_feature_str[] = {\ndrivers/net/wireless/ath/ath10k/core.c:753:\t[ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX] = \"wmi-mgmt-rx\",\ndrivers/net/wireless/ath/ath10k/core.c:754:\t[ATH10K_FW_FEATURE_WMI_10X] = \"wmi-10.x\",\ndrivers/net/wireless/ath/ath10k/core.c:755:\t[ATH10K_FW_FEATURE_HAS_WMI_MGMT_TX] = \"has-wmi-mgmt-tx\",\ndrivers/net/wireless/ath/ath10k/core.c:756:\t[ATH10K_FW_FEATURE_NO_P2P] = \"no-p2p\",\ndrivers/net/wireless/ath/ath10k/core.c:757:\t[ATH10K_FW_FEATURE_WMI_10_2] = \"wmi-10.2\",\ndrivers/net/wireless/ath/ath10k/core.c:758:\t[ATH10K_FW_FEATURE_MULTI_VIF_PS_SUPPORT] = \"multi-vif-ps\",\ndrivers/net/wireless/ath/ath10k/core.c:759:\t[ATH10K_FW_FEATURE_WOWLAN_SUPPORT] = \"wowlan\",\ndrivers/net/wireless/ath/ath10k/core.c:760:\t[ATH10K_FW_FEATURE_IGNORE_OTP_RESULT] = \"ignore-otp\",\ndrivers/net/wireless/ath/ath10k/core.c:761:\t[ATH10K_FW_FEATURE_NO_NWIFI_DECAP_4ADDR_PADDING] = \"no-4addr-pad\",\ndrivers/net/wireless/ath/ath10k/core.c:762:\t[ATH10K_FW_FEATURE_SUPPORTS_SKIP_CLOCK_INIT] = \"skip-clock-init\",\ndrivers/net/wireless/ath/ath10k/core.c:763:\t[ATH10K_FW_FEATURE_RAW_MODE_SUPPORT] = \"raw-mode\",\ndrivers/net/wireless/ath/ath10k/core.c:764:\t[ATH10K_FW_FEATURE_SUPPORTS_ADAPTIVE_CCA] = \"adaptive-cca\",\ndrivers/net/wireless/ath/ath10k/core.c:765:\t[ATH10K_FW_FEATURE_MFP_SUPPORT] = \"mfp\",\n\n"
}

23/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 43520
							output: 40
							thoughts: 47
						

Thoughts:
Okay, let's dive into this. I need to make sure I understand where we're at with USB device support within the ath10k driver. My train of thought starts with, "Let's check `ath10k_hw_params_list`". The next logical step is to pinpoint its location in the code. I know it resides in `drivers/net/wireless/ath/ath10k/core.c`. This is the file I need to examine for a comprehensive understanding of hardware parameters. Now, my focus is explicitly on whether USB devices are explicitly enumerated or referenced within that list. I'll need to carefully scan the contents of `ath10k_hw_params_list` for anything related to USB configurations, IDs, or any other relevant USB-specific information. The goal is a clear picture: Is the support present? Is it explicitly defined? Or is it absent, pointing to another location as the source for USB device handling? I need to know precisely how the driver handles USB devices, and `ath10k_hw_params_list` seems like a good place to start.



24/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ATH10K_BUS_USB",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/core.c=2186=static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name,\n--\ndrivers/net/wireless/ath/ath10k/core.c-2190-\tcase ATH10K_BUS_SDIO:\ndrivers/net/wireless/ath/ath10k/core.c:2191:\tcase ATH10K_BUS_USB:\ndrivers/net/wireless/ath/ath10k/core.c-2192-\t\tscnprintf(fw_name, fw_name_len, \"%s-%s-%d.bin\",\n--\ndrivers/net/wireless/ath/ath10k/core.c=3353=static int ath10k_core_probe_fw(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/core.c-3375-\tcase ATH10K_BUS_AHB:\ndrivers/net/wireless/ath/ath10k/core.c:3376:\tcase ATH10K_BUS_USB:\ndrivers/net/wireless/ath/ath10k/core.c-3377-\t\tret = ath10k_bmi_get_target_info(ar, \u0026target_info);\n--\ndrivers/net/wireless/ath/ath10k/core.h=95=static inline const char *ath10k_bus_str(enum ath10k_bus bus)\n--\ndrivers/net/wireless/ath/ath10k/core.h-103-\t\treturn \"sdio\";\ndrivers/net/wireless/ath/ath10k/core.h:104:\tcase ATH10K_BUS_USB:\ndrivers/net/wireless/ath/ath10k/core.h-105-\t\treturn \"usb\";\n--\ndrivers/net/wireless/ath/ath10k/hw.h=14=enum ath10k_bus {\n--\ndrivers/net/wireless/ath/ath10k/hw.h-17-\tATH10K_BUS_SDIO,\ndrivers/net/wireless/ath/ath10k/hw.h:18:\tATH10K_BUS_USB,\ndrivers/net/wireless/ath/ath10k/hw.h-19-\tATH10K_BUS_SNOC,\n--\ndrivers/net/wireless/ath/ath10k/testmode.c=283=static int ath10k_tm_fetch_firmware(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/testmode.c-291-\tcase ATH10K_BUS_SDIO:\ndrivers/net/wireless/ath/ath10k/testmode.c:292:\tcase ATH10K_BUS_USB:\ndrivers/net/wireless/ath/ath10k/testmode.c-293-\t\tscnprintf(fw_name, sizeof(fw_name), \"%s-%s-%d.bin\",\n--\ndrivers/net/wireless/ath/ath10k/usb.c=992=static int ath10k_usb_probe(struct usb_interface *interface,\n--\ndrivers/net/wireless/ath/ath10k/usb.c-1009-\ndrivers/net/wireless/ath/ath10k/usb.c:1010:\tar = ath10k_core_create(sizeof(*ar_usb), \u0026dev-\u003edev, ATH10K_BUS_USB,\ndrivers/net/wireless/ath/ath10k/usb.c-1011-\t\t\t\thw_rev, \u0026ath10k_usb_hif_ops);\n"
}

25/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 44779
							output: 53
							thoughts: 38
						

Thoughts:
Okay, let's dive into this. I need to refresh my memory on how the `ath10k` driver handles register and memory writes. My immediate thought is to check the `debug.c` file. That's where I usually find the lower-level functions, like `ath10k_reg_value_write` and `ath10k_mem_value_write`. These are the functions that likely handle the actual interaction with the hardware registers and memory space. Understanding their implementation will give me a better grasp of the write operations and allow for debugging.



26/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "ath10k_reg_value_write|ath10k_mem_value_write",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/debug.c=683=static ssize_t ath10k_reg_value_read(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-713-\ndrivers/net/wireless/ath/ath10k/debug.c:714:static ssize_t ath10k_reg_value_write(struct file *file,\ndrivers/net/wireless/ath/ath10k/debug.c-715-\t\t\t\t      const char __user *user_buf,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=753=static const struct file_operations fops_reg_value = {\ndrivers/net/wireless/ath/ath10k/debug.c-754-\t.read = ath10k_reg_value_read,\ndrivers/net/wireless/ath/ath10k/debug.c:755:\t.write = ath10k_reg_value_write,\ndrivers/net/wireless/ath/ath10k/debug.c-756-\t.open = simple_open,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=761=static ssize_t ath10k_mem_value_read(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-812-\ndrivers/net/wireless/ath/ath10k/debug.c:813:static ssize_t ath10k_mem_value_write(struct file *file,\ndrivers/net/wireless/ath/ath10k/debug.c-814-\t\t\t\t      const char __user *user_buf,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=877=static const struct file_operations fops_mem_value = {\ndrivers/net/wireless/ath/ath10k/debug.c-878-\t.read = ath10k_mem_value_read,\ndrivers/net/wireless/ath/ath10k/debug.c:879:\t.write = ath10k_mem_value_write,\ndrivers/net/wireless/ath/ath10k/debug.c-880-\t.open = simple_open,\n"
}

27/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 45571
							output: 45
							thoughts: 69
						

Thoughts:
Here's my take on those thoughts:

**Analyzing Debugfs File Operations in the ath10k Driver**

Okay, so I'm looking at `fops_reg_value` and `fops_mem_value`. Those are debugfs file operations, and they seem to be registered within `ath10k_debug_create`, specifically in `debug.c`. That's a good starting point. I need to understand how these debugfs files are being handled, so I'll dive into `debug.c`. I'm going to look for the registration process itself and what configuration options or guards might control their presence. Understanding those guards is crucial because it tells me under what conditions these files are even exposed in debugfs. I want to figure out what triggers their inclusion or exclusion, and how their behavior is regulated. Let's see what `debug.c` has in store.



28/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "fops_reg_value|fops_mem_value",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/debug.c=714=static ssize_t ath10k_reg_value_write(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-752-\ndrivers/net/wireless/ath/ath10k/debug.c:753:static const struct file_operations fops_reg_value = {\ndrivers/net/wireless/ath/ath10k/debug.c-754-\t.read = ath10k_reg_value_read,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=813=static ssize_t ath10k_mem_value_write(struct file *file,\n--\ndrivers/net/wireless/ath/ath10k/debug.c-876-\ndrivers/net/wireless/ath/ath10k/debug.c:877:static const struct file_operations fops_mem_value = {\ndrivers/net/wireless/ath/ath10k/debug.c-878-\t.read = ath10k_mem_value_read,\n--\ndrivers/net/wireless/ath/ath10k/debug.c=2544=int ath10k_debug_register(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/debug.c-2576-\tdebugfs_create_file(\"reg_value\", 0600, ar-\u003edebug.debugfs_phy, ar,\ndrivers/net/wireless/ath/ath10k/debug.c:2577:\t\t\t    \u0026fops_reg_value);\ndrivers/net/wireless/ath/ath10k/debug.c-2578-\ndrivers/net/wireless/ath/ath10k/debug.c-2579-\tdebugfs_create_file(\"mem_value\", 0600, ar-\u003edebug.debugfs_phy, ar,\ndrivers/net/wireless/ath/ath10k/debug.c:2580:\t\t\t    \u0026fops_mem_value);\ndrivers/net/wireless/ath/ath10k/debug.c-2581-\n"
}

29/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 46428
							output: 35
							thoughts: 14
						

Thoughts:
Here's my take on the thought process, summarized as you requested:

**Digging into the `Makefile` for `debug.c`**

Okay, so I need to understand how `debug.c` is compiled. Let's start with the `Makefile`. I want to quickly identify the relevant rules or targets. Hopefully, there's a specific section for it, or at least a pattern that catches it. I'm looking for the compilation flags used, any dependencies it might have, and where the object file ends up. This is a critical step; I want to ensure the debugging symbols and optimizations are set up correctly. Any unusual compiler flags would be especially interesting to me, as I can get a glimpse into the build process, and, from experience, it is an important step when you are running into issues. Time to dig in and see what the build system is really doing with `debug.c`.



30/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "debug\\.o",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/Makefile=3=ath10k_core-y += mac.o \\\ndrivers/net/wireless/ath/ath10k/Makefile:4:\t\t debug.o \\\ndrivers/net/wireless/ath/ath10k/Makefile-5-\t\t core.o \\\n"
}

31/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 46757
							output: 40
							thoughts: 41
						

Thoughts:
Okay, here's my take on those thoughts, tailored for an expert audience:

**Investigating the Role of `debug.o` in the ath10k Driver**

Right, so `debug.o`.  It's included in `ath10k_core-y`.  That's the initial context. My immediate next step, as always, is to dig a little deeper.  I suspect that `debug.o` is likely involved in debugfs functionality.  So, before I jump to any conclusions, let me quickly examine `debug.c`. Specifically, I'm going to look for any instances of `#ifdef CONFIG_ATH10K_DEBUGFS`. This is the obvious starting point. If the build conditionally includes debug features based on that flag, it's a solid indicator of what the module is doing. Depending on what I find, the investigation will pivot.



32/2 2026/09/11 07:50 tool grepper
0m Args:
{
  "Expression": "CONFIG_ATH10K_DEBUGFS",
  "PathPrefix": "drivers/net/wireless/ath/ath10k"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath10k/core.h=1011=struct ath10k {\n--\ndrivers/net/wireless/ath/ath10k/core.h-1238-\ndrivers/net/wireless/ath/ath10k/core.h:1239:#ifdef CONFIG_ATH10K_DEBUGFS\ndrivers/net/wireless/ath/ath10k/core.h-1240-\tstruct ath10k_debug debug;\n--\ndrivers/net/wireless/ath/ath10k/debug.c=42=void ath10k_debug_print_hwfw_info(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/debug.c-57-\t\t    IS_ENABLED(CONFIG_ATH10K_DEBUG),\ndrivers/net/wireless/ath/ath10k/debug.c:58:\t\t    IS_ENABLED(CONFIG_ATH10K_DEBUGFS),\ndrivers/net/wireless/ath/ath10k/debug.c-59-\t\t    IS_ENABLED(CONFIG_ATH10K_TRACING),\n--\ndrivers/net/wireless/ath/ath10k/debug.c=148=EXPORT_SYMBOL(ath10k_warn);\ndrivers/net/wireless/ath/ath10k/debug.c-149-\ndrivers/net/wireless/ath/ath10k/debug.c:150:#ifdef CONFIG_ATH10K_DEBUGFS\ndrivers/net/wireless/ath/ath10k/debug.c-151-\n--\ndrivers/net/wireless/ath/ath10k/debug.c=2668=void ath10k_debug_unregister(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/debug.c-2672-\ndrivers/net/wireless/ath/ath10k/debug.c:2673:#endif /* CONFIG_ATH10K_DEBUGFS */\ndrivers/net/wireless/ath/ath10k/debug.c-2674-\n--\ndrivers/net/wireless/ath/ath10k/debug.h=87=void ath10k_print_driver_info(struct ath10k *ar);\ndrivers/net/wireless/ath/ath10k/debug.h-88-\ndrivers/net/wireless/ath/ath10k/debug.h:89:#ifdef CONFIG_ATH10K_DEBUGFS\ndrivers/net/wireless/ath/ath10k/debug.h-90-int ath10k_debug_start(struct ath10k *ar);\n--\ndrivers/net/wireless/ath/ath10k/debug.h=199=static inline int ath10k_debug_fw_stats_request(struct ath10k *ar)\n--\ndrivers/net/wireless/ath/ath10k/debug.h-209-\ndrivers/net/wireless/ath/ath10k/debug.h:210:#endif /* CONFIG_ATH10K_DEBUGFS */\ndrivers/net/wireless/ath/ath10k/debug.h-211-#ifdef CONFIG_MAC80211_DEBUGFS\n"
}

33/2 2026/09/11 07:50 llm patch-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 47820
							output: 183
							thoughts: 1323
						

Thoughts:
**Analysis of Proposed Fuzzing Targets in the ath10k Driver**

Okay, let's break this down. The patch focuses on improving the robustness of the ath10k wireless driver by adding crucial boundary and validation checks in a few key areas. I need to confirm whether these additions are significant enough to warrant fuzzing, and, if so, define the most effective targets.

First, I need to check the specific functions involved: `ath10k_reg_value_write`, `ath10k_mem_value_write`, and `ath10k_htt_rx_proc_rx_frag_ind_hl`. The patch explicitly modifies these, adding validation. The first two, `ath10k_reg_value_write` and `ath10k_mem_value_write`, are in `debug.c`. The changes in `debug.c` focus on validating register and memory addresses, while `ath10k_htt_rx_proc_rx_frag_ind_hl` in `htt_rx.c` implements checks for incoming skb data within the frame processing.

Now, reachability is the critical question. `ath10k_htt_rx_proc_rx_frag_ind_hl` is reachable during frame reception on an ath10k device, particularly via USB emulation. Think raw-gadget or a usb-fuzzer. `ath10k_reg_value_write` and `ath10k_mem_value_write` are accessible through the debugfs interfaces, which is useful for targeted testing.

The functions modified are indeed reachable via debugfs and USB, the additions provide validation and checks against buffer overflows and memory access violations. The boundary checks aim to prevent out-of-bounds reads/writes and malformed skb handling. This means a "Yes" for `WorthFuzzing`.

FocusSymbols need to be: `ath10k_reg_value_write`, `ath10k_mem_value_write`, and `ath10k_htt_rx_proc_rx_frag_ind_hl`.

`ath10k_htt_rx_proc_rx_frag_ind_hl` is static in `htt_rx.c` but its address is assigned to `htt_rx_ops_hl.htt_rx_proc_rx_frag_ind`, ensuring that the compiler cannot inline it away. `ath10k_reg_value_write` and `ath10k_mem_value_write` are also addressable.

I need to confirm if fuzzing those functions directly is sufficient, or if related functions also warrant inclusion, but I think the three target functions are sufficient and precise.

Next, I'll need to double-check the configuration requirements. The relevant Kconfig options are: `ATH10K`, `ATH10K_DEBUGFS`, and `ATH10K_USB`. The dependencies are as expected: `ATH10K_DEBUGFS` needs `ATH10K` and `DEBUG_FS`; `ATH10K_USB` needs `ATH10K` and `USB`. These are standard options for building and testing the ath10k driver.

I confirm that `ath10k_htt_rx_proc_rx_frag_ind_hl` is part of `ath10k_core-y` which depends on `CONFIG_ATH10K`, as seen in the Makefile.

In conclusion: the patch's validations directly address potential vulnerabilities and are reachable through fuzzable interfaces. The configs needed are `ATH10K`, `ATH10K_DEBUGFS` and `ATH10K_USB`. The functions `ath10k_reg_value_write`, `ath10k_mem_value_write`, and `ath10k_htt_rx_proc_rx_frag_ind_hl` are the right targets for fuzzing.



34/2 2026/09/11 07:50 tool set-results
0m Args:
{
  "EnableConfigs": [
    "ATH10K",
    "ATH10K_DEBUGFS",
    "ATH10K_USB"
  ],
  "FocusSymbols": [
    "ath10k_reg_value_write",
    "ath10k_mem_value_write",
    "ath10k_htt_rx_proc_rx_frag_ind_hl"
  ],
  "Reasoning": "The patch introduces bounds checks and packet length validation in the ath10k driver, specifically for debugfs register/memory write handlers and Host-based Low-latency (HL) RX fragment processing. These code paths are reachable in virtualized environments via debugfs and USB-emulated ath10k devices. Fuzzing is warranted to test edge cases in malformed frame handling and debugfs operations.",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": [
    "ATH10K",
    "ATH10K_DEBUGFS",
    "ATH10K_USB"
  ],
  "FocusSymbols": [
    "ath10k_reg_value_write",
    "ath10k_mem_value_write",
    "ath10k_htt_rx_proc_rx_frag_ind_hl"
  ],
  "Reasoning": "The patch introduces bounds checks and packet length validation in the ath10k driver, specifically for debugfs register/memory write handlers and Host-based Low-latency (HL) RX fragment processing. These code paths are reachable in virtualized environments via debugfs and USB-emulated ath10k devices. Fuzzing is warranted to test edge cases in malformed frame handling and debugfs operations.",
  "WorthFuzzing": true
}

35/1 2026/09/11 07:50 action If
0m Args:
{
  "WorthFuzzing": true
}

Results:
null

36/2 2026/09/11 07:50 agent kmsan-evaluator
0m Model:
core

Args:
null

Results:
{
  "KMSANReasoning": "The patch adds input validation and bounds checking in ath10k debugfs write handlers (ath10k_reg_value_write and ath10k_mem_value_write) and in HTT RX fragment processing (ath10k_htt_rx_proc_rx_frag_ind_hl). Specifically, it checks register/memory bounds against hardware parameters to prevent out-of-bounds writes, and validates skb buffer lengths before accessing packet headers and descriptors to prevent out-of-bounds reads.\n\nThese issues represent out-of-bounds memory access bugs that are covered by KASAN. The patch does not introduce or expose uninitialized variable usage, uninitialized struct padding, or kernel-to-user info-leaks. Therefore, dedicated KMSAN fuzzing is not required.",
  "NeedsKMSAN": false
}

Instruction:
You are an expert Linux kernel security engineer specializing in kernel memory
error detectors (KASAN and KMSAN). Your job is to review the provided patch series and
determine if the code changes justify spawning a dedicated KMSAN (KernelMemorySanitizer)
fuzzing session in addition to standard KASAN fuzzing.

CRITICAL DISTINCTION BETWEEN KASAN AND KMSAN:
- Standard KASAN kernel builds (upstream-apparmor-kasan.config) already enable
  a comprehensive suite of debugging tools and sanitizers, including KASAN
  (out-of-bounds accesses, use-after-free, double free, invalid free), LOCKDEP
  (locking bugs and deadlocks), UB-sanitizers, and memory corruption checks.
- KMSAN (KernelMemorySanitizer) detects reads of UNINITIALIZED memory (stack, heap,
  or page allocations) and kernel-to-user memory info-leaks.

Rule: THERE IS NO SENSE IN RUNNING A KMSAN SESSION IF A BUG CAN BE CAUGHT BY KASAN,
LOCKDEP, OR OTHER STANDARD BUG DETECTORS.
A dedicated KMSAN fuzzing session incurs significant resource costs. You must ONLY
set NeedsKMSAN=true if the code changes introduce or expose UNINITIALIZED MEMORY risks
that are detected ONLY by KMSAN.

Look holistically at the patch series and surrounding code. Even if no direct
uninitialized field accesses or new buffer allocations are added in the diff itself,
a patch may alter control flow, bounds checking, or data length calculations in ways
that change how the rest of the code operates on existing buffers (e.g. allowing
uninitialized stack/heap memory to be read, copied to user space, or used in control
flow). Do not hesitate to use your code access tools to inspect the surrounding code,
called functions, and callers.

Set NeedsKMSAN=true ONLY IF the patch introduces or modifies:
1. Kernel structures sent to user space (via copy_to_user, put_user, netlink skb
   attributes, ioctl output arguments, socket options, or BPF buffers) where fields
   or structure padding might not be fully initialized/zeroed.
2. Conditional logic or branching that depends on potentially uninitialized variables
   or struct fields.
3. Allocation or initialization of complex data structures where uninitialized fields
   could be read later in reachable code paths.
4. Bounds checks, lengths, or logic in a way that allows surrounding code to access
   uninitialized bytes of existing buffers.

Set NeedsKMSAN=false IF:
- The code changes primarily risk out-of-bounds access, array overflows, NULL pointer
  dereferences, locking deadlocks, or use-after-free bugs (these are already caught
  by KASAN, LOCKDEP, or standard bug detectors).
- All stack/heap structures touched or introduced by the patch are fully zeroed
  or initialized (e.g. using = {0}, memset, kzalloc) before being read or copied.
- The patch does not introduce any risk of uninitialized memory usage or info-leaks.

Use your code access tools to inspect the surrounding code if necessary, then provide
detailed KMSANReasoning contrasting KASAN vs KMSAN applicability for this patch.
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:
Target architecture: amd64

For your convenience, here is the diff of the changes:
commit 42abbcaf61cabbf1ee18115aa75e8ea8dcc6dc8b
Author: syz-cluster <triage@syzkaller.com>
Date:   Fri Sep 11 07:49:53 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/ath/ath10k/debug.c b/drivers/net/wireless/ath/ath10k/debug.c
index fb61e53ff4c34..50e0170211b81 100644
--- a/drivers/net/wireless/ath/ath10k/debug.c
+++ b/drivers/net/wireless/ath/ath10k/debug.c
@@ -729,6 +729,13 @@ static ssize_t ath10k_reg_value_write(struct file *file,
 
 	reg_addr = ar->debug.reg_addr;
 
+	/* FIX: Validate register address */
+	if (reg_addr > ar->hw_params.reg_size) {
+		ath10k_warn(ar, "Invalid register address 0x%08x\n", reg_addr);
+		ret = -EINVAL;
+		goto exit;
+	}
+
 	ret = kstrtou32_from_user(user_buf, count, 0, &reg_val);
 	if (ret)
 		goto exit;
@@ -819,6 +826,19 @@ static ssize_t ath10k_mem_value_write(struct file *file,
 
 	mutex_lock(&ar->conf_mutex);
 
+	/* FIX: Validate address against memory size */
+	if (*ppos > ar->hw_params.mem_size) {
+		ath10k_warn(ar, "Invalid address 0x%08x for mem_value\n", (u32)*ppos);
+		return -EINVAL;
+	}
+
+	/* FIX: Validate size against remaining memory */
+	if (count > ar->hw_params.mem_size - *ppos) {
+		ath10k_warn(ar, "Invalid size %zu for mem_value at 0x%08x\n",
+			    count, (u32)*ppos);
+		return -EINVAL;
+	}
+
 	buf = vmalloc(count);
 	if (!buf) {
 		ret = -ENOMEM;
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index ab2d373b4750d..4fabb92647d9f 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -2775,6 +2775,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 	struct htt_resp *resp;
 	size_t tot_hdr_len;
 
+
+	/* FIX: Validate skb length before skb_pull */
+	if (skb->len < HTT_RX_FRAG_IND_INFO0_HEADER_LEN) {
+		ath10k_warn(ar, "Invalid skb len %d for RX_FRAG_IND\n", skb->len);
+		return false;
+	}
+
 	resp = (struct htt_resp *)(skb->data + HTT_RX_FRAG_IND_INFO0_HEADER_LEN);
 	skb_pull(skb, HTT_RX_FRAG_IND_INFO0_HEADER_LEN);
 	skb_trim(skb, skb->len - FCS_LEN);
@@ -2792,6 +2799,13 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 	num_mpdu_ranges = MS(__le32_to_cpu(rx_hl->hdr.info1),
 			     HTT_RX_INDICATION_INFO1_NUM_MPDU_RANGES);
 
+	/* FIX: Validate num_mpdu_ranges */
+	if (num_mpdu_ranges > 1) {
+		ath10k_warn(ar, "Invalid num_mpdu_ranges %d\n", num_mpdu_ranges);
+		goto err;
+	}
+
+
 	tot_hdr_len = sizeof(struct htt_resp_hdr) +
 		      sizeof(rx_hl->hdr) +
 		      sizeof(rx_hl->ppdu) +
@@ -2799,10 +2813,26 @@ static bool ath10k_htt_rx_proc_rx_frag_ind_hl(struct ath10k_htt *htt,
 		      sizeof(rx_hl->fw_desc) +
 		      sizeof(struct htt_rx_indication_mpdu_range) * num_mpdu_ranges;
 
+	/* FIX: Validate tot_hdr_len against skb length */
+	if (tot_hdr_len > skb->len) {
+		ath10k_warn(ar, "Invalid tot_hdr_len %zu > skb->len %u\n",
+			    tot_hdr_len, skb->len);
+		goto err;
+	}
+
+
 	tid =  MS(rx_hl->hdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);
 	rx_desc = (struct htt_hl_rx_desc *)(skb->data + tot_hdr_len);
 	rx_desc_info = __le32_to_cpu(rx_desc->info);
 
+
+	/* FIX: Validate fw_desc.len against remaining skb length */
+	if (rx_hl->fw_desc.len > skb->len - tot_hdr_len) {
+		ath10k_warn(ar, "Invalid fw_desc.len %u > remaining skb len\n",
+			    rx_hl->fw_desc.len);
+		goto err;
+	}
+
 	hdr = (struct ieee80211_hdr *)((u8 *)rx_desc + rx_hl->fw_desc.len);
 
 	if (is_multicast_ether_addr(hdr->addr1)) {

37/3 2026/09/11 07:50 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 3441
							output: 44
							thoughts: 335
						

Thoughts:
**My Initial Assessment of the Patch**

Okay, so this patch is touching two key areas within the ath10k wireless driver: the debug interface (`debug.c`) and the HTTP receive path (`htt_rx.c`). My initial thought is that this is likely focused on improving the robustness of the driver, specifically related to potential out-of-bounds access or invalid data. This is what I'm seeing as I review the patch.

In `debug.c`, the changes within `ath10k_reg_value_write` and `ath10k_mem_value_write` jump out immediately. They're adding crucial validation checks. Specifically, they're verifying register and memory addresses against the hardware parameter limitations defined by `ar->hw_params.reg_size` and `ar->hw_params.mem_size` respectively. This is good; it prevents writing to arbitrary memory locations, which is a common source of bugs and security vulnerabilities. I'd expect to see this kind of protection when interacting with hardware.

However, the `ath10k_mem_value_write` function raises a red flag. I see it has a `mutex_lock(&ar->conf_mutex);` before returning, and it returns -EINVAL if any of the checks fail. My gut reaction is: hold on, is the mutex correctly unlocked in all error paths? If the function returns early due to an invalid address or size, is the mutex being released? This smells like a potential locking bug, or at least a resource leak, which *could* have implications, though, possibly not related to KMSAN directly. But it's worth checking this out more closely. This needs to be thoroughly scrutinized for a missing `mutex_unlock` call in the error paths. I'll need to go back and examine the surrounding code to ensure that the mutex is correctly handled.

Moving on to `htt_rx.c`, the patch adds several bounds checks in `ath10k_htt_rx_proc_rx_frag_ind_hl`. It's checking things like the SKB length against expected header lengths and fragment descriptors. Specifically, bounds checking on:

*   `skb->len < HTT_RX_FRAG_IND_INFO0_HEADER_LEN`
*   `num_mpdu_ranges > 1`
*   `tot_hdr_len > skb->len`
*   `rx_hl->fw_desc.len > skb->len - tot_hdr_len`

This is all good defensive coding. These checks prevent the driver from reading beyond the bounds of the received SKB (Socket Buffer), protecting against potentially corrupted or malicious network packets. This is textbook for securing the RX path, especially considering its potentially high-bandwidth nature.

Okay, let's get into the details of the code and confirm my suspicion about the locking issue and verify that the bounds checks are sufficient. I'm going to use either `read-file` or `grepper` to examine the relevant code in `debug.c` and `htt_rx.c`. I need to nail down that locking bug immediately and determine if there are other potential issues lurking.



38/3 2026/09/11 07:50 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath10k/debug.c",
  "FirstLine": 725,
  "LineCount": 40
}

Results:
{
  "Contents": " 725:\t\t    ar-\u003estate != ATH10K_STATE_UTF) {\n 726:\t\t\tret = -ENETDOWN;\n 727:\t\t\tgoto exit;\n 728:\t\t}\n 729:\t\n 730:\t\treg_addr = ar-\u003edebug.reg_addr;\n 731:\t\n 732:\t\t/* FIX: Validate register address */\n 733:\t\tif (reg_addr \u003e ar-\u003ehw_params.reg_size) {\n 734:\t\t\tath10k_warn(ar, \"Invalid register address 0x%08x\\n\", reg_addr);\n 735:\t\t\tret = -EINVAL;\n 736:\t\t\tgoto exit;\n 737:\t\t}\n 738:\t\n 739:\t\tret = kstrtou32_from_user(user_buf, count, 0, \u0026reg_val);\n 740:\t\tif (ret)\n 741:\t\t\tgoto exit;\n 742:\t\n 743:\t\tath10k_hif_write32(ar, reg_addr, reg_val);\n 744:\t\n 745:\t\tret = count;\n 746:\t\n 747:\texit:\n 748:\t\tmutex_unlock(\u0026ar-\u003econf_mutex);\n 749:\t\n 750:\t\treturn ret;\n 751:\t}\n 752:\t\n 753:\tstatic const struct file_operations fops_reg_value = {\n 754:\t\t.read = ath10k_reg_value_read,\n 755:\t\t.write = ath10k_reg_value_write,\n 756:\t\t.open = simple_open,\n 757:\t\t.owner = THIS_MODULE,\n 758:\t\t.llseek = default_llseek,\n 759:\t};\n 760:\t\n 761:\tstatic ssize_t ath10k_mem_value_read(struct file *file,\n 762:\t\t\t\t\t     char __user *user_buf,\n 763:\t\t\t\t\t     size_t count, loff_t *ppos)\n 764:\t{\n"
}

39/3 2026/09/11 07:50 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 5074
							output: 44
							thoughts: 22
						

Thoughts:
Here's my summary, as if I were thinking these thoughts:

**Analyzing ath10k_mem_value_write in debug.c**

Okay, time to dive in. Let's see what's going on with `ath10k_mem_value_write` function specifically within `debug.c`. I'm going to want to understand its role in memory writes within the ath10k driver. Knowing where this is located in debug.c implies it's either for specific debugging purposes, or maybe there is a significant amount of debug information within this portion of the code. Let's start by understanding how it's called, what arguments it takes, and where the memory write is happening. From there, I'll identify any potential bottlenecks, race conditions, or anything else that might be of interest to us within the ath10k driver.



40/3 2026/09/11 07:50 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath10k/debug.c",
  "FirstLine": 815,
  "LineCount": 60
}

Results:
{
  "Contents": " 815:\t\t\t\t\t      size_t count, loff_t *ppos)\n 816:\t{\n 817:\t\tstruct ath10k *ar = file-\u003eprivate_data;\n 818:\t\tu8 *buf;\n 819:\t\tint ret;\n 820:\t\n 821:\t\tif (*ppos \u003c 0)\n 822:\t\t\treturn -EINVAL;\n 823:\t\n 824:\t\tif (!count)\n 825:\t\t\treturn 0;\n 826:\t\n 827:\t\tmutex_lock(\u0026ar-\u003econf_mutex);\n 828:\t\n 829:\t\t/* FIX: Validate address against memory size */\n 830:\t\tif (*ppos \u003e ar-\u003ehw_params.mem_size) {\n 831:\t\t\tath10k_warn(ar, \"Invalid address 0x%08x for mem_value\\n\", (u32)*ppos);\n 832:\t\t\treturn -EINVAL;\n 833:\t\t}\n 834:\t\n 835:\t\t/* FIX: Validate size against remaining memory */\n 836:\t\tif (count \u003e ar-\u003ehw_params.mem_size - *ppos) {\n 837:\t\t\tath10k_warn(ar, \"Invalid size %zu for mem_value at 0x%08x\\n\",\n 838:\t\t\t\t    count, (u32)*ppos);\n 839:\t\t\treturn -EINVAL;\n 840:\t\t}\n 841:\t\n 842:\t\tbuf = vmalloc(count);\n 843:\t\tif (!buf) {\n 844:\t\t\tret = -ENOMEM;\n 845:\t\t\tgoto exit;\n 846:\t\t}\n 847:\t\n 848:\t\tif (ar-\u003estate != ATH10K_STATE_ON \u0026\u0026\n 849:\t\t    ar-\u003estate != ATH10K_STATE_UTF) {\n 850:\t\t\tret = -ENETDOWN;\n 851:\t\t\tgoto exit;\n 852:\t\t}\n 853:\t\n 854:\t\tret = copy_from_user(buf, user_buf, count);\n 855:\t\tif (ret) {\n 856:\t\t\tret = -EFAULT;\n 857:\t\t\tgoto exit;\n 858:\t\t}\n 859:\t\n 860:\t\tret = ath10k_hif_diag_write(ar, *ppos, buf, count);\n 861:\t\tif (ret) {\n 862:\t\t\tath10k_warn(ar, \"failed to write address 0x%08x via diagnose window from debugfs: %d\\n\",\n 863:\t\t\t\t    (u32)(*ppos), ret);\n 864:\t\t\tgoto exit;\n 865:\t\t}\n 866:\t\n 867:\t\t*ppos += count;\n 868:\t\tret = count;\n 869:\t\n 870:\texit:\n 871:\t\tvfree(buf);\n 872:\t\tmutex_unlock(\u0026ar-\u003econf_mutex);\n 873:\t\n 874:\t\treturn ret;\n"
}

41/3 2026/09/11 07:50 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 6168
							output: 47
							thoughts: 19
						

Thoughts:
Here's my summary, as though I'm thinking through it:

**Digging into the `htt_rx.c` Code**

Okay, time to get my hands dirty. I'm going to start digging into this issue by taking a look at `htt_rx.c`. I have a feeling the problem is related to the receive path, so I'm honing in on that specific file. Let's see... I'm going to jump straight to around line 2775. That feels like a good spot to start poking around based on the symptoms. Hopefully, something will jump out at me pretty quickly. Let's see what we find there.



42/3 2026/09/11 07:50 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath10k/htt_rx.c",
  "FirstLine": 2770,
  "LineCount": 80
}

Results:
{
  "Contents": "2770:\t\tu16 peer_id, sc, hdr_space;\n2771:\t\tunion htt_rx_pn_t *last_pn;\n2772:\t\tstruct ieee80211_hdr *hdr;\n2773:\t\tint ret, num_mpdu_ranges;\n2774:\t\tstruct ath10k_peer *peer;\n2775:\t\tstruct htt_resp *resp;\n2776:\t\tsize_t tot_hdr_len;\n2777:\t\n2778:\t\n2779:\t\t/* FIX: Validate skb length before skb_pull */\n2780:\t\tif (skb-\u003elen \u003c HTT_RX_FRAG_IND_INFO0_HEADER_LEN) {\n2781:\t\t\tath10k_warn(ar, \"Invalid skb len %d for RX_FRAG_IND\\n\", skb-\u003elen);\n2782:\t\t\treturn false;\n2783:\t\t}\n2784:\t\n2785:\t\tresp = (struct htt_resp *)(skb-\u003edata + HTT_RX_FRAG_IND_INFO0_HEADER_LEN);\n2786:\t\tskb_pull(skb, HTT_RX_FRAG_IND_INFO0_HEADER_LEN);\n2787:\t\tskb_trim(skb, skb-\u003elen - FCS_LEN);\n2788:\t\n2789:\t\tpeer_id = __le16_to_cpu(rx-\u003epeer_id);\n2790:\t\trx_hl = (struct htt_rx_indication_hl *)(\u0026resp-\u003erx_ind_hl);\n2791:\t\n2792:\t\tspin_lock_bh(\u0026ar-\u003edata_lock);\n2793:\t\tpeer = ath10k_peer_find_by_id(ar, peer_id);\n2794:\t\tif (!peer) {\n2795:\t\t\tath10k_dbg(ar, ATH10K_DBG_HTT, \"invalid peer: %u\\n\", peer_id);\n2796:\t\t\tgoto err;\n2797:\t\t}\n2798:\t\n2799:\t\tnum_mpdu_ranges = MS(__le32_to_cpu(rx_hl-\u003ehdr.info1),\n2800:\t\t\t\t     HTT_RX_INDICATION_INFO1_NUM_MPDU_RANGES);\n2801:\t\n2802:\t\t/* FIX: Validate num_mpdu_ranges */\n2803:\t\tif (num_mpdu_ranges \u003e 1) {\n2804:\t\t\tath10k_warn(ar, \"Invalid num_mpdu_ranges %d\\n\", num_mpdu_ranges);\n2805:\t\t\tgoto err;\n2806:\t\t}\n2807:\t\n2808:\t\n2809:\t\ttot_hdr_len = sizeof(struct htt_resp_hdr) +\n2810:\t\t\t      sizeof(rx_hl-\u003ehdr) +\n2811:\t\t\t      sizeof(rx_hl-\u003eppdu) +\n2812:\t\t\t      sizeof(rx_hl-\u003eprefix) +\n2813:\t\t\t      sizeof(rx_hl-\u003efw_desc) +\n2814:\t\t\t      sizeof(struct htt_rx_indication_mpdu_range) * num_mpdu_ranges;\n2815:\t\n2816:\t\t/* FIX: Validate tot_hdr_len against skb length */\n2817:\t\tif (tot_hdr_len \u003e skb-\u003elen) {\n2818:\t\t\tath10k_warn(ar, \"Invalid tot_hdr_len %zu \u003e skb-\u003elen %u\\n\",\n2819:\t\t\t\t    tot_hdr_len, skb-\u003elen);\n2820:\t\t\tgoto err;\n2821:\t\t}\n2822:\t\n2823:\t\n2824:\t\ttid =  MS(rx_hl-\u003ehdr.info0, HTT_RX_INDICATION_INFO0_EXT_TID);\n2825:\t\trx_desc = (struct htt_hl_rx_desc *)(skb-\u003edata + tot_hdr_len);\n2826:\t\trx_desc_info = __le32_to_cpu(rx_desc-\u003einfo);\n2827:\t\n2828:\t\n2829:\t\t/* FIX: Validate fw_desc.len against remaining skb length */\n2830:\t\tif (rx_hl-\u003efw_desc.len \u003e skb-\u003elen - tot_hdr_len) {\n2831:\t\t\tath10k_warn(ar, \"Invalid fw_desc.len %u \u003e remaining skb len\\n\",\n2832:\t\t\t\t    rx_hl-\u003efw_desc.len);\n2833:\t\t\tgoto err;\n2834:\t\t}\n2835:\t\n2836:\t\thdr = (struct ieee80211_hdr *)((u8 *)rx_desc + rx_hl-\u003efw_desc.len);\n2837:\t\n2838:\t\tif (is_multicast_ether_addr(hdr-\u003eaddr1)) {\n2839:\t\t\t/* Discard the fragment with multicast DA */\n2840:\t\t\tgoto err;\n2841:\t\t}\n2842:\t\n2843:\t\tif (!MS(rx_desc_info, HTT_RX_DESC_HL_INFO_ENCRYPTED)) {\n2844:\t\t\tspin_unlock_bh(\u0026ar-\u003edata_lock);\n2845:\t\t\treturn ath10k_htt_rx_proc_rx_ind_hl(htt, \u0026resp-\u003erx_ind_hl, skb,\n2846:\t\t\t\t\t\t\t    HTT_RX_NON_PN_CHECK,\n2847:\t\t\t\t\t\t\t    HTT_RX_NON_TKIP_MIC);\n2848:\t\t}\n2849:\t\n"
}

43/3 2026/09/11 07:50 llm kmsan-evaluator
0m Model:
gemini-3.7-flash

Args:
null

Results:
null

Tokens:
							input: 7854
							output: 193
							thoughts: 618
						

Thoughts:
**Analyzing the Patch for KMSAN Applicability**

Okay, let's break this down systematically. My initial impression is that this patch is primarily focused on security hardening rather than addressing uninitialized memory issues. We're looking at bounds checks, which is more KASAN's domain than KMSAN's.

First, I examined the code changes. In `drivers/net/wireless/ath/ath10k/debug.c`, we see bounds checks added in `ath10k_reg_value_write` and `ath10k_mem_value_write`. These checks are crucial to prevent out-of-bounds writes during hardware diagnostics and register manipulation. They are essentially input validation. Then, in `drivers/net/wireless/ath/ath10k/htt_rx.c`, specifically in `ath10k_htt_rx_proc_rx_frag_ind_hl`, a series of checks is implemented against `skb` lengths and header values. This is designed to prevent out-of-bounds reads when parsing network packet headers from the firmware. These checks are all designed to validate the bounds of the input, making them ideal for KASAN coverage.

Now, let's consider the KMSAN applicability. Are we dealing with any uninitialized memory reads or information leaks? No, based on the description, the patch *adds* bounds checks, so it's not introducing or exposing those issues. Is any kernel structure being copied to userspace without being zeroed? No. Are there any uninitialized stack or heap variables being created or accessed? Again, no.

The key point here is that KASAN and standard sanitizers already cover the out-of-bounds reads and writes. These are the kinds of issues that the patch is directly addressing with the added bounds checks. Since the patch focuses on input validation and memory access bounds, it is an appropriate fix using KASAN.

Therefore, given the nature of the added bounds checks, the absence of uninitialized memory issues, and the existing KASAN coverage, I am comfortable concluding that dedicated KMSAN fuzzing isn't justified here. The patch addresses memory safety vulnerabilities that are handled effectively by KASAN. It's a clear case where KASAN's detection mechanisms are a better fit. So, let's flag `NeedsKMSAN` as false and give a good `KMSANReasoning` statement.



44/3 2026/09/11 07:51 tool set-results
0m Args:
{
  "KMSANReasoning": "The patch adds input validation and bounds checking in ath10k debugfs write handlers (ath10k_reg_value_write and ath10k_mem_value_write) and in HTT RX fragment processing (ath10k_htt_rx_proc_rx_frag_ind_hl). Specifically, it checks register/memory bounds against hardware parameters to prevent out-of-bounds writes, and validates skb buffer lengths before accessing packet headers and descriptors to prevent out-of-bounds reads.\n\nThese issues represent out-of-bounds memory access bugs that are covered by KASAN. The patch does not introduce or expose uninitialized variable usage, uninitialized struct padding, or kernel-to-user info-leaks. Therefore, dedicated KMSAN fuzzing is not required.",
  "NeedsKMSAN": false
}

Results:
{
  "KMSANReasoning": "The patch adds input validation and bounds checking in ath10k debugfs write handlers (ath10k_reg_value_write and ath10k_mem_value_write) and in HTT RX fragment processing (ath10k_htt_rx_proc_rx_frag_ind_hl). Specifically, it checks register/memory bounds against hardware parameters to prevent out-of-bounds writes, and validates skb buffer lengths before accessing packet headers and descriptors to prevent out-of-bounds reads.\n\nThese issues represent out-of-bounds memory access bugs that are covered by KASAN. The patch does not introduce or expose uninitialized variable usage, uninitialized struct padding, or kernel-to-user info-leaks. Therefore, dedicated KMSAN fuzzing is not required.",
  "NeedsKMSAN": false
}

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)