libertas: scan before assocation if no BSSID was given
authorDan Williams <dcbw@redhat.com>
Wed, 4 Aug 2010 05:43:47 +0000 (00:43 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Aug 2010 20:05:27 +0000 (16:05 -0400)
commitcc02681923ce09a7c8cfacc6855de259b9d4ef87
tree2275e6f20587b958136b5ee67cb3049f437c726a
parent197575393713eba035925e4bfdee407f473e5057
libertas: scan before assocation if no BSSID was given

Fix this leftover TODO from the cfg80211 conversion by doing a scan
if cfg80211 didn't pass in the BSSID for us.  Since the scan code
uses so much of the cfg80211_scan_request structure to build up the
firmware command, we just fake one when the scan request is triggered
internally.  But we need to make sure that internal 'fake' cfg82011
scan request does not get back to cfg82011 via cfg80211_scan_done().

Signed-off-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
drivers/net/wireless/libertas/main.c