diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 6c2934854d3cedf293ef568ac0fddd20e8b174b1..fe2903b84cebf1872d6c39281234bbe2acfdeff1 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -2068,7 +2068,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;