PATCH: remove_sta in wpa_sta_disconnect()

Gunter Burchardt gbur
Tue Aug 17 23:50:24 PDT 2004


Here is the patch
-------------- next part --------------
diff -Nur hostap.old/hostapd/accounting.c hostap/hostapd/accounting.c
--- hostap.old/hostapd/accounting.c	2004-07-26 05:58:29.000000000 +0200
+++ hostap/hostapd/accounting.c	2004-08-18 08:41:03.000000000 +0200
@@ -258,6 +258,9 @@
 		return;
 	}
 
+	if(stop && !cause)
+		cause = RADIUS_ACCT_TERMINATE_CAUSE_NAS_ERROR;
+
 	if (!radius_msg_add_attr_int32(msg, RADIUS_ATTR_ACCT_SESSION_TIME,
 				       time(NULL) - sta->acct_session_start)) {
 		printf("Could not add Acct-Session-Time\n");
diff -Nur hostap.old/hostapd/wpa.c hostap/hostapd/wpa.c
--- hostap.old/hostapd/wpa.c	2004-08-10 03:01:20.000000000 +0200
+++ hostap/hostapd/wpa.c	2004-08-17 15:54:51.000000000 +0200
@@ -347,8 +347,6 @@
 	ieee802_11_send_deauth(hapd, sta->addr,
 			       WLAN_REASON_PREV_AUTH_NOT_VALID);
 	sta->flags &= ~(WLAN_STA_AUTH | WLAN_STA_ASSOC | WLAN_STA_AUTHORIZED);
-	if (hapd->driver.remove_sta)
-		hapd->driver.remove_sta(hapd->driver.data, sta->addr);
 	eloop_cancel_timeout(ap_handle_timer, hapd, sta);
 	eloop_register_timeout(0, 0, ap_handle_timer, hapd, sta);
 	sta->timeout_next = STA_REMOVE;



More information about the Hostap mailing list