cfg80211: let SME control reassociation vs. association
Since we don't really know that well in the kernel, let's let the SME control whether it wants to use reassociation or not, by allowing it to give the previous BSSID in the associate() parameters. 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
2ffa5fede3
commit
3e5d7649a6
@@ -125,8 +125,14 @@ static int cfg80211_conn_do_work(struct wireless_dev *wdev)
|
||||
case CFG80211_CONN_ASSOCIATE_NEXT:
|
||||
BUG_ON(!drv->ops->assoc);
|
||||
wdev->conn->state = CFG80211_CONN_ASSOCIATING;
|
||||
/*
|
||||
* We could, later, implement roaming here and then actually
|
||||
* set prev_bssid to non-NULL. But then we need to be aware
|
||||
* that some APs don't like that -- so we'd need to retry
|
||||
* the association.
|
||||
*/
|
||||
err = cfg80211_mlme_assoc(drv, wdev->netdev,
|
||||
params->channel, params->bssid,
|
||||
params->channel, params->bssid, NULL,
|
||||
params->ssid, params->ssid_len,
|
||||
params->ie, params->ie_len,
|
||||
false, ¶ms->crypto);
|
||||
|
Reference in New Issue
Block a user