mac80211.sh: fix deadlock on configuring multiple PHYs simultaneously
authorFelix Fietkau <nbd@nbd.name>
Sun, 22 Oct 2023 16:00:08 +0000 (18:00 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 11 Jan 2024 09:40:43 +0000 (10:40 +0100)
commitd5a1de17ade34abfa276b074e82f40a6a7b908de
tree3846fe8d76e8e181e24673355f27102516c49200
parent2d4552a96c7e5d44f9caaf1367e2be9d3775afae
mac80211.sh: fix deadlock on configuring multiple PHYs simultaneously

When hitting a timing window where ubus configuration calls are hitting hostapd
and wpa_supplicant simultaneously, they can deadlock waiting for each other.
Fix this by using a lock around the ubus calls.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh