diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-15 16:13:46 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-17 03:31:23 -0700 |
commit | d6b5205c4674173e05d9fc421dcf898314c62d8d (patch) | |
tree | 3c5cea428c0b636e3aac7af671bfb009a992536f /plugins/wifi.c | |
parent | a59c6e4a0176ca9ad05c1980dcebfbb07b8a188f (diff) | |
download | connman-d6b5205c4674173e05d9fc421dcf898314c62d8d.tar.gz connman-d6b5205c4674173e05d9fc421dcf898314c62d8d.tar.bz2 connman-d6b5205c4674173e05d9fc421dcf898314c62d8d.zip |
[SPIN] request RemoveNetwork when disconnected to stop scanning in supplicant.
Change-Id: I4248b2de4d00d4218dcfac078bcda3e95db83896
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'plugins/wifi.c')
-rwxr-xr-x | plugins/wifi.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 4bf40473..499c73e4 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -2673,6 +2673,12 @@ static void interface_state(GSupplicantInterface *interface) DBG("Could not disables selected network"); #if defined TIZEN_EXT + int err; + + err = g_supplicant_interface_remove_network(wifi->interface); + if (err < 0) + DBG("Failed to remove network(%d)", err); + /* Some of Wi-Fi networks are not comply Wi-Fi specification. * Retry association until its retry count is expired */ if (handle_wifi_assoc_retry(network, wifi) == true) { @@ -2684,8 +2690,6 @@ static void interface_state(GSupplicantInterface *interface) /* To avoid unnecessary repeated association in wpa_supplicant, * "RemoveNetwork" should be made when Wi-Fi is disconnected */ if (wps != true && wifi->network && wifi->disconnecting == false) { - int err; - wifi->disconnecting = true; err = g_supplicant_interface_disconnect(wifi->interface, disconnect_callback, wifi->network); |