Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169425602
D30813.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D30813.id.diff
View Options
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c
--- a/sys/net80211/ieee80211_output.c
+++ b/sys/net80211/ieee80211_output.c
@@ -2472,6 +2472,10 @@
if (!alloc && len > *frmlen)
return (ENOBUFS);
+ /* For HW scans we usually do not pass in the SSID as IE. */
+ if (ssidlen == -1)
+ len -= (2 + IEEE80211_NWID_LEN);
+
if (alloc) {
frm = malloc(len, M_80211_VAP, M_WAITOK | M_ZERO);
*frmp = frm;
@@ -2479,10 +2483,7 @@
} else
frm = *frmp;
- /* For HW scans we usually do not pass in the SSID as IE. */
- if (ssidlen == -1)
- len -= (2 + IEEE80211_NWID_LEN);
- else
+ if (ssidlen != -1)
frm = ieee80211_add_ssid(frm, ssid, ssidlen);
rs = ieee80211_get_suprates(ic, ic->ic_curchan);
frm = ieee80211_add_rates(frm, rs);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Sep 2, 12:35 PM (3 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37956638
Default Alt Text
D30813.id.diff (776 B)
Attached To
Mode
D30813: net80211: ieee80211_probereq_ie fix length calculation for hw scans
Attached
Detach File
Event Timeline
Log In to Comment