summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2022-06-04 23:55:17 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2022-06-05 17:55:17 +0900
commit9d93424503e09e3ee2ef788d37bb2608e0e9d7a0 (patch)
treee00a794cfd197c570e77ac056d3ee5b13077a5e2
parent4e842a9ceb1ed629777f30343fc98c415fc289d9 (diff)
downloadconnman-9d93424503e09e3ee2ef788d37bb2608e0e9d7a0.tar.gz
connman-9d93424503e09e3ee2ef788d37bb2608e0e9d7a0.tar.bz2
connman-9d93424503e09e3ee2ef788d37bb2608e0e9d7a0.zip
Try to connect to another bssid in AUTH or ASSOCICATED failure case
When attempting to connect to an AP with multiple bssids, if it fails in the AUTHENTICATING or ASSOCIATED state, the connection continues to be attempted with the same bssid. In this case, it has been modified to try to connect to another bssid. Change-Id: Ied521e01c71e8c6c916d56dc825578d8edd20e0c Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
-rwxr-xr-xplugins/wifi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c
index 82168162..344d0bb9 100755
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -4214,10 +4214,12 @@ static bool handle_wps_completion(GSupplicantInterface *interface,
static bool handle_assoc_status_code(GSupplicantInterface *interface,
struct wifi_data *wifi)
{
- if (wifi->state == G_SUPPLICANT_STATE_ASSOCIATING &&
#if defined TIZEN_EXT
- wifi->assoc_code > 0 &&
+ if ((wifi->state == G_SUPPLICANT_STATE_ASSOCIATING ||
+ wifi->state == G_SUPPLICANT_STATE_AUTHENTICATING ||
+ wifi->state == G_SUPPLICANT_STATE_ASSOCIATED) &&
#else
+ if (wifi->state == G_SUPPLICANT_STATE_ASSOCIATING &&
wifi->assoc_code == ASSOC_STATUS_NO_CLIENT &&
#endif
wifi->load_shaping_retries < LOAD_SHAPING_MAX_RETRIES) {