mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-14 08:47:51 +04:00
A station whose configuration changed only in its credentials was removed and added again, or with RECONFIGURE deauthenticated, although the new settings could still allow the association in use. For example, a change from PSK and SAE to SAE only, while the station is associated with SAE, made the station associate a second time. The iface method network_update() reads the regenerated file with wpa_config_read() and, where its one network is the current one and the association in use (SSID, AKM, protocol, ciphers, PMF, the effective password and SAE PWE) still fits it, moves the credential fields into the current network without the PMKSA flush that SET_NETWORK does. Otherwise it refuses, and the caller removes and adds the interface as before. wpa_supplicant.uc takes this path for a plain station and a station MLD whose configuration differs only in the credential lines, and applies the MLD's freq_list again after it. Signed-off-by: Felix Fietkau <nbd@nbd.name>