hostapd: fix a race condition on adding AP mode wds sta interfaces
authorFelix Fietkau <nbd@nbd.name>
Wed, 20 Oct 2021 19:13:10 +0000 (21:13 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 23 Nov 2021 17:30:04 +0000 (18:30 +0100)
commit9b660c63ad28b60ef6efc0283238635b64a9ca4a
tree656d3211f343ad7a4d4aa91265c416413bfdc78c
parentd9373c5922183e2799e361f4787a7f027b098929
hostapd: fix a race condition on adding AP mode wds sta interfaces

Both hostapd and netifd attempt to add a VLAN device to a bridge.
Depending on which one wins the race, bridge vlan settings might be incomplete,
or hostapd might run into an error and refuse to service the client.
Fix this by preventing hostapd from adding interfaces to the bridge and
instead rely entirely on netifd handling this properly

Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry-picked from commit da4be02fcd5d642954b1c9d9855d9e8d1e6205f4)
(cherry-picked from commit 63c01ad025981eaa841353dc0fc27e5017febe21)
package/network/services/hostapd/files/hostapd.sh
package/network/services/hostapd/patches/711-wds_bridge_force.patch [new file with mode: 0644]
package/network/services/hostapd/patches/740-snoop_iface.patch