netifd issue

e9hack e9hack at gmail.com
Thu Nov 9 07:32:37 PST 2023


Hi,

I face a strange behaviour since commit 516ab774cc16d4b04b3b17a067cbf2649f1adaeb (system-linux: fix race condition on bringing up wireless devices). After a reboot or a full restart of hostapd via 'wifi down; sleep 30; killall hostapd; sleep 5; wifi', only the first of 3 5G AP's is join to the configured bridge. The two faulty AP's are up and connecting is possible, but there is no real network connection. If I change one parameter of the faulty AP's in the config file and do a 'wifi reload', than the 2 AP's are join to the bridges.

Result from 'brctl show' for br-lan and br-tor if two AP's are not working:
bridge name bridge id               STP enabled     interfaces
br-lan      7fff.xxxxxxxxxxxx       no              lan1
                                                     lan2
                                                     phy0-ap0
                                                     phy0-ap1
                                                     phy0-ap6
                                                     phy0-ap7
                                                     phy1-ap0
br-tor      7fff.xxxxxxxxxxxx       no              phy0-ap5

Result from 'brctl show' for  br-lan and br-tor if all AP's are working:
bridge name bridge id               STP enabled     interfaces
br-lan      7fff.xxxxxxxxxxxx       no              lan1
                                                     lan2
                                                     phy0-ap0    2G wpa3-mixed
                                                     phy0-ap1    2G sae-mixed
                                                     phy0-ap6    2G sae
                                                     phy0-ap7    2G wpa3
                                                     phy1-ap0    5G sae-mixed
                                                     phy1-ap1    5G wpa3-mixed
br-tor      7fff.xxxxxxxxxxxx       no              phy0-ap5    2G sae-mixed
                                                     phy1-ap2    5G sae-mixed

If I change the sequence of the 5G AP's in the config file, the behaviour after reboot doesn't change. Only phy1-ap0 does join to the bridge, either to br-lan or to br-tor. The previous netifd commit 40ed7363caf2b22b6e29ed9d9948189c2bc4c8f3 (device: fix build error on 32 bit systems) doesn't have this issue.

Regards,
Hartmut



More information about the openwrt-devel mailing list