hostapd: allow adding initial AP without breaking STA interface connection
authorFelix Fietkau <nbd@nbd.name>
Sun, 3 Sep 2023 07:51:28 +0000 (09:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 3 Sep 2023 07:51:28 +0000 (09:51 +0200)
commit4a0b1af905694b4e5206207672e67c364d3b47a1
treea60a85a179f770b86af02fad1e9ea79659fe91da
parentd65354488d2ff9187907c92c7f30e3072441ed83
hostapd: allow adding initial AP without breaking STA interface connection

When switching from a STA-only configuration to AP+STA on the same phy, the
STA was previously restarted in order to notify hostapd of the new frequency,
which might not match the AP configuration.
Fix the STA restart by querying the operating frequency from within hostapd
when bringing up the AP.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
package/network/services/hostapd/files/hostapd.uc
package/network/services/hostapd/files/wpa_supplicant.uc
package/network/services/hostapd/src/src/ap/ucode.c