libertas: scan behaviour consistency improvements
authorDaniel Drake <dsd@laptop.org>
Wed, 21 Sep 2011 17:43:59 +0000 (18:43 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Sep 2011 18:34:01 +0000 (14:34 -0400)
commitb4c3f34afffcab01b6eb5155399a0b85b1123ada
tree9019bab4db3f53b9029b787704e2cbd19a742af6
parent38ba3c57af1c737966fb58bcbeecdc71f5f4fa90
libertas: scan behaviour consistency improvements

When scanning for the broadcast SSID, there is no need to add the
SSID TLV (restoring the behaviour of the driver behaviour in the wext
days, confirmed in Marvell specifications).

If bssid is unspecified, the current scan code will usually fire off an
active scan probing for the specific requested SSID. However, if a scan
is ongoing (or has just finished), those scan results will be used
instead (even if that scan is totally different, e.g. a passive scan on
channel 4 for a different SSID). Fix this inconsistency by always
firing off a scan when associating without a bssid.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/cfg.c
drivers/net/wireless/libertas/dev.h