diff options
author | Joseph Jezak <josejx@gentoo.org> | 2006-06-11 12:01:03 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-05 13:42:58 -0400 |
commit | 9f101fc5e5a4810a2560841e4292a782b250cb02 (patch) | |
tree | fd2f758c593bacd35cad4636e118a24b187193e8 /net/ieee80211 | |
parent | cb74c432e321ed645b6cd88b77edc15f9478efbd (diff) |
[PATCH] SoftMAC: Add network to ieee80211softmac_call_events when associate times out
The ieee80211softmac_call_events function, when called with event type
IEEE80211SOFTMAC_EVENT_ASSOCIATE_TIMEOUT should pass the network as the
third parameter. This patch does that.
Signed-off-by: Joseph Jezak <josejx@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_assoc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_assoc.c b/net/ieee80211/softmac/ieee80211softmac_assoc.c index 0af360d9e9a5..7f6ef0eee0ba 100644 --- a/net/ieee80211/softmac/ieee80211softmac_assoc.c +++ b/net/ieee80211/softmac/ieee80211softmac_assoc.c | |||
@@ -61,6 +61,7 @@ void | |||
61 | ieee80211softmac_assoc_timeout(void *d) | 61 | ieee80211softmac_assoc_timeout(void *d) |
62 | { | 62 | { |
63 | struct ieee80211softmac_device *mac = (struct ieee80211softmac_device *)d; | 63 | struct ieee80211softmac_device *mac = (struct ieee80211softmac_device *)d; |
64 | struct ieee80211softmac_network *n; | ||
64 | unsigned long flags; | 65 | unsigned long flags; |
65 | 66 | ||
66 | spin_lock_irqsave(&mac->lock, flags); | 67 | spin_lock_irqsave(&mac->lock, flags); |
@@ -73,11 +74,12 @@ ieee80211softmac_assoc_timeout(void *d) | |||
73 | mac->associnfo.associating = 0; | 74 | mac->associnfo.associating = 0; |
74 | mac->associnfo.bssvalid = 0; | 75 | mac->associnfo.bssvalid = 0; |
75 | mac->associated = 0; | 76 | mac->associated = 0; |
77 | |||
78 | n = ieee80211softmac_get_network_by_bssid_locked(mac, mac->associnfo.bssid); | ||
76 | spin_unlock_irqrestore(&mac->lock, flags); | 79 | spin_unlock_irqrestore(&mac->lock, flags); |
77 | 80 | ||
78 | dprintk(KERN_INFO PFX "assoc request timed out!\n"); | 81 | dprintk(KERN_INFO PFX "assoc request timed out!\n"); |
79 | /* FIXME: we need to know the network here. that requires a bit of restructuring */ | 82 | ieee80211softmac_call_events(mac, IEEE80211SOFTMAC_EVENT_ASSOCIATE_TIMEOUT, n); |
80 | ieee80211softmac_call_events(mac, IEEE80211SOFTMAC_EVENT_ASSOCIATE_TIMEOUT, NULL); | ||
81 | } | 83 | } |
82 | 84 | ||
83 | void | 85 | void |