AI Trajectory


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

Results:
{
  "EnableConfigs": [
    "ATH6KL",
    "ATH6KL_USB"
  ],
  "FocusSymbols": [
    "ath6kl_wmi_scan_complete_rx",
    "ath6kl_wmi_addba_req_event_rx",
    "ath6kl_wmi_delba_req_event_rx"
  ],
  "Reasoning": "The patch adds bounds checking to WMI event handlers in the ath6kl driver. These handlers process data received from the hardware. Since the driver supports USB, it can be fuzzed via USB gadget emulation.",
  "WorthFuzzing": true
}

1/1 2026/07/12 10:09 action read-patch-diff
0m Args:
null

Results:
{
  "PatchDiff": "commit ffd6d1f2f2e54ac6cf49a8599767296ec88a53b5\nAuthor: syz-cluster \u003ctriage@syzkaller.com\u003e\nDate:   Sun Jul 12 10:09:37 2026 +0000\n\n    syz-cluster: applied patch under review\n\ndiff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c\nindex 72611a2ceb9d8e..08030d88c7d31d 100644\n--- a/drivers/net/wireless/ath/ath6kl/wmi.c\n+++ b/drivers/net/wireless/ath/ath6kl/wmi.c\n@@ -1276,6 +1276,9 @@ static int ath6kl_wmi_scan_complete_rx(struct wmi *wmi, u8 *datap, int len,\n {\n \tstruct wmi_scan_complete_event *ev;\n \n+\tif (len \u003c sizeof(*ev))\n+\t\treturn -EINVAL;\n+\n \tev = (struct wmi_scan_complete_event *) datap;\n \n \tath6kl_scan_complete_evt(vif, a_sle32_to_cpu(ev-\u003estatus));\n@@ -3352,7 +3355,12 @@ static int ath6kl_wmi_get_pmkid_list_event_rx(struct wmi *wmi, u8 *datap,\n static int ath6kl_wmi_addba_req_event_rx(struct wmi *wmi, u8 *datap, int len,\n \t\t\t\t\t struct ath6kl_vif *vif)\n {\n-\tstruct wmi_addba_req_event *cmd = (struct wmi_addba_req_event *) datap;\n+\tstruct wmi_addba_req_event *cmd;\n+\n+\tif (len \u003c sizeof(*cmd))\n+\t\treturn -EINVAL;\n+\n+\tcmd = (struct wmi_addba_req_event *) datap;\n \n \taggr_recv_addba_req_evt(vif, cmd-\u003etid,\n \t\t\t\tle16_to_cpu(cmd-\u003est_seq_no), cmd-\u003ewin_sz);\n@@ -3363,7 +3371,12 @@ static int ath6kl_wmi_addba_req_event_rx(struct wmi *wmi, u8 *datap, int len,\n static int ath6kl_wmi_delba_req_event_rx(struct wmi *wmi, u8 *datap, int len,\n \t\t\t\t\t struct ath6kl_vif *vif)\n {\n-\tstruct wmi_delba_event *cmd = (struct wmi_delba_event *) datap;\n+\tstruct wmi_delba_event *cmd;\n+\n+\tif (len \u003c sizeof(*cmd))\n+\t\treturn -EINVAL;\n+\n+\tcmd = (struct wmi_delba_event *) datap;\n \n \taggr_recv_delba_req_evt(vif, cmd-\u003etid);\n \n"
}

2/1 2026/07/12 10:09 agent patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
{
  "EnableConfigs": [
    "ATH6KL",
    "ATH6KL_USB"
  ],
  "FocusSymbols": [
    "ath6kl_wmi_scan_complete_rx",
    "ath6kl_wmi_addba_req_event_rx",
    "ath6kl_wmi_delba_req_event_rx"
  ],
  "Reasoning": "The patch adds bounds checking to WMI event handlers in the ath6kl driver. These handlers process data received from the hardware. Since the driver supports USB, it can be fuzzed via USB gadget emulation.",
  "WorthFuzzing": true
}

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

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

Return WorthFuzzing=false if the patch only contains:
- Modifications to Documentation/, Kconfig files, or code comments.
- Purely decorative changes, such as logging (e.g., pr_err, printk) or tracepoints.
- Changes to numeric constants or macros that do not functionally alter execution flow.
- Code paths that are impossible to reach in virtualized environments like GCE or QEMU,
even when utilizing software-emulated hardware (e.g., usb gadget, mac80211_hwsim).

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

When returning WorthFuzzing=true, you MUST ALSO:
1. Extract any specific kernel functions that should be heavily fuzzed into FocusSymbols.
   Avoid listing generic hot-path functions to prevent skewed test distributions.
2. Identify any specific CONFIG_ options required to properly test this new/modified feature.
   Go and look into the Kconfig files and check for ifdefs around the code, do not make assumptions.
   Do not list too generic configs (we already have them enabled). Only list those that
   specifically cover the modified code. List them in the EnableConfigs output array,
   and DO NOT add a 'CONFIG_' prefix (e.g., return "NET_IPV4" instead of "CONFIG_NET_IPV4").
Prefer calling several tools at the same time to save round-trips.


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

Prompt:
For your convenience, here is the diff of the changes:
commit ffd6d1f2f2e54ac6cf49a8599767296ec88a53b5
Author: syz-cluster <triage@syzkaller.com>
Date:   Sun Jul 12 10:09:37 2026 +0000

    syz-cluster: applied patch under review

diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c
index 72611a2ceb9d8e..08030d88c7d31d 100644
--- a/drivers/net/wireless/ath/ath6kl/wmi.c
+++ b/drivers/net/wireless/ath/ath6kl/wmi.c
@@ -1276,6 +1276,9 @@ static int ath6kl_wmi_scan_complete_rx(struct wmi *wmi, u8 *datap, int len,
 {
 	struct wmi_scan_complete_event *ev;
 
+	if (len < sizeof(*ev))
+		return -EINVAL;
+
 	ev = (struct wmi_scan_complete_event *) datap;
 
 	ath6kl_scan_complete_evt(vif, a_sle32_to_cpu(ev->status));
@@ -3352,7 +3355,12 @@ static int ath6kl_wmi_get_pmkid_list_event_rx(struct wmi *wmi, u8 *datap,
 static int ath6kl_wmi_addba_req_event_rx(struct wmi *wmi, u8 *datap, int len,
 					 struct ath6kl_vif *vif)
 {
-	struct wmi_addba_req_event *cmd = (struct wmi_addba_req_event *) datap;
+	struct wmi_addba_req_event *cmd;
+
+	if (len < sizeof(*cmd))
+		return -EINVAL;
+
+	cmd = (struct wmi_addba_req_event *) datap;
 
 	aggr_recv_addba_req_evt(vif, cmd->tid,
 				le16_to_cpu(cmd->st_seq_no), cmd->win_sz);
@@ -3363,7 +3371,12 @@ static int ath6kl_wmi_addba_req_event_rx(struct wmi *wmi, u8 *datap, int len,
 static int ath6kl_wmi_delba_req_event_rx(struct wmi *wmi, u8 *datap, int len,
 					 struct ath6kl_vif *vif)
 {
-	struct wmi_delba_event *cmd = (struct wmi_delba_event *) datap;
+	struct wmi_delba_event *cmd;
+
+	if (len < sizeof(*cmd))
+		return -EINVAL;
+
+	cmd = (struct wmi_delba_event *) datap;
 
 	aggr_recv_delba_req_evt(vif, cmd->tid);
 

3/2 2026/07/12 10:09 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 2322
							output: 19
							thoughts: 267
						

Thoughts:
**Reaching This Code in Virtualized Environments**

Okay, so I've got this patch – some bounds checking – in `drivers/net/wireless/ath/ath6kl/wmi.c`. It touches three functions: `ath6kl_wmi_scan_complete_rx`, `ath6kl_wmi_addba_req_event_rx`, and `ath6kl_wmi_delba_req_event_rx`. The immediate question is, can I even *trigger* this code in a typical virtualized setup? `ath6kl` is an Atheros wireless driver for AR6003 and AR6004, so usually, these hardware-specific drivers are inaccessible in something like GCE or standard QEMU. Unless, there's a hardware emulation. While *mac80211_hwsim* is around, it's specific to mac80211, and `ath6kl` is a fullmac driver. However, there might be a connection via SDIO or USB. Wait a minute! *ath6kl* *does* support SDIO and USB! That changes things. We can fuzz USB drivers with a dummy HCD or raw USB gadget. Ah, and syzkaller does support fuzzing USB drivers via vhci (USB gadget). So, let's just confirm `ath6kl` has a USB driver path. That's the next step.



4/2 2026/07/12 10:09 tool grepper
0m Args:
{
  "Expression": "ath6kl_usb"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath6kl/Kconfig=25=config ATH6KL_USB\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-32-\t  USB. If you choose to build it as a module, it will be\ndrivers/net/wireless/ath/ath6kl/Kconfig:33:\t  called ath6kl_usb.\ndrivers/net/wireless/ath/ath6kl/Kconfig-34-\n--\ndrivers/net/wireless/ath/ath6kl/Makefile=43=ath6kl_sdio-y += sdio.o\ndrivers/net/wireless/ath/ath6kl/Makefile-44-\ndrivers/net/wireless/ath/ath6kl/Makefile:45:obj-$(CONFIG_ATH6KL_USB) += ath6kl_usb.o\ndrivers/net/wireless/ath/ath6kl/Makefile:46:ath6kl_usb-y += usb.o\ndrivers/net/wireless/ath/ath6kl/Makefile-47-\n--\ndrivers/net/wireless/ath/ath6kl/htc_pipe.c=941=static int ath6kl_htc_pipe_rx_complete(struct ath6kl *ar, struct sk_buff *skb,\n--\ndrivers/net/wireless/ath/ath6kl/htc_pipe.c-959-\t * Thus the possibility of ar-\u003ehtc_target being NULL\ndrivers/net/wireless/ath/ath6kl/htc_pipe.c:960:\t * via ath6kl_recv_complete -\u003e ath6kl_usb_io_comp_work.\ndrivers/net/wireless/ath/ath6kl/htc_pipe.c-961-\t */\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=30=enum ATH6KL_USB_PIPE_ID {\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-43-\ndrivers/net/wireless/ath/ath6kl/usb.c:44:struct ath6kl_usb_pipe {\ndrivers/net/wireless/ath/ath6kl/usb.c-45-\tstruct list_head urb_list_head;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-53-\tu8 logical_pipe_num;\ndrivers/net/wireless/ath/ath6kl/usb.c:54:\tstruct ath6kl_usb *ar_usb;\ndrivers/net/wireless/ath/ath6kl/usb.c-55-\tu16 max_packet_size;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-63-/* usb device object */\ndrivers/net/wireless/ath/ath6kl/usb.c:64:struct ath6kl_usb {\ndrivers/net/wireless/ath/ath6kl/usb.c-65-\t/* protects pipe-\u003eurb_list_head and  pipe-\u003eurb_cnt */\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-69-\tstruct usb_interface *interface;\ndrivers/net/wireless/ath/ath6kl/usb.c:70:\tstruct ath6kl_usb_pipe pipes[ATH6KL_USB_PIPE_MAX];\ndrivers/net/wireless/ath/ath6kl/usb.c-71-\tu8 *diag_cmd_buffer;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=78=struct ath6kl_urb_context {\ndrivers/net/wireless/ath/ath6kl/usb.c-79-\tstruct list_head link;\ndrivers/net/wireless/ath/ath6kl/usb.c:80:\tstruct ath6kl_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath6kl/usb.c-81-\tstruct sk_buff *skb;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-104-\ndrivers/net/wireless/ath/ath6kl/usb.c:105:struct ath6kl_usb_ctrl_diag_cmd_write {\ndrivers/net/wireless/ath/ath6kl/usb.c-106-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-111-\ndrivers/net/wireless/ath/ath6kl/usb.c:112:struct ath6kl_usb_ctrl_diag_cmd_read {\ndrivers/net/wireless/ath/ath6kl/usb.c-113-\t__le32 cmd;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-116-\ndrivers/net/wireless/ath/ath6kl/usb.c:117:struct ath6kl_usb_ctrl_diag_resp_read {\ndrivers/net/wireless/ath/ath6kl/usb.c-118-\t__le32 value;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-121-/* function declarations */\ndrivers/net/wireless/ath/ath6kl/usb.c:122:static void ath6kl_usb_recv_complete(struct urb *urb);\ndrivers/net/wireless/ath/ath6kl/usb.c-123-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=130=static struct ath6kl_urb_context *\ndrivers/net/wireless/ath/ath6kl/usb.c:131:ath6kl_usb_alloc_urb_from_pipe(struct ath6kl_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath6kl/usb.c-132-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-152-\ndrivers/net/wireless/ath/ath6kl/usb.c:153:static void ath6kl_usb_free_urb_to_pipe(struct ath6kl_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-154-\t\t\t\t\tstruct ath6kl_urb_context *urb_context)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-168-\ndrivers/net/wireless/ath/ath6kl/usb.c:169:static void ath6kl_usb_cleanup_recv_urb(struct ath6kl_urb_context *urb_context)\ndrivers/net/wireless/ath/ath6kl/usb.c-170-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-173-\ndrivers/net/wireless/ath/ath6kl/usb.c:174:\tath6kl_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-175-}\ndrivers/net/wireless/ath/ath6kl/usb.c-176-\ndrivers/net/wireless/ath/ath6kl/usb.c:177:static inline struct ath6kl_usb *ath6kl_usb_priv(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-178-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-182-/* pipe resource allocation/cleanup */\ndrivers/net/wireless/ath/ath6kl/usb.c:183:static int ath6kl_usb_alloc_pipe_resources(struct ath6kl_usb_pipe *pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-184-\t\t\t\t\t   int urb_cnt)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-205-\t\tpipe-\u003eurb_alloc++;\ndrivers/net/wireless/ath/ath6kl/usb.c:206:\t\tath6kl_usb_free_urb_to_pipe(pipe, urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-207-\t}\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-217-\ndrivers/net/wireless/ath/ath6kl/usb.c:218:static void ath6kl_usb_free_pipe_resources(struct ath6kl_usb_pipe *pipe)\ndrivers/net/wireless/ath/ath6kl/usb.c-219-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-241-\twhile (true) {\ndrivers/net/wireless/ath/ath6kl/usb.c:242:\t\turb_context = ath6kl_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath6kl/usb.c-243-\t\tif (urb_context == NULL)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-248-\ndrivers/net/wireless/ath/ath6kl/usb.c:249:static void ath6kl_usb_cleanup_pipe_resources(struct ath6kl_usb *ar_usb)\ndrivers/net/wireless/ath/ath6kl/usb.c-250-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-253-\tfor (i = 0; i \u003c ATH6KL_USB_PIPE_MAX; i++)\ndrivers/net/wireless/ath/ath6kl/usb.c:254:\t\tath6kl_usb_free_pipe_resources(\u0026ar_usb-\u003epipes[i]);\ndrivers/net/wireless/ath/ath6kl/usb.c-255-}\ndrivers/net/wireless/ath/ath6kl/usb.c-256-\ndrivers/net/wireless/ath/ath6kl/usb.c:257:static u8 ath6kl_usb_get_logical_pipe_num(struct ath6kl_usb *ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-258-\t\t\t\t\t  u8 ep_address, int *urb_count)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-302-\ndrivers/net/wireless/ath/ath6kl/usb.c:303:static int ath6kl_usb_setup_pipe_resources(struct ath6kl_usb *ar_usb)\ndrivers/net/wireless/ath/ath6kl/usb.c-304-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-307-\tstruct usb_endpoint_descriptor *endpoint;\ndrivers/net/wireless/ath/ath6kl/usb.c:308:\tstruct ath6kl_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath6kl/usb.c-309-\tint i, urbcount, status = 0;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-350-\t\tpipe_num =\ndrivers/net/wireless/ath/ath6kl/usb.c:351:\t\t    ath6kl_usb_get_logical_pipe_num(ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-352-\t\t\t\t\t\t    endpoint-\u003ebEndpointAddress,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-405-\ndrivers/net/wireless/ath/ath6kl/usb.c:406:\t\tstatus = ath6kl_usb_alloc_pipe_resources(pipe, urbcount);\ndrivers/net/wireless/ath/ath6kl/usb.c-407-\t\tif (status != 0)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-414-/* pipe operations */\ndrivers/net/wireless/ath/ath6kl/usb.c:415:static void ath6kl_usb_post_recv_transfers(struct ath6kl_usb_pipe *recv_pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-416-\t\t\t\t\t   int buffer_length)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-422-\twhile (true) {\ndrivers/net/wireless/ath/ath6kl/usb.c:423:\t\turb_context = ath6kl_usb_alloc_urb_from_pipe(recv_pipe);\ndrivers/net/wireless/ath/ath6kl/usb.c-424-\t\tif (urb_context == NULL)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-439-\t\t\t\t  buffer_length,\ndrivers/net/wireless/ath/ath6kl/usb.c:440:\t\t\t\t  ath6kl_usb_recv_complete, urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-441-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-463-err_cleanup_urb:\ndrivers/net/wireless/ath/ath6kl/usb.c:464:\tath6kl_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-465-\treturn;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-467-\ndrivers/net/wireless/ath/ath6kl/usb.c:468:static void ath6kl_usb_flush_all(struct ath6kl_usb *ar_usb)\ndrivers/net/wireless/ath/ath6kl/usb.c-469-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-483-\ndrivers/net/wireless/ath/ath6kl/usb.c:484:static void ath6kl_usb_start_recv_pipes(struct ath6kl_usb *ar_usb)\ndrivers/net/wireless/ath/ath6kl/usb.c-485-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-489-\t *      ar_usb-\u003epipes[ATH6KL_USB_PIPE_RX_CTRL].urb_alloc/2;\ndrivers/net/wireless/ath/ath6kl/usb.c:490:\t * ath6kl_usb_post_recv_transfers(\u0026ar_usb-\u003e\ndrivers/net/wireless/ath/ath6kl/usb.c-491-\t *\t\tpipes[ATH6KL_USB_PIPE_RX_CTRL],\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-496-\ndrivers/net/wireless/ath/ath6kl/usb.c:497:\tath6kl_usb_post_recv_transfers(\u0026ar_usb-\u003epipes[ATH6KL_USB_PIPE_RX_DATA],\ndrivers/net/wireless/ath/ath6kl/usb.c-498-\t\t\t\t       ATH6KL_USB_RX_BUFFER_SIZE);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-501-/* hif usb rx/tx completion functions */\ndrivers/net/wireless/ath/ath6kl/usb.c:502:static void ath6kl_usb_recv_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath6kl/usb.c-503-{\ndrivers/net/wireless/ath/ath6kl/usb.c-504-\tstruct ath6kl_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath6kl/usb.c:505:\tstruct ath6kl_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath6kl/usb.c-506-\tstruct sk_buff *skb = NULL;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-549-cleanup_recv_urb:\ndrivers/net/wireless/ath/ath6kl/usb.c:550:\tath6kl_usb_cleanup_recv_urb(urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-551-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-554-\t\t/* our free urbs are piling up, post more transfers */\ndrivers/net/wireless/ath/ath6kl/usb.c:555:\t\tath6kl_usb_post_recv_transfers(pipe, ATH6KL_USB_RX_BUFFER_SIZE);\ndrivers/net/wireless/ath/ath6kl/usb.c-556-\t}\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-558-\ndrivers/net/wireless/ath/ath6kl/usb.c:559:static void ath6kl_usb_usb_transmit_complete(struct urb *urb)\ndrivers/net/wireless/ath/ath6kl/usb.c-560-{\ndrivers/net/wireless/ath/ath6kl/usb.c-561-\tstruct ath6kl_urb_context *urb_context = urb-\u003econtext;\ndrivers/net/wireless/ath/ath6kl/usb.c:562:\tstruct ath6kl_usb_pipe *pipe = urb_context-\u003epipe;\ndrivers/net/wireless/ath/ath6kl/usb.c-563-\tstruct sk_buff *skb;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-577-\turb_context-\u003eskb = NULL;\ndrivers/net/wireless/ath/ath6kl/usb.c:578:\tath6kl_usb_free_urb_to_pipe(urb_context-\u003epipe, urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-579-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-584-\ndrivers/net/wireless/ath/ath6kl/usb.c:585:static void ath6kl_usb_io_comp_work(struct work_struct *work)\ndrivers/net/wireless/ath/ath6kl/usb.c-586-{\ndrivers/net/wireless/ath/ath6kl/usb.c:587:\tstruct ath6kl_usb_pipe *pipe = container_of(work,\ndrivers/net/wireless/ath/ath6kl/usb.c:588:\t\t\t\t\t\t    struct ath6kl_usb_pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-589-\t\t\t\t\t\t    io_complete_work);\ndrivers/net/wireless/ath/ath6kl/usb.c:590:\tstruct ath6kl_usb *ar_usb;\ndrivers/net/wireless/ath/ath6kl/usb.c-591-\tstruct sk_buff *skb;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-608-\ndrivers/net/wireless/ath/ath6kl/usb.c:609:#define ATH6KL_USB_MAX_DIAG_CMD (sizeof(struct ath6kl_usb_ctrl_diag_cmd_write))\ndrivers/net/wireless/ath/ath6kl/usb.c:610:#define ATH6KL_USB_MAX_DIAG_RESP (sizeof(struct ath6kl_usb_ctrl_diag_resp_read))\ndrivers/net/wireless/ath/ath6kl/usb.c-611-\ndrivers/net/wireless/ath/ath6kl/usb.c:612:static void ath6kl_usb_destroy(struct ath6kl_usb *ar_usb)\ndrivers/net/wireless/ath/ath6kl/usb.c-613-{\ndrivers/net/wireless/ath/ath6kl/usb.c:614:\tath6kl_usb_flush_all(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-615-\ndrivers/net/wireless/ath/ath6kl/usb.c:616:\tath6kl_usb_cleanup_pipe_resources(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-617-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-626-\ndrivers/net/wireless/ath/ath6kl/usb.c:627:static struct ath6kl_usb *ath6kl_usb_create(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath6kl/usb.c-628-{\ndrivers/net/wireless/ath/ath6kl/usb.c-629-\tstruct usb_device *dev = interface_to_usbdev(interface);\ndrivers/net/wireless/ath/ath6kl/usb.c:630:\tstruct ath6kl_usb *ar_usb;\ndrivers/net/wireless/ath/ath6kl/usb.c:631:\tstruct ath6kl_usb_pipe *pipe;\ndrivers/net/wireless/ath/ath6kl/usb.c-632-\tint status = 0;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-634-\ndrivers/net/wireless/ath/ath6kl/usb.c:635:\t/* ath6kl_usb_destroy() needs ar_usb != NULL \u0026\u0026 ar_usb-\u003ewq != NULL. */\ndrivers/net/wireless/ath/ath6kl/usb.c:636:\tar_usb = kzalloc_obj(struct ath6kl_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-637-\tif (ar_usb == NULL)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-652-\t\tINIT_WORK(\u0026pipe-\u003eio_complete_work,\ndrivers/net/wireless/ath/ath6kl/usb.c:653:\t\t\t  ath6kl_usb_io_comp_work);\ndrivers/net/wireless/ath/ath6kl/usb.c-654-\t\tskb_queue_head_init(\u0026pipe-\u003eio_comp_queue);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-659-\t\tstatus = -ENOMEM;\ndrivers/net/wireless/ath/ath6kl/usb.c:660:\t\tgoto fail_ath6kl_usb_create;\ndrivers/net/wireless/ath/ath6kl/usb.c-661-\t}\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-666-\t\tstatus = -ENOMEM;\ndrivers/net/wireless/ath/ath6kl/usb.c:667:\t\tgoto fail_ath6kl_usb_create;\ndrivers/net/wireless/ath/ath6kl/usb.c-668-\t}\ndrivers/net/wireless/ath/ath6kl/usb.c-669-\ndrivers/net/wireless/ath/ath6kl/usb.c:670:\tstatus = ath6kl_usb_setup_pipe_resources(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-671-\ndrivers/net/wireless/ath/ath6kl/usb.c:672:fail_ath6kl_usb_create:\ndrivers/net/wireless/ath/ath6kl/usb.c-673-\tif (status != 0) {\ndrivers/net/wireless/ath/ath6kl/usb.c:674:\t\tath6kl_usb_destroy(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-675-\t\tar_usb = NULL;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-679-\ndrivers/net/wireless/ath/ath6kl/usb.c:680:static void ath6kl_usb_device_detached(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath6kl/usb.c-681-{\ndrivers/net/wireless/ath/ath6kl/usb.c:682:\tstruct ath6kl_usb *ar_usb;\ndrivers/net/wireless/ath/ath6kl/usb.c-683-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-692-\tath6kl_core_cleanup(ar_usb-\u003ear);\ndrivers/net/wireless/ath/ath6kl/usb.c:693:\tath6kl_usb_destroy(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-694-}\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=697=static void hif_start(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-698-{\ndrivers/net/wireless/ath/ath6kl/usb.c:699:\tstruct ath6kl_usb *device = ath6kl_usb_priv(ar);\ndrivers/net/wireless/ath/ath6kl/usb.c-700-\tint i;\ndrivers/net/wireless/ath/ath6kl/usb.c-701-\ndrivers/net/wireless/ath/ath6kl/usb.c:702:\tath6kl_usb_start_recv_pipes(device);\ndrivers/net/wireless/ath/ath6kl/usb.c-703-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-711-\ndrivers/net/wireless/ath/ath6kl/usb.c:712:static int ath6kl_usb_send(struct ath6kl *ar, u8 PipeID,\ndrivers/net/wireless/ath/ath6kl/usb.c-713-\t\t\t   struct sk_buff *hdr_skb, struct sk_buff *skb)\ndrivers/net/wireless/ath/ath6kl/usb.c-714-{\ndrivers/net/wireless/ath/ath6kl/usb.c:715:\tstruct ath6kl_usb *device = ath6kl_usb_priv(ar);\ndrivers/net/wireless/ath/ath6kl/usb.c:716:\tstruct ath6kl_usb_pipe *pipe = \u0026device-\u003epipes[PipeID];\ndrivers/net/wireless/ath/ath6kl/usb.c-717-\tstruct ath6kl_urb_context *urb_context;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-725-\ndrivers/net/wireless/ath/ath6kl/usb.c:726:\turb_context = ath6kl_usb_alloc_urb_from_pipe(pipe);\ndrivers/net/wireless/ath/ath6kl/usb.c-727-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-747-\t\tstatus = -ENOMEM;\ndrivers/net/wireless/ath/ath6kl/usb.c:748:\t\tath6kl_usb_free_urb_to_pipe(urb_context-\u003epipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-749-\t\t\t\t\t    urb_context);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-757-\t\t\t  len,\ndrivers/net/wireless/ath/ath6kl/usb.c:758:\t\t\t  ath6kl_usb_usb_transmit_complete, urb_context);\ndrivers/net/wireless/ath/ath6kl/usb.c-759-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-777-\t\tusb_unanchor_urb(urb);\ndrivers/net/wireless/ath/ath6kl/usb.c:778:\t\tath6kl_usb_free_urb_to_pipe(urb_context-\u003epipe,\ndrivers/net/wireless/ath/ath6kl/usb.c-779-\t\t\t\t\t    urb_context);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=788=static void hif_stop(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-789-{\ndrivers/net/wireless/ath/ath6kl/usb.c:790:\tstruct ath6kl_usb *device = ath6kl_usb_priv(ar);\ndrivers/net/wireless/ath/ath6kl/usb.c-791-\ndrivers/net/wireless/ath/ath6kl/usb.c:792:\tath6kl_usb_flush_all(device);\ndrivers/net/wireless/ath/ath6kl/usb.c-793-}\ndrivers/net/wireless/ath/ath6kl/usb.c-794-\ndrivers/net/wireless/ath/ath6kl/usb.c:795:static void ath6kl_usb_get_default_pipe(struct ath6kl *ar,\ndrivers/net/wireless/ath/ath6kl/usb.c-796-\t\t\t\t\tu8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-801-\ndrivers/net/wireless/ath/ath6kl/usb.c:802:static int ath6kl_usb_map_service_pipe(struct ath6kl *ar, u16 svc_id,\ndrivers/net/wireless/ath/ath6kl/usb.c-803-\t\t\t\t       u8 *ul_pipe, u8 *dl_pipe)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-856-\ndrivers/net/wireless/ath/ath6kl/usb.c:857:static u16 ath6kl_usb_get_free_queue_number(struct ath6kl *ar, u8 pipe_id)\ndrivers/net/wireless/ath/ath6kl/usb.c-858-{\ndrivers/net/wireless/ath/ath6kl/usb.c:859:\tstruct ath6kl_usb *device = ath6kl_usb_priv(ar);\ndrivers/net/wireless/ath/ath6kl/usb.c-860-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c=864=static void hif_detach_htc(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-865-{\ndrivers/net/wireless/ath/ath6kl/usb.c:866:\tstruct ath6kl_usb *device = ath6kl_usb_priv(ar);\ndrivers/net/wireless/ath/ath6kl/usb.c-867-\ndrivers/net/wireless/ath/ath6kl/usb.c:868:\tath6kl_usb_flush_all(device);\ndrivers/net/wireless/ath/ath6kl/usb.c-869-}\ndrivers/net/wireless/ath/ath6kl/usb.c-870-\ndrivers/net/wireless/ath/ath6kl/usb.c:871:static int ath6kl_usb_submit_ctrl_out(struct ath6kl_usb *ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-872-\t\t\t\t   u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-902-\ndrivers/net/wireless/ath/ath6kl/usb.c:903:static int ath6kl_usb_submit_ctrl_in(struct ath6kl_usb *ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-904-\t\t\t\t  u8 req, u16 value, u16 index, void *data,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-936-\ndrivers/net/wireless/ath/ath6kl/usb.c:937:static int ath6kl_usb_ctrl_msg_exchange(struct ath6kl_usb *ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-938-\t\t\t\t     u8 req_val, u8 *req_buf, u32 req_len,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-943-\t/* send command */\ndrivers/net/wireless/ath/ath6kl/usb.c:944:\tret = ath6kl_usb_submit_ctrl_out(ar_usb, req_val, 0, 0,\ndrivers/net/wireless/ath/ath6kl/usb.c-945-\t\t\t\t\t req_buf, req_len);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-955-\t/* get response */\ndrivers/net/wireless/ath/ath6kl/usb.c:956:\tret = ath6kl_usb_submit_ctrl_in(ar_usb, resp_val, 0, 0,\ndrivers/net/wireless/ath/ath6kl/usb.c-957-\t\t\t\t\tresp_buf, *resp_len);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-961-\ndrivers/net/wireless/ath/ath6kl/usb.c:962:static int ath6kl_usb_diag_read32(struct ath6kl *ar, u32 address, u32 *data)\ndrivers/net/wireless/ath/ath6kl/usb.c-963-{\ndrivers/net/wireless/ath/ath6kl/usb.c:964:\tstruct ath6kl_usb *ar_usb = ar-\u003ehif_priv;\ndrivers/net/wireless/ath/ath6kl/usb.c:965:\tstruct ath6kl_usb_ctrl_diag_resp_read *resp;\ndrivers/net/wireless/ath/ath6kl/usb.c:966:\tstruct ath6kl_usb_ctrl_diag_cmd_read *cmd;\ndrivers/net/wireless/ath/ath6kl/usb.c-967-\tu32 resp_len;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-969-\ndrivers/net/wireless/ath/ath6kl/usb.c:970:\tcmd = (struct ath6kl_usb_ctrl_diag_cmd_read *) ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath6kl/usb.c-971-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-976-\ndrivers/net/wireless/ath/ath6kl/usb.c:977:\tret = ath6kl_usb_ctrl_msg_exchange(ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-978-\t\t\t\tATH6KL_USB_CONTROL_REQ_DIAG_CMD,\ndrivers/net/wireless/ath/ath6kl/usb.c-979-\t\t\t\t(u8 *) cmd,\ndrivers/net/wireless/ath/ath6kl/usb.c:980:\t\t\t\tsizeof(struct ath6kl_usb_ctrl_diag_cmd_write),\ndrivers/net/wireless/ath/ath6kl/usb.c-981-\t\t\t\tATH6KL_USB_CONTROL_REQ_DIAG_RESP,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-988-\ndrivers/net/wireless/ath/ath6kl/usb.c:989:\tresp = (struct ath6kl_usb_ctrl_diag_resp_read *)\ndrivers/net/wireless/ath/ath6kl/usb.c-990-\t\tar_usb-\u003ediag_resp_buffer;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-996-\ndrivers/net/wireless/ath/ath6kl/usb.c:997:static int ath6kl_usb_diag_write32(struct ath6kl *ar, u32 address, __le32 data)\ndrivers/net/wireless/ath/ath6kl/usb.c-998-{\ndrivers/net/wireless/ath/ath6kl/usb.c:999:\tstruct ath6kl_usb *ar_usb = ar-\u003ehif_priv;\ndrivers/net/wireless/ath/ath6kl/usb.c:1000:\tstruct ath6kl_usb_ctrl_diag_cmd_write *cmd;\ndrivers/net/wireless/ath/ath6kl/usb.c-1001-\tint ret;\ndrivers/net/wireless/ath/ath6kl/usb.c-1002-\ndrivers/net/wireless/ath/ath6kl/usb.c:1003:\tcmd = (struct ath6kl_usb_ctrl_diag_cmd_write *) ar_usb-\u003ediag_cmd_buffer;\ndrivers/net/wireless/ath/ath6kl/usb.c-1004-\ndrivers/net/wireless/ath/ath6kl/usb.c:1005:\tmemset(cmd, 0, sizeof(struct ath6kl_usb_ctrl_diag_cmd_write));\ndrivers/net/wireless/ath/ath6kl/usb.c-1006-\tcmd-\u003ecmd = cpu_to_le32(ATH6KL_USB_CTRL_DIAG_CC_WRITE);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1009-\ndrivers/net/wireless/ath/ath6kl/usb.c:1010:\tret = ath6kl_usb_ctrl_msg_exchange(ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-1011-\t\t\t\t\t   ATH6KL_USB_CONTROL_REQ_DIAG_CMD,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1022-\ndrivers/net/wireless/ath/ath6kl/usb.c:1023:static int ath6kl_usb_bmi_read(struct ath6kl *ar, u8 *buf, u32 len)\ndrivers/net/wireless/ath/ath6kl/usb.c-1024-{\ndrivers/net/wireless/ath/ath6kl/usb.c:1025:\tstruct ath6kl_usb *ar_usb = ar-\u003ehif_priv;\ndrivers/net/wireless/ath/ath6kl/usb.c-1026-\tint ret;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1028-\t/* get response */\ndrivers/net/wireless/ath/ath6kl/usb.c:1029:\tret = ath6kl_usb_submit_ctrl_in(ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-1030-\t\t\t\t\tATH6KL_USB_CONTROL_REQ_RECV_BMI_RESP,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1040-\ndrivers/net/wireless/ath/ath6kl/usb.c:1041:static int ath6kl_usb_bmi_write(struct ath6kl *ar, u8 *buf, u32 len)\ndrivers/net/wireless/ath/ath6kl/usb.c-1042-{\ndrivers/net/wireless/ath/ath6kl/usb.c:1043:\tstruct ath6kl_usb *ar_usb = ar-\u003ehif_priv;\ndrivers/net/wireless/ath/ath6kl/usb.c-1044-\tint ret;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1046-\t/* send command */\ndrivers/net/wireless/ath/ath6kl/usb.c:1047:\tret = ath6kl_usb_submit_ctrl_out(ar_usb,\ndrivers/net/wireless/ath/ath6kl/usb.c-1048-\t\t\t\t\t ATH6KL_USB_CONTROL_REQ_SEND_BMI_CMD,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1058-\ndrivers/net/wireless/ath/ath6kl/usb.c:1059:static int ath6kl_usb_power_on(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-1060-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1064-\ndrivers/net/wireless/ath/ath6kl/usb.c:1065:static int ath6kl_usb_power_off(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-1066-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1070-\ndrivers/net/wireless/ath/ath6kl/usb.c:1071:static void ath6kl_usb_stop(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-1072-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1075-\ndrivers/net/wireless/ath/ath6kl/usb.c:1076:static void ath6kl_usb_cleanup_scatter(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-1077-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1083-\ndrivers/net/wireless/ath/ath6kl/usb.c:1084:static int ath6kl_usb_suspend(struct ath6kl *ar, struct cfg80211_wowlan *wow)\ndrivers/net/wireless/ath/ath6kl/usb.c-1085-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1091-\ndrivers/net/wireless/ath/ath6kl/usb.c:1092:static int ath6kl_usb_resume(struct ath6kl *ar)\ndrivers/net/wireless/ath/ath6kl/usb.c-1093-{\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1099-\ndrivers/net/wireless/ath/ath6kl/usb.c:1100:static const struct ath6kl_hif_ops ath6kl_usb_ops = {\ndrivers/net/wireless/ath/ath6kl/usb.c:1101:\t.diag_read32 = ath6kl_usb_diag_read32,\ndrivers/net/wireless/ath/ath6kl/usb.c:1102:\t.diag_write32 = ath6kl_usb_diag_write32,\ndrivers/net/wireless/ath/ath6kl/usb.c:1103:\t.bmi_read = ath6kl_usb_bmi_read,\ndrivers/net/wireless/ath/ath6kl/usb.c:1104:\t.bmi_write = ath6kl_usb_bmi_write,\ndrivers/net/wireless/ath/ath6kl/usb.c:1105:\t.power_on = ath6kl_usb_power_on,\ndrivers/net/wireless/ath/ath6kl/usb.c:1106:\t.power_off = ath6kl_usb_power_off,\ndrivers/net/wireless/ath/ath6kl/usb.c:1107:\t.stop = ath6kl_usb_stop,\ndrivers/net/wireless/ath/ath6kl/usb.c:1108:\t.pipe_send = ath6kl_usb_send,\ndrivers/net/wireless/ath/ath6kl/usb.c:1109:\t.pipe_get_default = ath6kl_usb_get_default_pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c:1110:\t.pipe_map_service = ath6kl_usb_map_service_pipe,\ndrivers/net/wireless/ath/ath6kl/usb.c:1111:\t.pipe_get_free_queue_number = ath6kl_usb_get_free_queue_number,\ndrivers/net/wireless/ath/ath6kl/usb.c:1112:\t.cleanup_scatter = ath6kl_usb_cleanup_scatter,\ndrivers/net/wireless/ath/ath6kl/usb.c:1113:\t.suspend = ath6kl_usb_suspend,\ndrivers/net/wireless/ath/ath6kl/usb.c:1114:\t.resume = ath6kl_usb_resume,\ndrivers/net/wireless/ath/ath6kl/usb.c-1115-};\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1117-/* ath6kl usb driver registered functions */\ndrivers/net/wireless/ath/ath6kl/usb.c:1118:static int ath6kl_usb_probe(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath6kl/usb.c-1119-\t\t\t    const struct usb_device_id *id)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1122-\tstruct ath6kl *ar;\ndrivers/net/wireless/ath/ath6kl/usb.c:1123:\tstruct ath6kl_usb *ar_usb = NULL;\ndrivers/net/wireless/ath/ath6kl/usb.c-1124-\tint vendor_id, product_id;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1142-\ndrivers/net/wireless/ath/ath6kl/usb.c:1143:\tar_usb = ath6kl_usb_create(interface);\ndrivers/net/wireless/ath/ath6kl/usb.c-1144-\tif (ar_usb == NULL)\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1155-\tar-\u003ehif_type = ATH6KL_HIF_TYPE_USB;\ndrivers/net/wireless/ath/ath6kl/usb.c:1156:\tar-\u003ehif_ops = \u0026ath6kl_usb_ops;\ndrivers/net/wireless/ath/ath6kl/usb.c-1157-\tar-\u003embox_info.block_size = 16;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1172-err_usb_destroy:\ndrivers/net/wireless/ath/ath6kl/usb.c:1173:\tath6kl_usb_destroy(ar_usb);\ndrivers/net/wireless/ath/ath6kl/usb.c-1174-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1177-\ndrivers/net/wireless/ath/ath6kl/usb.c:1178:static void ath6kl_usb_disconnect(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath6kl/usb.c-1179-{\ndrivers/net/wireless/ath/ath6kl/usb.c:1180:\tath6kl_usb_device_detached(interface);\ndrivers/net/wireless/ath/ath6kl/usb.c-1181-}\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1184-\ndrivers/net/wireless/ath/ath6kl/usb.c:1185:static int ath6kl_usb_pm_suspend(struct usb_interface *interface,\ndrivers/net/wireless/ath/ath6kl/usb.c-1186-\t\t\t      pm_message_t message)\ndrivers/net/wireless/ath/ath6kl/usb.c-1187-{\ndrivers/net/wireless/ath/ath6kl/usb.c:1188:\tstruct ath6kl_usb *device;\ndrivers/net/wireless/ath/ath6kl/usb.c-1189-\tdevice = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath6kl/usb.c-1190-\ndrivers/net/wireless/ath/ath6kl/usb.c:1191:\tath6kl_usb_flush_all(device);\ndrivers/net/wireless/ath/ath6kl/usb.c-1192-\treturn 0;\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1194-\ndrivers/net/wireless/ath/ath6kl/usb.c:1195:static int ath6kl_usb_pm_resume(struct usb_interface *interface)\ndrivers/net/wireless/ath/ath6kl/usb.c-1196-{\ndrivers/net/wireless/ath/ath6kl/usb.c:1197:\tstruct ath6kl_usb *device;\ndrivers/net/wireless/ath/ath6kl/usb.c-1198-\tdevice = usb_get_intfdata(interface);\ndrivers/net/wireless/ath/ath6kl/usb.c-1199-\ndrivers/net/wireless/ath/ath6kl/usb.c:1200:\tath6kl_usb_post_recv_transfers(\u0026device-\u003epipes[ATH6KL_USB_PIPE_RX_DATA],\ndrivers/net/wireless/ath/ath6kl/usb.c-1201-\t\t\t\t       ATH6KL_USB_RX_BUFFER_SIZE);\ndrivers/net/wireless/ath/ath6kl/usb.c:1202:\tath6kl_usb_post_recv_transfers(\u0026device-\u003epipes[ATH6KL_USB_PIPE_RX_DATA2],\ndrivers/net/wireless/ath/ath6kl/usb.c-1203-\t\t\t\t       ATH6KL_USB_RX_BUFFER_SIZE);\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1209-\ndrivers/net/wireless/ath/ath6kl/usb.c:1210:#define ath6kl_usb_pm_suspend NULL\ndrivers/net/wireless/ath/ath6kl/usb.c:1211:#define ath6kl_usb_pm_resume NULL\ndrivers/net/wireless/ath/ath6kl/usb.c-1212-\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1215-/* table of devices that work with this driver */\ndrivers/net/wireless/ath/ath6kl/usb.c:1216:static const struct usb_device_id ath6kl_usb_ids[] = {\ndrivers/net/wireless/ath/ath6kl/usb.c-1217-\t{USB_DEVICE(0x0cf3, 0x9375)},\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1222-\ndrivers/net/wireless/ath/ath6kl/usb.c:1223:MODULE_DEVICE_TABLE(usb, ath6kl_usb_ids);\ndrivers/net/wireless/ath/ath6kl/usb.c-1224-\ndrivers/net/wireless/ath/ath6kl/usb.c:1225:static struct usb_driver ath6kl_usb_driver = {\ndrivers/net/wireless/ath/ath6kl/usb.c:1226:\t.name = \"ath6kl_usb\",\ndrivers/net/wireless/ath/ath6kl/usb.c:1227:\t.probe = ath6kl_usb_probe,\ndrivers/net/wireless/ath/ath6kl/usb.c:1228:\t.suspend = ath6kl_usb_pm_suspend,\ndrivers/net/wireless/ath/ath6kl/usb.c:1229:\t.resume = ath6kl_usb_pm_resume,\ndrivers/net/wireless/ath/ath6kl/usb.c:1230:\t.disconnect = ath6kl_usb_disconnect,\ndrivers/net/wireless/ath/ath6kl/usb.c:1231:\t.id_table = ath6kl_usb_ids,\ndrivers/net/wireless/ath/ath6kl/usb.c-1232-\t.supports_autosuspend = true,\n--\ndrivers/net/wireless/ath/ath6kl/usb.c-1235-\ndrivers/net/wireless/ath/ath6kl/usb.c:1236:module_usb_driver(ath6kl_usb_driver);\ndrivers/net/wireless/ath/ath6kl/usb.c-1237-\n"
}

5/2 2026/07/12 10:09 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 15779
							output: 18
							thoughts: 192
						

Thoughts:
**Fuzzing the `ath6kl` USB Driver: A Plan**

Okay, so I've been thinking about this `ath6kl` driver and the fact that it has a USB component. That's a huge opportunity. Since it's a USB driver, we should be able to set up a USB gadget and fuzz it. The strategy then is to craft arbitrary events and inject them to the driver, and see how it reacts.

I'm focusing on the recent patch modifying `ath6kl_wmi_scan_complete_rx`, `ath6kl_wmi_addba_req_event_rx`, and `ath6kl_wmi_delba_req_event_rx`. These seem to be the key functions where the driver processes WMI events originating from the device firmware. Perfect! I want to throw garbage data at it, and see what breaks!

First things first, I need to make sure the driver even *compiles* with USB support enabled. A quick check reveals `CONFIG_ATH6KL_USB` is the correct config. Excellent. And, of course, `CONFIG_ATH6KL` is also a requirement. But wait, `CONFIG_ATH6KL` is tristate, and `CONFIG_ATH6KL_USB` depends on it. I need to make sure I understand the Kconfig dependencies completely before I go any further. Gotta double-check that Kconfig file.



6/2 2026/07/12 10:09 tool grepper
0m Args:
{
  "Expression": "config ATH6KL"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath6kl/Kconfig-1-# SPDX-License-Identifier: ISC\ndrivers/net/wireless/ath/ath6kl/Kconfig:2:config ATH6KL\ndrivers/net/wireless/ath/ath6kl/Kconfig-3-\ttristate \"Atheros mobile chipsets support\"\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-13-\ndrivers/net/wireless/ath/ath6kl/Kconfig:14:config ATH6KL_SDIO\ndrivers/net/wireless/ath/ath6kl/Kconfig-15-\ttristate \"Atheros ath6kl SDIO support\"\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-24-\ndrivers/net/wireless/ath/ath6kl/Kconfig:25:config ATH6KL_USB\ndrivers/net/wireless/ath/ath6kl/Kconfig-26-\ttristate \"Atheros ath6kl USB support\"\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-34-\ndrivers/net/wireless/ath/ath6kl/Kconfig:35:config ATH6KL_DEBUG\ndrivers/net/wireless/ath/ath6kl/Kconfig-36-\tbool \"Atheros ath6kl debugging\"\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-44-\ndrivers/net/wireless/ath/ath6kl/Kconfig:45:config ATH6KL_TRACING\ndrivers/net/wireless/ath/ath6kl/Kconfig-46-\tbool \"Atheros ath6kl tracing support\"\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-56-\ndrivers/net/wireless/ath/ath6kl/Kconfig:57:config ATH6KL_REGDOMAIN\ndrivers/net/wireless/ath/ath6kl/Kconfig-58-\tbool \"Atheros ath6kl regdomain support\"\n"
}

7/2 2026/07/12 10:09 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 16775
							output: 40
							thoughts: 14
						

Thoughts:
Okay, here's my interpretation of that thought process, tailored for an expert audience, and written in the first person:

**Analyzing the Dependencies of ATH6KL_USB**

Right, let's dive in. My immediate thought is to trace the dependencies of `ATH6KL_USB`. I'm going to start mentally mapping out the layers. I need to understand not just the immediate modules that `ATH6KL_USB` relies on, but also their dependencies, and so on, recursively. Specifically, I'm thinking about:

*   **Kernel modules**: Which other kernel modules does this driver load or utilize? Are we talking about core networking components, USB drivers, platform drivers, or something more specific to the Atheros chipset? Is there a proprietary stack involved?
*   **Firmware**: Does it need specific firmware loaded onto the USB device itself? If so, what's the firmware loading mechanism, and what are the dependencies there? Is this handled by a separate process or kernel module? Is there a known versioning issue here?
*   **Hardware Abstraction**: Are there any hardware-specific abstraction layers (HALs) that `ATH6KL_USB` interacts with? What's the interface like? Is it well-documented? I need to check for platform-specific quirks or variations.
*   **Build System**: How is this driver built? What's the build system (e.g., `make`, `kbuild`)? What are the relevant `Kconfig` options? Any conditional dependencies or compile-time flags to consider?
*   **External Libraries**: Are there any user-space libraries that this driver relies on? How are these libraries built, and are they compatible with the target system? Are there issues with version mismatches that could rear their heads.
*   **Conflict Resolution**: What are the potential conflicts with other drivers, particularly those that might also manage USB devices or network interfaces? Are there known blacklisting or module aliasing issues?

I'm mentally creating a dependency tree, focusing on identifying the critical paths and potential bottlenecks. This also means I'll be looking for possible points of failure or areas where customization might be needed. The goal is to get a holistic picture of the system to isolate any issues efficiently.



8/2 2026/07/12 10:09 tool grepper
0m Args:
{
  "Expression": "config ATH6KL_USB",
  "PathPrefix": "drivers/net/wireless/ath/ath6kl/Kconfig"
}

Results:
{
  "Output": "drivers/net/wireless/ath/ath6kl/Kconfig=14=config ATH6KL_SDIO\n--\ndrivers/net/wireless/ath/ath6kl/Kconfig-24-\ndrivers/net/wireless/ath/ath6kl/Kconfig:25:config ATH6KL_USB\ndrivers/net/wireless/ath/ath6kl/Kconfig-26-\ttristate \"Atheros ath6kl USB support\"\n"
}

9/2 2026/07/12 10:09 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 17420
							output: 41
							thoughts: 15
						

Thoughts:
Here's my thought process, as if I were considering "config ATH6KL_USB":

**Decoding the Significance of `config ATH6KL_USB`**

Okay, so I see `config ATH6KL_USB`. Immediately, my brain kicks into gear – this is a configuration option, likely within a kernel or driver context, dealing with Atheros's (ATH) Wi-Fi hardware. The "KL" strongly suggests a specific generation or family of chips, and "USB" points to the interface it's utilizing. My initial assessment is that this is for configuring the support or behavior of an Atheros Wi-Fi device connected via a USB interface.

I need the surrounding code, the build system, or documentation to be more certain. I would have to see exactly where this configuration option is used to understand the complete picture. Is it being enabled or disabled? What are the dependencies? How does it interact with other configurations, modules, or the overall system?

My expertise allows me to infer some possibilities immediately, and it guides me on what questions I need to ask to determine its role:

*   **Is this a core driver option, or is it specific to a particular USB-connected device model?** This determines how widely it applies and what devices it may support.
*   **What are the side effects of enabling or disabling it?** Does it increase memory footprint? Does it affect power consumption? Does it open any security vulnerabilities?
*   **Is there upstream kernel documentation or mailing list discussions available?** That's my go-to source to understand community discussions and rationale behind the option.
*   **What is the associated symbol definition?** This is essential. The symbol definition would tell me the exact function or variable controlled by this configuration option.

Without that context, `config ATH6KL_USB` is just a key, a pointer. I need the map to truly understand the territory.



10/2 2026/07/12 10:10 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath6kl/Kconfig",
  "FirstLine": 20,
  "LineCount": 20
}

Results:
{
  "Contents": "  20:\t\t  Atheros AR6003 and AR6004 chipsets running over SDIO. If you\n  21:\t\t  choose to build it as a module, it will be called ath6kl_sdio.\n  22:\t\t  Please note that AR6002 and AR6001 are not supported by this\n  23:\t\t  driver.\n  24:\t\n  25:\tconfig ATH6KL_USB\n  26:\t\ttristate \"Atheros ath6kl USB support\"\n  27:\t\tdepends on ATH6KL\n  28:\t\tdepends on USB\n  29:\t\thelp\n  30:\t\t  This module adds support for wireless adapters based on\n  31:\t\t  Atheros AR6004 chipset and chipsets based on it running over\n  32:\t\t  USB. If you choose to build it as a module, it will be\n  33:\t\t  called ath6kl_usb.\n  34:\t\n  35:\tconfig ATH6KL_DEBUG\n  36:\t\tbool \"Atheros ath6kl debugging\"\n  37:\t\tdepends on ATH6KL\n  38:\t\thelp\n  39:\t\t  Enables ath6kl debug support, including debug messages\n"
}

11/2 2026/07/12 10:10 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 18191
							output: 40
							thoughts: 33
						

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

**Investigating ATH6KL and ATH6KL_USB Configurations**

Right, so we're looking at `ATH6KL` and `ATH6KL_USB`. Those are the primary configurations we're dealing with, I presume, related to that Atheros driver. The first step is to dig into `ATH6KL` and see if there are any immediate dependencies I need to be aware of. We all know how easily these driver configurations can get tangled up! Let's get the dependencies sussed out first before going any deeper.



12/2 2026/07/12 10:10 tool read-file
0m Args:
{
  "File": "drivers/net/wireless/ath/ath6kl/Kconfig",
  "FirstLine": 1,
  "LineCount": 20
}

Results:
{
  "Contents": "   1:\t# SPDX-License-Identifier: ISC\n   2:\tconfig ATH6KL\n   3:\t\ttristate \"Atheros mobile chipsets support\"\n   4:\t\tdepends on CFG80211\n   5:\t\thelp\n   6:\t\t  This module adds core support for wireless adapters based on\n   7:\t\t  Atheros AR6003 and AR6004 chipsets. You still need separate\n   8:\t\t  bus drivers for USB and SDIO to be able to use real devices.\n   9:\t\n  10:\t\t  If you choose to build it as a module, it will be called\n  11:\t\t  ath6kl_core. Please note that AR6002 and AR6001 are not\n  12:\t\t  supported by this driver.\n  13:\t\n  14:\tconfig ATH6KL_SDIO\n  15:\t\ttristate \"Atheros ath6kl SDIO support\"\n  16:\t\tdepends on ATH6KL\n  17:\t\tdepends on MMC\n  18:\t\thelp\n  19:\t\t  This module adds support for wireless adapters based on\n  20:\t\t  Atheros AR6003 and AR6004 chipsets running over SDIO. If you\n"
}

13/2 2026/07/12 10:10 llm patch-evaluator
0m Model:
gemini-3.1-pro-preview

Args:
null

Results:
null

Tokens:
							input: 18713
							output: 137
							thoughts: 260
						

Thoughts:
**My Assessment of the `ath6kl` Driver's Fuzzing Potential**

Okay, so I've been looking at this patch for the `ath6kl` driver, and the target configurations seem to be `ATH6KL` and `ATH6KL_USB`. I see that the core modifications are focused on these specific WMI event handler functions: `ath6kl_wmi_scan_complete_rx`, `ath6kl_wmi_addba_req_event_rx`, and `ath6kl_wmi_delba_req_event_rx`.

My initial thought is to dive deeper and see if there are *other* functions within this module that are similarly susceptible to fuzzing. Let's see if this patch touches any other promising code.

The important thing is that these functions, according to the patch, now have bounds checking implemented. That's a good first step. And because they're handling WMI events, which are essentially messages coming *from* the device, it means they're absolutely reachable via a USB fuzzing setup. I can use a gadget to emulate a device and inject crafted WMI events to test the robustness of the system.

So, here's what I'm going to set up. I'm going to flag this as "WorthFuzzing" and specifically target both `ATH6KL` and `ATH6KL_USB` configurations. My focus symbols will be those three handlers. My reasoning is that this patch introduces bounds checks to WMI event handlers, which inherently process data received from the hardware, and the USB support opens a clear path for exploitation using USB gadget emulation.



14/2 2026/07/12 10:10 tool set-results
0m Args:
{
  "EnableConfigs": [
    "ATH6KL",
    "ATH6KL_USB"
  ],
  "FocusSymbols": [
    "ath6kl_wmi_scan_complete_rx",
    "ath6kl_wmi_addba_req_event_rx",
    "ath6kl_wmi_delba_req_event_rx"
  ],
  "Reasoning": "The patch adds bounds checking to WMI event handlers in the ath6kl driver. These handlers process data received from the hardware. Since the driver supports USB, it can be fuzzed via USB gadget emulation.",
  "WorthFuzzing": true
}

Results:
{
  "EnableConfigs": [
    "ATH6KL",
    "ATH6KL_USB"
  ],
  "FocusSymbols": [
    "ath6kl_wmi_scan_complete_rx",
    "ath6kl_wmi_addba_req_event_rx",
    "ath6kl_wmi_delba_req_event_rx"
  ],
  "Reasoning": "The patch adds bounds checking to WMI event handlers in the ath6kl driver. These handlers process data received from the hardware. Since the driver supports USB, it can be fuzzed via USB gadget emulation.",
  "WorthFuzzing": true
}

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