madwifi session timeout issue

Jouni Malinen jkmaline
Sun Nov 19 09:00:43 PST 2006


On Tue, Nov 14, 2006 at 05:28:59PM -0700, Ahmet Basagalar wrote:

> I have noticed that session timeout was not working properly with hostapd 
> and madwifi driver. The reason is because WLAN_STA_AUTH flag is not being 
> set on madwifi_new_sta function.

Thanks, fixed.

> Also data counters was not being updated on radius after a session timeout. 
> This looks like to the fact that station is deauthenticated before polling 
> the counters from madwifi. So I have modified ap_handle_session_timer as 
> follows:

>  ap_free_sta(hapd, sta);
>  hostapd_sta_deauth(hapd, addr, WLAN_REASON_PREV_AUTH_NOT_VALID);

Fixed.

> After this modification, session timeouts started to work fine.

I found one more problem related to this in development branch:
ap_handle_session_timer was not being cancelled properly if the STA
disassociated. This is also fixed in the current CVS version.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list