mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
LinuxKPI: 802.11: make sure bssid for scans (probe_req) is set
Inb0f7376822we added bssid[] to struct cfg80211_scan_request likely while working on mt76 and did not need it (yet) back then. iwlwifi started to use the field in Linux f1fec51cda70f (April 2023). Without it set firmware crashes when trying to send probe requests ((empty) SSID also given to hw_scan). For now always set the field to the wildcard BSSID. Sponsored by: The FreeBSD Foundation (cherry picked from commite1e90be050)
This commit is contained in:
parent
46e5d2b0c6
commit
204fb7d853
1 changed files with 1 additions and 0 deletions
|
|
@ -2728,6 +2728,7 @@ sw_scan:
|
|||
memcpy(hw_req->req.mac_addr, xxx, IEEE80211_ADDR_LEN);
|
||||
memset(hw_req->req.mac_addr_mask, 0xxx, IEEE80211_ADDR_LEN);
|
||||
#endif
|
||||
eth_broadcast_addr(hw_req->req.bssid);
|
||||
|
||||
hw_req->req.n_channels = nchan;
|
||||
cpp = (struct linuxkpi_ieee80211_channel **)(hw_req + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue