You may be able to setup something like this from OpenWrt wireless
config (without modifying hostapd config files), with wifi-vlan
and wifi-station
stanzas, example: HaP AC2 (ipq4018) + hostapd dynamic vlans, source: https://lxr.openwrt.org/source/netifd/wireless.c, https://github.com/openwrt/openwrt/blob/1998027d7cbb9d8f3986964bbdae070296bdce56/package/network/services/hostapd/files/hostapd.sh#L392, but have seen bugs in ath10k firmware around this.
3 Likes