Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102765939
D30813.id91048.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
799 B
Referenced Files
None
Subscribers
None
D30813.id91048.diff
View Options
Index: sys/net80211/ieee80211_output.c
===================================================================
--- sys/net80211/ieee80211_output.c
+++ 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
Sun, Nov 17, 9:16 PM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14684808
Default Alt Text
D30813.id91048.diff (799 B)
Attached To
Mode
D30813: net80211: ieee80211_probereq_ie fix length calculation for hw scans
Attached
Detach File
Event Timeline
Log In to Comment