From: Jaehyun Kim Date: Sat, 4 Jun 2022 14:55:17 +0000 (+0900) Subject: Try to connect to another bssid in AUTH or ASSOCICATED failure case X-Git-Tag: accepted/tizen/unified/20220620.131713~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fconnman.git;a=commitdiff_plain;h=6f671cba027a3778c1a867e2c732580a24cbe2e6 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 --- diff --git a/plugins/wifi.c b/plugins/wifi.c index bcb9344..41b8925 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -4458,10 +4458,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) {