Skip to content
Permalink
Browse files
nl80211: limit band information in non-split data
In non-split data, we shouldn't be adding S1G and 6 GHz
data (or future bands) since we're really close to the
4k message size limit. Remove those bands, any modern
userspace that can use S1G or 6 GHz should already be
using split dumps, and if not then it needs to update.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
  • Loading branch information
jmberg-intel authored and intel-lab-lkp committed Jul 12, 2021
1 parent 5e43741 commit 8b9f518558f83c5997dd9d6789623641ee5854b5
Showing 1 changed file with 4 additions and 1 deletion.
@@ -2351,7 +2351,10 @@ static int nl80211_send_wiphy(struct cfg80211_registered_device *rdev,
goto nla_put_failure;

for (band = state->band_start;
band < NUM_NL80211_BANDS; band++) {
band < state->split ?
NUM_NL80211_BANDS :
NL80211_BAND_60GHZ + 1;
band++) {
struct ieee80211_supported_band *sband;

/* omit higher bands for ancient software */

0 comments on commit 8b9f518

Please sign in to comment.