hostapd/src
Aditya Kumar Singh c8dd70cfb1 Fix Multiple BSSID element length calculation
Currently while deciding to create a new Multiple BSSID element based on
the condition when the length reaches 255, the length value being used
is the total element length (including the length of the Element ID and
Length fields as well). However, the value in the length field denotes
the number of octets following it and excluding itself. Hence including
the total length is wrong. This leads to incorrect count of Multiple
BSSID elements.

And while filling the data, the length is considered porperly as it
should be hence we are filling more data in a single go and all data is
filled in MBSSID count which is less than originally calculated. This
ultimately leads to incorrect length calculation during nla_put() and
setting the beacon to the driver fails while putting the Multiple BSSID
element data into the netlink socket buffer.

Fix this issue by considering the length excluding the Element ID and
Length field sizes.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
2023-12-21 12:50:27 +02:00
..
ap Fix Multiple BSSID element length calculation 2023-12-21 12:50:27 +02:00
common AP MLD: More careful checking of Multi-Link element length fields 2023-12-17 21:55:10 +02:00
crypto OpenSSL: Check EVP_MAC_update() return value more consistently 2023-12-17 12:06:04 +02:00
drivers nl80211: Remove send_and_recv_msgs() 2023-12-19 01:09:22 +02:00
eap_common crypto: Check if crypto_bignum_to_bin() is successful 2022-12-17 12:11:13 +02:00
eap_peer Compile-time config for dynamically loading libraries in wpa_supplicant 2023-11-05 10:23:29 +02:00
eap_server EAP-SIM/AKA server: Configurable limit to fast re-authentication 2023-09-21 11:55:49 +03:00
eapol_auth Do not disconnect EAPOL-Logoff before authentication 2023-05-04 11:10:16 +03:00
eapol_supp Compile-time config for dynamically loading libraries in wpa_supplicant 2023-11-05 10:23:29 +02:00
fst FST: More robust bounds checking of local data in fst_dump_mb_ies() 2022-05-08 17:18:58 +03:00
l2_packet l2_packet_freebsd: Enable receiving priority tagged (VID=0) frames 2023-10-28 17:50:09 +03:00
p2p P2P: Recover from successfully requested, but not started, listen 2023-12-10 19:30:44 +02:00
pae KaY: Make debug output consistent 2023-12-06 12:11:08 +02:00
pasn common: Simplify and avoid confusing defragmentation API 2023-11-25 10:56:56 +02:00
radius RADIUS: Add Filter-Id attribute 2022-10-31 11:56:57 +02:00
rsn_supp TDLS: Avoid unnecessary copying of the Link Identifier element 2023-12-17 11:51:35 +02:00
tls PKCS#1: Do not use pointer value after freeing 2023-12-17 12:17:10 +02:00
utils trace: binutils replaces bfd_hostptr_t with uintptr_t 2023-12-02 19:08:25 +02:00
wps WPS: Optimize attribute parsing workaround 2023-07-18 11:46:57 +03:00
build.rules build: Rebuild libs all the time 2020-10-12 20:18:02 +03:00
lib.rules build: lib.rules: Add common-clean 2020-10-16 12:51:12 +03:00
Makefile PASN: Move initiator changes into a separate file 2022-11-04 00:52:17 +02:00
objs.mk build: Fix dependency file inclusion 2020-10-12 11:05:16 +03:00