diff options
| author | Thiyagarajan Pandiyan <thiyagarajan@aerlync.com> | 2026-06-05 11:13:07 +0530 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-06-05 10:00:04 +0200 |
| commit | dfb67ae569bf0726187725b1ef8d89377778861e (patch) | |
| tree | 5943a6af2df997c011e9ddfab9cf7188ff935eb5 /net/wireless | |
| parent | b978c424cbfb1f5ab024db12cf7b813fa4e23ca0 (diff) | |
| download | linux-next-dfb67ae569bf0726187725b1ef8d89377778861e.tar.gz linux-next-dfb67ae569bf0726187725b1ef8d89377778861e.zip | |
wifi: nl80211: Increase ie_len size to prevent truncated IEs in new peer notifications
Currently, ie_len in cfg80211_notify_new_peer_candidate is defined as
1-byte field, capping the maximum IE list size at 255 bytes. When a
large beacon is received, the IE list is truncated, passing incomplete
data to wpa_supplicant. This causes supplicant to fail parsing the IEs.
Increasing the size of ie_len to allow the full length of the IE list to
be forwarded properly.
Signed-off-by: Thiyagarajan Pandiyan <thiyagarajan@aerlync.com>
Link: https://patch.msgid.link/20260605054307.427874-1-thiyagarajan@aerlync.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
| -rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 19244708f5c3..85057bd4d565 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -21355,7 +21355,7 @@ void nl80211_send_ibss_bssid(struct cfg80211_registered_device *rdev, } void cfg80211_notify_new_peer_candidate(struct net_device *dev, const u8 *addr, - const u8 *ie, u8 ie_len, + const u8 *ie, size_t ie_len, int sig_dbm, gfp_t gfp) { struct wireless_dev *wdev = dev->ieee80211_ptr; |
