Skip to content

Make driver_nl80211 really work

Maxim Levitsky linux-wireless 1 version In review

Get series with b4
b4 am 1256939391.31271.11.camel@maxim-laptop

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Allow scanning while in authenticated only statenet/mac80211/scan.c+9 -38 replies
2/2nl80211: allow to authenticate to access point that we already authenticatednet/wireless/mlme.c+1 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATH 0/2] Make driver_nl80211 really work

Hi,

I seem to find proper fixes for problem with driver_nl80211. Despite workaround in wpa_supplicant that sends deauth when auth command fails, this driver still doesn't work.

Problem is that scanning is not allowed in authenticated but not associated state. I was told that this is feature, but afterwards I understood that it is legal for wpa_supplicant not to use deauthenticate command.

In the other hand mac80211 holds a work list of things todo that include pings, associations, authentications, etc...

Following the code it seems that this list is set to hold forever entries that belong to associated but not authenticated access points. For example ieee80211_mgd_deauth will fail if this condition isn't true.

So I modified __ieee80211_start_scan to work even if work list isn't empty but all entries are idle.

As for second problem, the lack of ability to do authentication to access point twice, I modified nl80211 by 'roughly' removing the check for this condition, treating new request as if ap was never authenticated. This seems to work very well.

Best regards,
Maxim Levitsky