summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwx.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2023-12-20 07:32:06 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2023-12-20 07:32:06 +0000
commite491e4f0e490eb321b7adf6cb0083e87a3ac4834 (patch)
tree08236699750cf6798bd6da840de6fd05092ab821 /sys/dev/pci/if_iwx.c
parentbacbfffbfb64b51667e8180b4f9e0c9e046d9228 (diff)
Ensure that iwm/iwx devices announce VHT capabilities in probe requests.
The previous code did not update the per-band-data length field, resulting in firmware skipping the VHT information element in the probe-request frame template. Patch by Mikhail Pchelin
Diffstat (limited to 'sys/dev/pci/if_iwx.c')
-rw-r--r--sys/dev/pci/if_iwx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index 612b68e3c69..a86049ac726 100644
--- a/sys/dev/pci/if_iwx.c
+++ b/sys/dev/pci/if_iwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwx.c,v 1.177 2023/10/06 15:15:29 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.178 2023/12/20 07:32:05 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -6977,6 +6977,7 @@ iwx_fill_probe_req(struct iwx_softc *sc, struct iwx_scan_probe_req *preq)
return ENOBUFS;
frm = ieee80211_add_vhtcaps(frm, ic);
remain -= frm - pos;
+ preq->band_data[1].len = htole16(frm - pos);
}
}