[PATCH] softmac: fix SIOCSIWAP
There are some bugs in the current implementation of the SIOCSIWAP wext, for example that when you do it twice and it fails, it may still try another access point for some reason. This patch fixes this by introducing a new flag that tells the association code that the bssid that is in use was fixed by the user and shouldn't be deviated from. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
dac322e39a
commit
818667f7c4
@@ -96,10 +96,13 @@ struct ieee80211softmac_assoc_info {
|
||||
*
|
||||
* bssvalid is true if we found a matching network
|
||||
* and saved it's BSSID into the bssid above.
|
||||
*
|
||||
* bssfixed is used for SIOCSIWAP.
|
||||
*/
|
||||
u8 static_essid:1,
|
||||
associating:1,
|
||||
bssvalid:1;
|
||||
bssvalid:1,
|
||||
bssfixed:1;
|
||||
|
||||
/* Scan retries remaining */
|
||||
int scan_retry;
|
||||
|
Reference in New Issue
Block a user