mac80211: cancel the connection monitor timers/work

In "mac80211: monitor the connection" I forgot to
add code to cancel the new timers & work when the
interface is brought down, which isn't a problem
if you just bring it down, but _is_ a problem when
you destroy the interface. Correct this lapse.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Johannes Berg
2009-07-13 13:23:39 +02:00
committed by John W. Linville
parent ec96cfd821
commit 0e2b628680
2 changed files with 8 additions and 3 deletions

View File

@@ -1163,6 +1163,9 @@ static void ieee80211_mgd_probe_ap(struct ieee80211_sub_if_data *sdata,
const u8 *ssid;
bool already = false;
if (!netif_running(sdata->dev))
return;
mutex_lock(&ifmgd->mtx);
if (!ifmgd->associated)