wext: Add cfg80211-specific optimization to avoid silly behavior
authorJouni Malinen <j@w1.fi>
Tue, 12 Jan 2010 18:01:09 +0000 (20:01 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Jan 2010 18:01:09 +0000 (20:01 +0200)
commit3145e6154c11355631b846b0dd2c57eead255401
treef234a52f5dc39c76e3215e3ce97f79bfc57ff564
parentb0d77f43f7773647c5caeb48ce7132374f98f240
wext: Add cfg80211-specific optimization to avoid silly behavior

If the driver is detected to use cfg80211, we can rely on it being able
to disconnect with SIOCSIWMLME commands and to use empty SSID as a way
to stop it from associating when we are in progress of configuring the
driver for association. Consequently, we can remove the hack that uses
random 32-octet SSID to force disconnection and re-order association
commands to match the expectations that cfg80211 has for WEXT ioctls.
This gets rid of extra scan rounds and attempts to associate with the
silly 32-octet SSID.
src/drivers/driver_wext.c
src/drivers/driver_wext.h