Commit e488da34 authored by Dmitry Shmidt's avatar Dmitry Shmidt Committed by The Android Automerger
Browse files

Fix 'restore STA reconnection behavior' cherry-pick


BUG: b/6400311

Change-Id: I7b90ab9b5430b92e9e4e5702c3b1805a6bbc0b9a
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 6b24b492
......@@ -423,6 +423,13 @@ struct wpa_ssid {
*/
int export_keys;
#ifdef ANDROID_P2P
/**
* assoc_retry - Number of times association should be retried.
*/
int assoc_retry;
#endif
#ifdef CONFIG_HT_OVERRIDES
/**
* disable_ht - Disable HT (IEEE 802.11n) for this network
......
......@@ -582,8 +582,9 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
wpa_supplicant_state_txt(state));
#ifdef ANDROID_P2P
if(state == WPA_ASSOCIATED || (state <= WPA_INACTIVE))
wpa_s->assoc_retries = 0;
if(state == WPA_ASSOCIATED && wpa_s->current_ssid) {
wpa_s->current_ssid->assoc_retry = 0;
}
#endif /* ANDROID_P2P */
if (state != WPA_SCANNING)
......
......@@ -276,9 +276,6 @@ struct wpa_supplicant {
struct wpa_bss *current_bss;
int ap_ies_from_associnfo;
unsigned int assoc_freq;
#ifdef ANDROID_P2P
unsigned int assoc_retries;
#endif
/* Selected configuration (based on Beacon/ProbeResp WPA IE) */
int pairwise_cipher;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment