diff options
author | stsp <stsp@openbsd.org> | 2020-06-22 07:15:28 +0000 |
---|---|---|
committer | stsp <stsp@openbsd.org> | 2020-06-22 07:15:28 +0000 |
commit | 5e1a7f367a7d3ed085f76956fe978501636ea96d (patch) | |
tree | 065b1c3bf8fdf31b514e25ef41ddd74011518654 /sys/dev/pci/if_iwx.c | |
parent | updated argument name for -P in first synopsis was missed in previous; (diff) | |
download | wireguard-openbsd-5e1a7f367a7d3ed085f76956fe978501636ea96d.tar.xz wireguard-openbsd-5e1a7f367a7d3ed085f76956fe978501636ea96d.zip |
Fix length specification for 2GHz band IE data in iwx(4) probe request
template.
This code path is not used yet because active scanning mode is still
disabled in this driver.
ok kn@
Diffstat (limited to '')
-rw-r--r-- | sys/dev/pci/if_iwx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index 80e434517d6..d138d9c79b3 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.29 2020/06/19 11:14:03 stsp Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.30 2020/06/22 07:15:28 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -5017,7 +5017,6 @@ iwx_fill_probe_req(struct iwx_softc *sc, struct iwx_scan_probe_req *preq) frm = ieee80211_add_rates(frm, rs); if (rs->rs_nrates > IEEE80211_RATE_SIZE) frm = ieee80211_add_xrates(frm, rs); - preq->band_data[0].len = htole16(frm - pos); remain -= frm - pos; if (isset(sc->sc_enabled_capa, @@ -5029,6 +5028,7 @@ iwx_fill_probe_req(struct iwx_softc *sc, struct iwx_scan_probe_req *preq) *frm++ = 0; remain -= 3; } + preq->band_data[0].len = htole16(frm - pos); if (sc->sc_nvm.sku_cap_band_52GHz_enable) { /* Fill in 5GHz IEs. */ |