summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-02-02 10:49:34 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-02-04 16:22:39 +0100
commit1f2c104448477512fcf7296df54bfbc3a6f9a765 (patch)
tree414e4f209053ce34544f7b68be6ba1c2c2f55b6f /net/mac80211/mesh.c
parentb4bb8469e90ec75c0ce81fcf6a9c3abd2f18e005 (diff)
downloadlinux-stable-1f2c104448477512fcf7296df54bfbc3a6f9a765.tar.gz
linux-stable-1f2c104448477512fcf7296df54bfbc3a6f9a765.tar.bz2
linux-stable-1f2c104448477512fcf7296df54bfbc3a6f9a765.zip
mac80211: limit bandwidth in HE capabilities
If we're limiting bandwidth for some reason such as regulatory restrictions, then advertise that limitation just like we do for VHT today, so the AP is aware we cannot use the higher BW it might be using. Fixes: 41cbb0f5a295 ("mac80211: add support for HE") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/iwlwifi.20220202104617.70c8e3e7ee76.If317630de69ff1146bec7d47f5b83038695eb71d@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh.c')
-rw-r--r--net/mac80211/mesh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c
index 15ac08d111ea..6847fdf93439 100644
--- a/net/mac80211/mesh.c
+++ b/net/mac80211/mesh.c
@@ -580,7 +580,7 @@ int mesh_add_he_cap_ie(struct ieee80211_sub_if_data *sdata,
return -ENOMEM;
pos = skb_put(skb, ie_len);
- ieee80211_ie_build_he_cap(pos, he_cap, pos + ie_len);
+ ieee80211_ie_build_he_cap(0, pos, he_cap, pos + ie_len);
return 0;
}