Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mac80211: update bssid_indicator in ieee80211_assign_beacon

Update bssid_indicator in ieee80211_bss_conf according to the
number of bssid in the set.

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/f92317e002fca9933f05a445fcefb4f53291d601.1645702516.git.lorenzo@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Lorenzo Bianconi and committed by
Johannes Berg
dde78aa5 c9eb90a5

+3
+3
net/mac80211/cfg.c
··· 1071 1071 new->mbssid_ies = (void *)pos; 1072 1072 pos += struct_size(new->mbssid_ies, elem, mbssid->cnt); 1073 1073 ieee80211_copy_mbssid_beacon(pos, new->mbssid_ies, mbssid); 1074 + /* update bssid_indicator */ 1075 + sdata->vif.bss_conf.bssid_indicator = 1076 + ilog2(__roundup_pow_of_two(mbssid->cnt + 1)); 1074 1077 } 1075 1078 1076 1079 if (csa) {