Remove reassociated_connection variable
This was used to select between "(auth)" and "(reauth)" in CTRL-EVENT-CONNECTED events. However, the variable was not cleared anywhere else apart from the AP deinit case. As such, it did not really provide correct information and is not really of much use even with proper clearing added. As such, it is cleaner to just get rid of this altogether. Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6350a148c4
commit
1cfc678723
3 changed files with 2 additions and 6 deletions
|
@ -603,7 +603,6 @@ void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s)
|
|||
|
||||
wpa_s->current_ssid = NULL;
|
||||
wpa_s->assoc_freq = 0;
|
||||
wpa_s->reassociated_connection = 0;
|
||||
#ifdef CONFIG_P2P
|
||||
if (wpa_s->ap_iface->bss)
|
||||
wpa_s->ap_iface->bss[0]->p2p_group = NULL;
|
||||
|
|
|
@ -658,16 +658,14 @@ void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
|
|||
#if defined(CONFIG_CTRL_IFACE) || !defined(CONFIG_NO_STDOUT_DEBUG)
|
||||
struct wpa_ssid *ssid = wpa_s->current_ssid;
|
||||
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_CONNECTED "- Connection to "
|
||||
MACSTR " completed %s [id=%d id_str=%s]",
|
||||
MAC2STR(wpa_s->bssid), wpa_s->reassociated_connection ?
|
||||
"(reauth)" : "(auth)",
|
||||
MACSTR " completed [id=%d id_str=%s]",
|
||||
MAC2STR(wpa_s->bssid),
|
||||
ssid ? ssid->id : -1,
|
||||
ssid && ssid->id_str ? ssid->id_str : "");
|
||||
#endif /* CONFIG_CTRL_IFACE || !CONFIG_NO_STDOUT_DEBUG */
|
||||
wpas_clear_temp_disabled(wpa_s, ssid, 1);
|
||||
wpa_s->extra_blacklist_count = 0;
|
||||
wpa_s->new_connection = 0;
|
||||
wpa_s->reassociated_connection = 1;
|
||||
wpa_drv_set_operstate(wpa_s, 1);
|
||||
#ifndef IEEE8021X_EAPOL
|
||||
wpa_drv_set_supp_port(wpa_s, 1);
|
||||
|
|
|
@ -384,7 +384,6 @@ struct wpa_supplicant {
|
|||
int scanning;
|
||||
int sched_scanning;
|
||||
int new_connection;
|
||||
int reassociated_connection;
|
||||
|
||||
int eapol_received; /* number of EAPOL packets received after the
|
||||
* previous association event */
|
||||
|
|
Loading…
Reference in a new issue