summaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 0325133552ad..b744b10465c3 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1433,6 +1433,9 @@ static int ieee80211_build_preq_ies_band(struct ieee80211_local *local,
1433 chandef->chan->center_freq); 1433 chandef->chan->center_freq);
1434 } 1434 }
1435 1435
1436 if (flags & IEEE80211_PROBE_FLAG_MIN_CONTENT)
1437 goto done;
1438
1436 /* insert custom IEs that go before HT */ 1439 /* insert custom IEs that go before HT */
1437 if (ie && ie_len) { 1440 if (ie && ie_len) {
1438 static const u8 before_ht[] = { 1441 static const u8 before_ht[] = {
@@ -1510,6 +1513,7 @@ static int ieee80211_build_preq_ies_band(struct ieee80211_local *local,
1510 return pos - buffer; 1513 return pos - buffer;
1511 out_err: 1514 out_err:
1512 WARN_ONCE(1, "not enough space for preq IEs\n"); 1515 WARN_ONCE(1, "not enough space for preq IEs\n");
1516 done:
1513 return pos - buffer; 1517 return pos - buffer;
1514} 1518}
1515 1519