From 651cb1422e52cd33a6aa0a409ffb196c65b01b6c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 7 Sep 2023 22:11:18 +0200 Subject: [PATCH] mac80211: add multiple BSSID support This advertises multiple BSS interfaces in a single set of beacons Signed-off-by: Felix Fietkau --- .../kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 91728a6e563e..357277fbf713 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -27,7 +27,7 @@ drv_mac80211_init_device_config() { config_add_string distance config_add_int beacon_int chanbw frag rts config_add_int rxantenna txantenna txpower min_tx_power - config_add_int num_global_macaddr + config_add_int num_global_macaddr multiple_bssid config_add_boolean noscan ht_coex acs_exclude_dfs background_radar config_add_array ht_capab config_add_array channels @@ -488,6 +488,7 @@ ${channel:+channel=$channel} ${channel_list:+chanlist=$channel_list} ${hostapd_noscan:+noscan=1} ${tx_burst:+tx_queue_data2_burst=$tx_burst} +mbssid=$multiple_bssid $base_cfg EOF @@ -534,7 +535,7 @@ mac80211_generate_mac() { local phy="$1" local id="${macidx:-0}" - wdev_tool "$phy" get_macaddr id=$id num_global=$num_global_macaddr + wdev_tool "$phy" get_macaddr id=$id num_global=$num_global_macaddr mbssid=$multiple_bssid } get_board_phy_name() ( @@ -1042,7 +1043,7 @@ drv_mac80211_setup() { txpower \ rxantenna txantenna \ frag rts beacon_int:100 htmode \ - num_global_macaddr:1 + num_global_macaddr:1 multiple_bssid:0 json_get_values basic_rate_list basic_rate json_get_values scan_list scan_list json_select .. -- 2.30.2