diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-07 08:37:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:30 -0400 |
commit | 3e5d7649a64e558e4146ddfad4dfcf13fc65dd47 (patch) | |
tree | fa51725ca07cf682e6694ba5f107d8614d9f0972 /net/wireless/mlme.c | |
parent | 2ffa5fede379091bf62a732462b829e4b51af054 (diff) |
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>
Diffstat (limited to 'net/wireless/mlme.c')
-rw-r--r-- | net/wireless/mlme.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/mlme.c b/net/wireless/mlme.c index 020f33b38467..087d3377958f 100644 --- a/net/wireless/mlme.c +++ b/net/wireless/mlme.c | |||
@@ -335,7 +335,8 @@ int cfg80211_mlme_auth(struct cfg80211_registered_device *rdev, | |||
335 | 335 | ||
336 | int cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev, | 336 | int cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev, |
337 | struct net_device *dev, struct ieee80211_channel *chan, | 337 | struct net_device *dev, struct ieee80211_channel *chan, |
338 | const u8 *bssid, const u8 *ssid, int ssid_len, | 338 | const u8 *bssid, const u8 *prev_bssid, |
339 | const u8 *ssid, int ssid_len, | ||
339 | const u8 *ie, int ie_len, bool use_mfp, | 340 | const u8 *ie, int ie_len, bool use_mfp, |
340 | struct cfg80211_crypto_settings *crypt) | 341 | struct cfg80211_crypto_settings *crypt) |
341 | { | 342 | { |
@@ -353,6 +354,7 @@ int cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev, | |||
353 | req.ie_len = ie_len; | 354 | req.ie_len = ie_len; |
354 | memcpy(&req.crypto, crypt, sizeof(req.crypto)); | 355 | memcpy(&req.crypto, crypt, sizeof(req.crypto)); |
355 | req.use_mfp = use_mfp; | 356 | req.use_mfp = use_mfp; |
357 | req.prev_bssid = prev_bssid; | ||
356 | req.bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len, | 358 | req.bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len, |
357 | WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS); | 359 | WLAN_CAPABILITY_ESS, WLAN_CAPABILITY_ESS); |
358 | if (!req.bss) | 360 | if (!req.bss) |