diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2006-01-31 19:49:42 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2006-03-23 04:17:01 +0100 |
commit | b6c7658ef8888e82608265d8098d09807997f771 (patch) | |
tree | 85fa8c98d1184b3f2d8b2483cc9adb8323283e9e /net/ieee80211/softmac/ieee80211softmac_assoc.c | |
parent | [PATCH] softmac: update deauth handler to quiet warning (diff) | |
download | linux-b6c7658ef8888e82608265d8098d09807997f771.tar.xz linux-b6c7658ef8888e82608265d8098d09807997f771.zip |
[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, return 0; } + +int +ieee80211softmac_handle_reassoc_req(struct net_device * dev, + struct ieee80211_reassoc_request * resp) +{ + struct ieee80211softmac_device *mac = ieee80211_priv(dev); + struct ieee80211softmac_network *network; + + function_enter(); + + network = ieee80211softmac_get_network_by_bssid(mac, resp->header.addr3); + if (!network) { + dprintkl(KERN_INFO PFX "reassoc request from unknown network\n"); + return 0; + } + ieee80211softmac_assoc(mac, network); + return 0; +} |