diff options
author | 2020-06-22 07:31:32 +0000 | |
---|---|---|
committer | 2020-06-22 07:31:32 +0000 | |
commit | 725f0f6e83ac12cb84ab8646ab422f85d25d3385 (patch) | |
tree | 12a2b6ae05b65cc7f370ed378fa9120530143c3f /sys/dev/pci/if_iwx.c | |
parent | Fix unconditional write to v1.scan_priority in iwx(4) scan command. (diff) | |
download | wireguard-openbsd-725f0f6e83ac12cb84ab8646ab422f85d25d3385.tar.xz wireguard-openbsd-725f0f6e83ac12cb84ab8646ab422f85d25d3385.zip |
Do not copy an SSID into the iwx(4) probe request template.
Firmware will add SSIDs specified via the scan command to its probe requests.
There is no need to copy an SSID into the template.
This code path is not used yet because active scanning mode is still
disabled in this driver.
Diffstat (limited to 'sys/dev/pci/if_iwx.c')
-rw-r--r-- | sys/dev/pci/if_iwx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c index 961a2bf7428..a44c0a51ed5 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.31 2020/06/22 07:25:49 stsp Exp $ */ +/* $OpenBSD: if_iwx.c,v 1.32 2020/06/22 07:31:32 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -4998,7 +4998,9 @@ iwx_fill_probe_req(struct iwx_softc *sc, struct iwx_scan_probe_req *preq) *(uint16_t *)&wh->i_seq[0] = 0; /* filled by HW */ frm = (uint8_t *)(wh + 1); - frm = ieee80211_add_ssid(frm, ic->ic_des_essid, ic->ic_des_esslen); + *frm++ = IEEE80211_ELEMID_SSID; + *frm++ = 0; + /* hardware inserts SSID */ /* Tell the firmware where the MAC header is. */ preq->mac_header.offset = 0; |