diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-01-31 13:49:42 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-22 22:17:01 -0500 |
commit | b6c7658ef8888e82608265d8098d09807997f771 (patch) | |
tree | 85fa8c98d1184b3f2d8b2483cc9adb8323283e9e /net/ieee80211/softmac/ieee80211softmac_assoc.c | |
parent | b10c991fa4cf0f1353228e04671aa793b4b3cf1d (diff) |
[PATCH] softmac: add reassociation code
This patch adds handling of reassociation to softmac when the AP
requests it. Patch from Larry Finger.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_assoc.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_assoc.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_assoc.c b/net/ieee80211/softmac/ieee80211softmac_assoc.c index 755b612ce197..c6124fcf27b7 100644 --- a/net/ieee80211/softmac/ieee80211softmac_assoc.c +++ b/net/ieee80211/softmac/ieee80211softmac_assoc.c | |||
@@ -390,3 +390,21 @@ ieee80211softmac_handle_disassoc(struct net_device * dev, | |||
390 | 390 | ||
391 | return 0; | 391 | return 0; |
392 | } | 392 | } |
393 | |||
394 | int | ||
395 | ieee80211softmac_handle_reassoc_req(struct net_device * dev, | ||
396 | struct ieee80211_reassoc_request * resp) | ||
397 | { | ||
398 | struct ieee80211softmac_device *mac = ieee80211_priv(dev); | ||
399 | struct ieee80211softmac_network *network; | ||
400 | |||
401 | function_enter(); | ||
402 | |||
403 | network = ieee80211softmac_get_network_by_bssid(mac, resp->header.addr3); | ||
404 | if (!network) { | ||
405 | dprintkl(KERN_INFO PFX "reassoc request from unknown network\n"); | ||
406 | return 0; | ||
407 | } | ||
408 | ieee80211softmac_assoc(mac, network); | ||
409 | return 0; | ||
410 | } | ||