summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAloka Dixit <quic_alokad@quicinc.com>2022-12-06 03:50:39 +0300
committerJohannes Berg <johannes.berg@intel.com>2023-03-22 15:55:03 +0300
commitc4f4d9f7e7f0a7af82b086354c9277fc8446fe9c (patch)
tree885fd072eb4f462fa7ba1cbc9ed1c578213ac197
parentb3a912e3e220257a25219cd81b9aa8a639cb1e18 (diff)
downloadlinux-c4f4d9f7e7f0a7af82b086354c9277fc8446fe9c.tar.xz
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>
-rw-r--r--drivers/net/wireless/virtual/mac80211_hwsim.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/virtual/mac80211_hwsim.c b/drivers/net/wireless/virtual/mac80211_hwsim.c
index 0b4f489c8036..58ceabbd1550 100644
--- a/drivers/net/wireless/virtual/mac80211_hwsim.c
+++ b/drivers/net/wireless/virtual/mac80211_hwsim.c
@@ -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);