Skip to content

Commit

Permalink
Merge branch 'bugfix/reason_code_pmk_flush' into 'master'
Browse files Browse the repository at this point in the history
Prevent pmk flush for unspecified reasoncode

Closes WIFI-4796

See merge request espressif/esp-idf!20459
  • Loading branch information
jack0c committed Oct 13, 2022
2 parents 55eaf66 + 198a433 commit 72a70f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions components/wpa_supplicant/esp_supplicant/src/esp_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ static void supplicant_sta_disconn_handler(void* arg, esp_event_base_t event_bas
int32_t event_id, void* event_data)
{
struct wpa_supplicant *wpa_s = &g_wpa_supp;
wifi_event_sta_disconnected_t *disconn = event_data;

#ifdef CONFIG_WPA_11KV_SUPPORT
wpas_rrm_reset(wpa_s);
Expand All @@ -244,10 +243,6 @@ static void supplicant_sta_disconn_handler(void* arg, esp_event_base_t event_bas
if (wpa_s->current_bss) {
wpa_s->current_bss = NULL;
}

if (disconn->reason != WIFI_REASON_ROAMING) {
clear_bssid_flag(wpa_s);
}
}

#ifdef CONFIG_IEEE80211R
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ int wpa_parse_wpa_ie_wrapper(const u8 *wpa_ie, size_t wpa_ie_len, wifi_wpa_ie_t
static void wpa_sta_disconnected_cb(uint8_t reason_code)
{
switch (reason_code) {
case WIFI_REASON_UNSPECIFIED:
case WIFI_REASON_AUTH_EXPIRE:
case WIFI_REASON_NOT_AUTHED:
case WIFI_REASON_NOT_ASSOCED:
Expand Down

0 comments on commit 72a70f0

Please sign in to comment.