Hi Krzysztof, On 11/12/2019 07:58, Krzysztof Hałasa wrote: > Hi Nicolas, > > Just to make sure everybody is aware that it would only be a partial fix > - unencrypted ad hoc mode (the simplest thing available) doesn't need > any userspace and thus must be fixed in the kernel. Alternatively this > functionality may be moved to wpa_supplicant and only then userspace fix > could really fix it completely. A partial fix is better than no fix. In any case, the IBSS-RSN and unencrypted IBSS cannot be fixed the same way. Having the kernel automatically reset a station while wpa_supplicant may have started a 4 way handshake with it had already lead to problems in the past. Which is why the kernel no longer reset stations (52874a5e). In any case, the unencrypted ibss case is probably much harder to fix, since even in a linux-only world, there are probably fullmac drivers for hardware that don't reply to open system auth in an open ibss. Anyway, this patch allows userspace to fix it, using whatever policy the user chooses to detect it.