Try to connect to another bssid in AUTH or ASSOCICATED failure case 90/275890/2
authorJaehyun Kim <jeik01.kim@samsung.com>
Sat, 4 Jun 2022 14:55:17 +0000 (23:55 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Sat, 4 Jun 2022 15:04:01 +0000 (00:04 +0900)
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>
plugins/wifi.c

index bcb9344..41b8925 100755 (executable)
@@ -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) {