Multiple BSSID (mBSSID) is a feature where you can have multiple virtual APs on one physical device. Here is an example how you can dynamically create and remove virtual APs.
1
start hostapd
hostapd -g /var/run/hostapd/global -b phy0:ath10k.conf -b phy0:ath10k-1.conf -b phy0:ath10k-2.conf
2
To remove an interface:
wpa_cli -g /var/run/hostapd/global raw REMOVE wlan0-2
3
To add an interface:
wpa_cli -g /var/run/hostapd/global raw ADD bss_config=phy0:ath10k-2.conf
上面这个是很老的接口了,新的接口:
hostapd -g /var/run/hostapd/global -B -P /var/run/hostapd-global.pid
wpa_cli -g /var/run/hostapd/global raw ADD bss_config=$BACKHAUL_BSS_5G:/var/run/hostapd-$BACKHAUL_BSS_5G.conf
参考
https://wireless.wiki.kernel.org/en/users/drivers/ath10k/configuration