mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
wifi: mac80211_hwsim: Multiple BSSID support
Advertise multiple BSSID support for up to 8 interfaces. Do not send beacons from the non-transmitting interfaces. Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com> Link: https://lore.kernel.org/r/20221206005040.3177-4-quic_alokad@quicinc.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
b3a912e3e2
commit
c4f4d9f7e7
@ -2122,6 +2122,9 @@ static void mac80211_hwsim_beacon_tx(void *arg, u8 *mac,
|
||||
vif->type != NL80211_IFTYPE_OCB)
|
||||
return;
|
||||
|
||||
if (vif->mbssid_tx_vif && vif->mbssid_tx_vif != vif)
|
||||
return;
|
||||
|
||||
skb = ieee80211_beacon_get(hw, vif, link_id);
|
||||
if (!skb)
|
||||
return;
|
||||
@ -4405,6 +4408,8 @@ static int mac80211_hwsim_new_radio(struct genl_info *info,
|
||||
hw->wiphy->n_cipher_suites = param->n_ciphers;
|
||||
}
|
||||
|
||||
hw->wiphy->mbssid_max_interfaces = 8;
|
||||
|
||||
data->rx_rssi = DEFAULT_RX_RSSI;
|
||||
|
||||
INIT_DELAYED_WORK(&data->roc_start, hw_roc_start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user