mesh: Remove duplicated no_auto_peer update
authorJouni Malinen <j@w1.fi>
Sat, 7 Feb 2015 14:19:53 +0000 (16:19 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 7 Feb 2015 14:19:53 +0000 (16:19 +0200)
Commit 07cb45ccb2baa6e9627e3d21a285b95d744a6c77 ('mesh: Add no_auto_peer
config option') added a new struct wpa_ssid argument and added an
unnecessary parsing and setting of the value in
wpa_supplicant_ctrl_iface_update_network(). This is not needed since
wpa_config_set() takes care of parsing the parameters.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 428a496..7a77a7f 100644 (file)
@@ -2930,8 +2930,6 @@ static int wpa_supplicant_ctrl_iface_update_network(
                wpa_config_update_psk(ssid);
        else if (os_strcmp(name, "priority") == 0)
                wpa_config_update_prio_list(wpa_s->conf);
-       else if (os_strcmp(name, "no_auto_peer") == 0)
-               ssid->no_auto_peer = atoi(value);
 
        return 0;
 }