Authentication request timeout message fix

Matthew "mentor" Bell mentor
Thu Sep 13 20:55:12 PDT 2007


The wrong bssid is printed if wpa_s->bssid is zeroed.


--- wpa_supplicant.c.orig	2007-05-17 21:06:12.000000000 +0100
+++ wpa_supplicant.c	2007-05-17 21:06:30.000000000 +0100
@@ -523,7 +523,7 @@
 	if (os_memcmp(bssid, "\x00\x00\x00\x00\x00\x00", ETH_ALEN) == 0)
 		bssid = wpa_s->pending_bssid;
 	wpa_msg(wpa_s, MSG_INFO, "Authentication with " MACSTR " timed out.",
-		MAC2STR(wpa_s->bssid));
+		MAC2STR(bssid));
 	wpa_blacklist_add(wpa_s, bssid);
 	wpa_sm_notify_disassoc(wpa_s->wpa);
 	wpa_supplicant_disassociate(wpa_s, WLAN_REASON_DEAUTH_LEAVING);

Signed off, permission to license as you wish and so on.

Matthew W. S. Bell






More information about the Hostap mailing list