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
@@ -1256,6 +1256,12 @@ static int ieee80211_assoc(struct wiphy *wiphy, struct net_device *dev,
|
||||
sdata->u.mgd.flags &= ~IEEE80211_STA_MFP_ENABLED;
|
||||
}
|
||||
|
||||
if (req->prev_bssid) {
|
||||
sdata->u.mgd.flags |= IEEE80211_STA_PREV_BSSID_SET;
|
||||
memcpy(sdata->u.mgd.prev_bssid, req->prev_bssid, ETH_ALEN);
|
||||
} else
|
||||
sdata->u.mgd.flags &= ~IEEE80211_STA_PREV_BSSID_SET;
|
||||
|
||||
if (req->crypto.control_port)
|
||||
sdata->u.mgd.flags |= IEEE80211_STA_CONTROL_PORT;
|
||||
else
|
||||
|
Reference in New Issue
Block a user