aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/dbus/dbus_old_handlers.c
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2010-03-06 09:13:50 (GMT)
committerJouni Malinen <j@w1.fi>2010-03-06 09:13:50 (GMT)
commitaa53509ffefed41bb08ded90d9cbe67738876c7c (patch)
treeebe455e4e4667cbcca0418d191df27df967f2c1d /wpa_supplicant/dbus/dbus_old_handlers.c
parent09bd6e8cca713adc35dac214daa8d71c254a651d (diff)
downloadhostap-aa53509ffefed41bb08ded90d9cbe67738876c7c.zip
hostap-aa53509ffefed41bb08ded90d9cbe67738876c7c.tar.gz
hostap-aa53509ffefed41bb08ded90d9cbe67738876c7c.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant/dbus/dbus_old_handlers.c')
-rw-r--r--wpa_supplicant/dbus/dbus_old_handlers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/dbus/dbus_old_handlers.c b/wpa_supplicant/dbus/dbus_old_handlers.c
index 6527e66..ef60b8f 100644
--- a/wpa_supplicant/dbus/dbus_old_handlers.c
+++ b/wpa_supplicant/dbus/dbus_old_handlers.c
@@ -997,6 +997,8 @@ DBusMessage * wpas_dbus_iface_set_network(DBusMessage *message,
value[0] == '"' && ssid->ssid_len) ||
(os_strcmp(entry.key, "ssid") == 0 && ssid->passphrase))
wpa_config_update_psk(ssid);
+ else if (os_strcmp(entry.key, "priority") == 0)
+ wpa_config_update_prio_list(wpa_s->conf);
os_free(value);
wpa_dbus_dict_entry_clear(&entry);