[PATCH 1/2] Remove WPA per-VLAN groups when all stations left

Jouni Malinen j at w1.fi
Sun Apr 26 10:20:38 EDT 2015


On Sun, Apr 26, 2015 at 02:22:55PM +0200, Michael Braun wrote:
> Currently, struct wpa_group is created when the first station enters the group.
> But the struct wpa_group is not freed when all station left the group.
> 
> This causes a problem because wpa_group will enter FATAL_FAILURE when a
> wpa_group is running while the AP_VLAN interface has already been removed.
> 
> So this adds a references counter to struct wpa_group and frees a group if it is
> unused. This fixed hwsim test ap_vlan_wpa2_radius_id_change when changing back
> to the old VLAN ID.

Thanks, both applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA


More information about the HostAP mailing list