State clear when assoc_reject
authorsunil85.kim <sunil85.kim@samsung.com>
Wed, 17 Apr 2013 13:38:16 +0000 (22:38 +0900)
committersunil85.kim <sunil85.kim@samsung.com>
Wed, 17 Apr 2013 13:38:16 +0000 (22:38 +0900)
debian/changelog
packaging/wpasupplicant.spec
wpa_supplicant/events.c

index 9cdd05f..6ab8f97 100644 (file)
@@ -1,3 +1,11 @@
+wpasupplicant (1.0.0-1) precise; urgency=low
+
+  * State clear when assoc_reject
+  * Git: framework/connectivity/wpasupplicant
+  * Tag: wpasupplicant_1.0.1
+
+ -- sunil85.kim <isurit@sunil85.kim>  Wed, 17 Apr 2013 22:33:27 +0900
+
 wpasupplicant (1.0.0-0slp2+1) unstable; urgency=low
 
   * Enable debug log for developers
index 8d53bde..f0aef0c 100644 (file)
@@ -1,6 +1,6 @@
 Name:      wpasupplicant
 Summary:    Support for WPA and WPA2 (IEEE 802.11i / RSN)
-Version:    1.0.0
+Version:    1.0.1
 Release:    1
 Group:      System/Network
 License:    BSD license
index 7b289ca..b1095b5 100644 (file)
@@ -2178,6 +2178,16 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
                                data->assoc_reject.status_code);
                if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
                        sme_event_assoc_reject(wpa_s, data);
+
+#if defined TIZEN_EXT
+       wpa_supplicant_cancel_auth_timeout(wpa_s);
+       /* Clear the states */
+       wpa_sm_notify_disassoc(wpa_s->wpa);
+       wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);
+       wpa_s->reassociate = 1;
+       wpa_supplicant_req_scan(wpa_s, 1, 0);
+#endif
+
                break;
        case EVENT_AUTH_TIMED_OUT:
                if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)