This has been answered: no, you cannot bridge (on the data link layer 2) an AP-type wlan station to a non-AP wlan station, such as between wlan0
and wlan1
, or non-AP wlan0
and eth0
. Bridging only works between an AP-mode wlan0
and eth0
. Period.
The reason is not a driver issue, but the 3-MAC-address model of the IEEE 802.11 Wifi/WLAN standard. As a minor side note: a repeater is not a bridge, as it just electrically regenerates signals, but has no intelligence beyond. In contrast, a bridge decides what to do with frames it receives based on the destination MAC address (and even more criteria).
With 3 MAC addresses it is possible to reach an IEEE 802.11 station from a bridged IEEE 802.1D/Q network, but it is not possible to address any further device beyond a 802.11 station. With the shared radio medium you need MAC addresses for the radio link itself, and then you would also need the ultimate source and destination MACs. For whatever reason, the IEEE 802.11 settled for a 3 MAC address model instead of the full 4 MAC address model, probably because it makes things easier and cheaper to develop and produce. While there is room in the protocol for a fourth address, it never has been standardized.
The only way is to give up on bridging in this setup and go with the IP network layer: deploy routing, and optionally NAT in case of IPv4.
wlan0
andwlan1
first and getting this up and running using IP routing or IP NATing? Then you can start optimizing by trying to get virtual WLAN interfaces working on the same interface hardware. – TheDiveO Aug 01 '17 at 19:04