[PATCH 13/16] mac80211: Fix the size used for building probe request
From: Luca Coelho <hidden>
Date: 2021-11-29 13:35:21
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
From: Luca Coelho <hidden>
Date: 2021-11-29 13:35:21
Subsystem:
mac80211, the rest · Maintainers:
Johannes Berg, Linus Torvalds
From: Ilan Peer <redacted> Instead of using the hard-coded value of '100' use the correct scan IEs length as calculated during HW registration to mac80211. Signed-off-by: Ilan Peer <redacted> Signed-off-by: Luca Coelho <redacted> --- net/mac80211/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 4b102d5863cf..1e306ea2f625 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c@@ -2063,7 +2063,7 @@ struct sk_buff *ieee80211_build_probe_req(struct ieee80211_sub_if_data *sdata, chandef.chan = chan; skb = ieee80211_probereq_get(&local->hw, src, ssid, ssid_len, - 100 + ie_len); + local->scan_ies_len + ie_len); if (!skb) return NULL;
--
2.33.1