Commit 7cbf0ba5 authored by Vivek Natarajan's avatar Vivek Natarajan Committed by John W. Linville
Browse files

mac80211: Cancel the power save timer in ieee80211_stop.

Since the station info is flushed before calling set_disassoc
in ieee80211_stop, the power save timer is never cancelled
when the driver is unloaded. Hence the timer cancellation has
to be done in ieee80211_stop itself.
Signed-off-by: default avatarVivek Natarajan <>
Signed-off-by: default avatarJohn W. Linville <>
parent a97b77b9
...@@ -383,6 +383,8 @@ static int ieee80211_stop(struct net_device *dev) ...@@ -383,6 +383,8 @@ static int ieee80211_stop(struct net_device *dev)
atomic_dec(&local->iff_promiscs); atomic_dec(&local->iff_promiscs);
dev_mc_unsync(local->mdev, dev); dev_mc_unsync(local->mdev, dev);
/* APs need special treatment */ /* APs need special treatment */
if (sdata->vif.type == NL80211_IFTYPE_AP) { if (sdata->vif.type == NL80211_IFTYPE_AP) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment