[PATCH v2 28/33] FT: radius accounting after roaming

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For FT stations, wpa_auth_sta_associated forces the station directly
into sm->wpa_ptk_state = WPA_PTK_PTKINITDONE. Therefore
WPA_EAPOL_authorized with authorized = 1 is not emitted by WPA state
machine and thus ieee802_1x_set_sta_authorized(..., 1) not called.

Thus accounting was not started.

Signed-off-by: Michael Braun <michael-dev@xxxxxxxxxxxxx>
---
 src/ap/ieee802_11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c
index 7da3784..1c871e3 100644
--- a/src/ap/ieee802_11.c
+++ b/src/ap/ieee802_11.c
@@ -2890,7 +2890,7 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
 		 * Open, static WEP, or FT protocol; no separate authorization
 		 * step.
 		 */
-		ap_sta_set_authorized(hapd, sta, 1);
+		ieee802_1x_set_sta_authorized(hapd, sta, 1);
 	}
 
 	if (reassoc)
-- 
2.1.4


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux