[RFC] Allow the wpa_ie to be updated when reassociating to a different AP

Helmut Schaa helmut.schaa
Wed Apr 7 00:56:59 PDT 2010


Am Mittwoch 07 April 2010 schrieb Jouni Malinen:
> On Fri, Mar 19, 2010 at 08:56:04AM +0100, Helmut Schaa wrote:
> > Allow the wpa_ie to be updated when reassociating to a different AP. This
> > fixes issues when reassociating with a new AP we have preauthenticated
> > first.
> 
> This should already be allowed and changing the WPA/RSN IE did work in
> my tests with WEXT. However, the update call for this was missing from
> the SME code and consequently, this did not work properly with nl80211.
> I'm assuming you saw this issue with nl80211.

Yes.

[...]

> This patch would at least result in memory leak (should have freed
> assoc_wpa_ie before assigning it to a new pointer). Anyway, this
> function should not be modified; the proper fix is to make sure
> wpa_sm_set_assoc_wpa_ie() gets called on association event. I fixed this
> for nl80211:
> http://w1.fi/gitweb/gitweb.cgi?p=hostap.git;a=commitdiff;h=d9a27b04558ccbb5e5d45e10baa22db47e2b8e45
> 
> Please let me know whether it fixed the problem you were seeing.
> 

Looks like the correct fix. I'll test it as soon as possible.

Thanks,
Helmut



More information about the Hostap mailing list