mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
wifi: mac80211_hwsim: add support for BSS color
Advertise support for BSS color and then once the countdown reaches 0, call color change finish. Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com> Link: https://msgid.link/20240422053412.2024075-8-quic_adisi@quicinc.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
414e736c3d
commit
daf85b78a1
1 changed files with 6 additions and 0 deletions
|
@ -2313,6 +2313,10 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
|
|||
|
||||
if (link_conf->csa_active && ieee80211_beacon_cntdwn_is_complete(vif, link_id))
|
||||
ieee80211_csa_finish(vif, link_id);
|
||||
|
||||
if (link_conf->color_change_active &&
|
||||
ieee80211_beacon_cntdwn_is_complete(vif, link_id))
|
||||
ieee80211_color_change_finish(vif, link_id);
|
||||
}
|
||||
|
||||
static enum hrtimer_restart
|
||||
|
@ -5323,6 +5327,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
|
|||
|
||||
wiphy_ext_feature_set(hw->wiphy,
|
||||
NL80211_EXT_FEATURE_SCAN_MIN_PREQ_CONTENT);
|
||||
wiphy_ext_feature_set(hw->wiphy,
|
||||
NL80211_EXT_FEATURE_BSS_COLOR);
|
||||
|
||||
hw->wiphy->interface_modes = param->iftypes;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue