I have been wracking my brain for a week trying to figure out PPSK on GL.iNet GL-MT6000
I have a working configuration for PPSK using the below wifi interface.
I cannot make this work alongside the physical ports.
No matter how I configure the bridge for the lan ports they will never work.
It seems like my only option is to use either PPSK or a VLAN trunk on the physical ports, not both.
This should only work properly with op24 and above.
Also worth to note:
If your bridge is just defaults br-lan, then you do not need to specify vlan_bridge that is only needed if you had a different named bridge you want the wifi devices hook in, i also see vlan_tagged_interface but this option is only important if your router is running as a dumbap type of setup and you must tag the vlans back to wan, by default it already tags it correctly as a untagged port to the bridge so it is only necessary if you need to tag it somewhere upstream.
you could use this luci trick for visibility: create a new unmanaged interface and add br-lan then you can see the bridge icon and see also the new wifi phys hook in as 'ports' it cannot be used as a real dsa port though because hostapd manages that for wifi, only use this trick as debug purpose don't let it stay to avoid network issues though.
Thanks for pointing out that typo, I tried a bunch of things even without that typo.
I typically use "switch" as my bridge and the vlans are switch.100, switch.110, etc.
My managed switch has a trunk that goes to eth1 so I do need that.
I am using openwrt but I thought this might be a flint specific issue.
What can help is the output of brctl show (you may need to scroll to right some terminal clients don't show it properly as the bridge contents output are right handed on this command).
What are the contents for vlan_file ?
Maybe this option can be skipped, the problem is kinda... the options you use are kind of ambiguous/rendurant.
OpenWrt came with a newer configuration called wifi-station and wifi-vlan, some of these options like vlan_bridge conflict with the options on vlan_file as they got introduced later for wifi-station/wifi-vlan, only one of the two options can be used, vlan_file can be used for more granular control for multiple bridges.
Can you check between the * symbol for the bridge and switch bridge for the section in that file and check if that makes sense with brctl show?
Format should be:
[VLAN_ID] [Interface_Name] [Bridge_Name]
Also it is worth to note: it is possible the log complains about unable to read these files, then chmod it to 755.
It seems you have multiple bridges with switch naming, this will make this option: option vlan_bridge 'switch' invalid, it must be set in hostapd.vlan in the following format:
#VLAN ID
#Interface
#Bridge
100
vlan100
switch100
# if bridge is not defined br-lan is used.
100 vlan100 switch100
101 vlan101 switch101
# wildcards
# Dynamic wildcard mapping: Instructs hostapd to-
# automatically generate interfaces (like wlan0.100 # for VLAN 100) using wlan0 as the parent base:
* wlan0.#
But what is odd is that I don't see the phy0 or phy1 with their vlan devices being added to the bridge.
Can you check the logs if hostapd can read those hostapd.vlan file and the hostapd.psk file?
As for the link you can visit this topic here:
If you follow this thread you can see slowly the subject changes about wifi-vlan and wifi-station some of these settings override wpa_psk_file aswell.
On the wiki you can also see some useful insights:
I use a different multi psk configuration:
Essentially if I wanted to I could also remove option wpa_psk_file and use the uncommented data but in this case I was testing a patch for fast roaming, unfortunately without patch clients still hop to vlan 1 regardless which is a issue with hostapd, also this information can be found on the OpenWrt thread.