Update priority list after priority change
Despite comments in the wpa_config_update_prio_list(struct wpa_config *config) telling that it is called "if priority for a network is changed", it is apparently not. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
09bd6e8cca
commit
aa53509ffe
5 changed files with 13 additions and 3 deletions
|
@ -1092,6 +1092,8 @@ static int wpa_supplicant_ctrl_iface_set_network(
|
|||
value[0] == '"' && ssid->ssid_len) ||
|
||||
(os_strcmp(name, "ssid") == 0 && ssid->passphrase))
|
||||
wpa_config_update_psk(ssid);
|
||||
else if (os_strcmp(name, "priority") == 0)
|
||||
wpa_config_update_prio_list(wpa_s->conf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue