Am 25.01.2020 um 15:14 schrieb e9hack:
> I face a strange problem. I have configured 9 wlan's. On two, clients can't 
> reach each other. I check the settings of 
> /sys/devices/virtual/net/br-xxx/lower_wlanxyz/brport/hairpin_mode. On my 5GHz 
> wifi, hairpin_mode is set to 1 only for wlan0. For wlan0-1 and wlan0-2 is 
> still at 0. On my 2.4GHz, hairpin_mode is set to 1 on all 6 wlan's. 
> 
> How can I solve this?

It looks like a problem of netifd for wlan channels with ACS/DFS. Netifd can't 
detect the if-up for interfaces on such channels and does nothing for them. As 
workaround, I add a hotplug script which checks hairpin_mode and set it to 1 if 
necessary. 

Regards,
Hartmut
 
Sun Jan 26 08:19:16 2020 daemon.notice netifd: Network device 'wlan0' link is 
down
Sun Jan 26 08:19:17 2020 daemon.notice netifd: radio0 (17599): Command failed: 
Not found
Sun Jan 26 08:19:19 2020 user.notice DEBUG: hotplug/net wifi-detection: 
hairpin_mode of wlan0 is already set to 1
Sun Jan 26 08:19:21 2020 daemon.notice hostapd: Configuration file: 
/var/run/hostapd-phy0.conf (phy wlan0) --> new PHY
Sun Jan 26 08:19:22 2020 daemon.notice hostapd: wlan0: interface state 
UNINITIALIZED->COUNTRY_UPDATE
Sun Jan 26 08:19:22 2020 daemon.notice hostapd: ACS: Automatic channel 
selection started, this may take a bit
Sun Jan 26 08:19:22 2020 daemon.notice hostapd: wlan0: interface state 
COUNTRY_UPDATE->ACS
Sun Jan 26 08:19:22 2020 daemon.notice hostapd: wlan0: ACS-STARTED
Sun Jan 26 08:19:23 2020 user.notice root: ip link set dev wlan0 up
Sun Jan 26 08:19:23 2020 user.notice root: ip link set dev wlan0-1 up
Sun Jan 26 08:19:23 2020 daemon.notice netifd: radio0 (17663): Cannot find 
device "wlan0-1"
Sun Jan 26 08:19:23 2020 daemon.notice netifd: radio0 (17663): Interface 1 
setup failed: IFUP_ERROR
Sun Jan 26 08:19:23 2020 user.notice root: ip link set dev wlan0-2 up
Sun Jan 26 08:19:23 2020 daemon.notice netifd: radio0 (17663): Cannot find 
device "wlan0-2"
Sun Jan 26 08:19:23 2020 daemon.notice netifd: radio0 (17663): Interface 2 
setup failed: IFUP_ERROR
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing noise 
floor
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing channel 
time
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing RX and 
busy time (at least one is required)
....
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing noise 
floor
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing channel 
time
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: ACS: Survey is missing RX and 
busy time (at least one is required)
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: wlan0: ACS-COMPLETED freq=5580 
channel=116
Sun Jan 26 08:19:34 2020 daemon.notice hostapd: wlan0: interface state 
ACS->HT_SCAN
Sun Jan 26 08:19:35 2020 daemon.notice hostapd: wlan0: interface state 
HT_SCAN->DFS
Sun Jan 26 08:19:35 2020 daemon.notice hostapd: wlan0: DFS-CAC-START freq=5580 
chan=116 sec_chan=1, width=1, seg0=122, seg1=0, cac_time=60s
Sun Jan 26 08:20:35 2020 daemon.notice hostapd: wlan0: DFS-CAC-COMPLETED 
success=1 freq=5580 ht_enabled=0 chan_offset=0 chan_width=3 cf1=5610 cf2=0
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.438348] IPv6: 
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.445157] br-xxx: port 1(wlan0) 
entered blocking state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.450590] br-xxx: port 1(wlan0) 
entered forwarding state
Sun Jan 26 08:20:35 2020 daemon.notice netifd: Network device 'wlan0' link is up
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.471004] br-yyy: port 
4(wlan0-1) entered blocking state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.476606] br-yyy: port 
4(wlan0-1) entered disabled state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.482625] device wlan0-1 
entered promiscuous mode
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.508642] IPv6: 
ADDRCONF(NETDEV_UP): wlan0-1: link is not ready
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.514983] br-yyy: port 
4(wlan0-1) entered blocking state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.520594] br-yyy: port 
4(wlan0-1) entered forwarding state
Sun Jan 26 08:20:35 2020 user.notice DEBUG: hotplug/net wifi-detection: set 
hairpin_mode for wlan0-1 from 0 to 1
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.670540] IPv6: 
ADDRCONF(NETDEV_CHANGE): wlan0-1: link becomes ready
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.690793] br-yyy: port 
5(wlan0-2) entered blocking state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.696393] br-yyy: port 
5(wlan0-2) entered disabled state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.702461] device wlan0-2 
entered promiscuous mode
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.728142] IPv6: 
ADDRCONF(NETDEV_UP): wlan0-2: link is not ready
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.734502] br-yyy: port 
5(wlan0-2) entered blocking state
Sun Jan 26 08:20:35 2020 kern.info kernel: [28910.740078] br-yyy: port 
5(wlan0-2) entered forwarding state
Sun Jan 26 08:20:35 2020 user.notice DEBUG: hotplug/net wifi-detection: set 
hairpin_mode for wlan0-2 from 0 to 1

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to