1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-26 07:55:01 +00:00
freebsd/sys/net80211
Bjoern A. Zeeb 243b95978d net80211: ieee80211_probereq_ie fix length calculation for hw scans
c338cf2c6d split up ieee80211_probereq_ie().
For HW scans we usually do not want to add a SSID to the IEs.
During that split we allocate memory based on the length which will
always include the length of the SSID and only later we reduced the
length but never updated the value passed back to the caller.
Split the SSID handling up and reduce the length before malloc().
This not only makes us not over-allocate in these situatoins but also
fixes the length returned to the caller and with that usually directly
passed to firmware.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Reviewed by:	adrian
Differential Revision: https://reviews.freebsd.org/D30813
2021-06-28 12:17:11 +00:00
..
_ieee80211.h net80211: rx_stats add 160Mhz channel width. 2021-02-28 19:24:22 +00:00
ieee80211_acl.c
ieee80211_action.c
ieee80211_action.h
ieee80211_adhoc.c
ieee80211_adhoc.h
ieee80211_ageq.c
ieee80211_ageq.h
ieee80211_alq.c
ieee80211_alq.h
ieee80211_amrr.c
ieee80211_amrr.h
ieee80211_crypto_ccmp.c
ieee80211_crypto_none.c
ieee80211_crypto_tkip.c
ieee80211_crypto_wep.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_crypto.c
ieee80211_crypto.h
ieee80211_ddb.c
ieee80211_dfs.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_dfs.h
ieee80211_freebsd.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_freebsd.h net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_hostap.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_hostap.h
ieee80211_ht.c
ieee80211_ht.h
ieee80211_hwmp.c net80211: Fix a typo in a comment 2021-03-13 15:51:30 +01:00
ieee80211_input.c
ieee80211_input.h
ieee80211_ioctl.c net80211: factor out the priv(9) checks into OS specifc code. 2020-10-18 21:34:04 +00:00
ieee80211_ioctl.h
ieee80211_mesh.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_mesh.h
ieee80211_monitor.c
ieee80211_monitor.h
ieee80211_node.c net80211: prefix get_random_bytes() with net80211_ 2021-03-24 22:16:09 +00:00
ieee80211_node.h
ieee80211_output.c net80211: ieee80211_probereq_ie fix length calculation for hw scans 2021-06-28 12:17:11 +00:00
ieee80211_phy.c
ieee80211_phy.h
ieee80211_power.c
ieee80211_power.h
ieee80211_proto.c
ieee80211_proto.h net80211: split up ieee80211_probereq() 2021-03-18 11:02:45 +00:00
ieee80211_radiotap.c
ieee80211_radiotap.h net80211/LinuxKPI: add more radiotap definitions 2021-06-05 16:21:49 +00:00
ieee80211_ratectl_none.c
ieee80211_ratectl.c
ieee80211_ratectl.h net80211: ratectl header guard against multiple inclusions 2021-03-07 17:35:58 +00:00
ieee80211_regdomain.c net80211: update for (more) VHT160 support 2020-10-18 00:27:20 +00:00
ieee80211_regdomain.h
ieee80211_rssadapt.c
ieee80211_rssadapt.h
ieee80211_scan_sta.c
ieee80211_scan_sw.c
ieee80211_scan_sw.h
ieee80211_scan.c
ieee80211_scan.h
ieee80211_sta.c
ieee80211_sta.h
ieee80211_superg.c
ieee80211_superg.h
ieee80211_tdma.c
ieee80211_tdma.h
ieee80211_var.h net80211: update for (more) VHT160 support 2020-10-18 00:27:20 +00:00
ieee80211_vht.c net80211: update for (more) VHT160 support 2020-10-18 00:27:20 +00:00
ieee80211_vht.h
ieee80211_wds.c
ieee80211_wds.h
ieee80211_wps.h
ieee80211_xauth.c
ieee80211.c net80211: update for (more) VHT160 support 2020-10-18 00:27:20 +00:00
ieee80211.h net80211: update for (more) VHT160 support 2020-10-18 00:27:20 +00:00