summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorVipin Mehta <vmehta@atheros.com>2011-02-20 07:00:38 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-23 14:00:14 -0800
commit5caf8fca2da11e368a2284f4c4f5c2cbbe1b3ec8 (patch)
tree9ef670b8efc65a641e9a2c92cd32a2cda2e64e43 /drivers/staging
parent5b6567ee84d6e8f7015eaa7d7c4926b4fd81746e (diff)
staging: ath6kl: Eliminate cfg80211 warnings
Cancel the pending scan operation once the interface is going down to avoid warnings from the cfg80211 module. Once the interface is down, cfg80211 checks for any pending scan requests and dumps a warning if it finds one. It expects the driver to abort any ongoing scan operation once the driver detects that the interface is going down. Signed-off-by: Vipin Mehta <vmehta@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/ath6kl/os/linux/ar6000_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/ath6kl/os/linux/ar6000_drv.c b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
index 5dc5cf0c5b16..21483812ea98 100644
--- a/drivers/staging/ath6kl/os/linux/ar6000_drv.c
+++ b/drivers/staging/ath6kl/os/linux/ar6000_drv.c
@@ -2331,6 +2331,7 @@ ar6000_close(struct net_device *dev)
}
ar->arWlanState = WLAN_DISABLED;
}
+ ar6k_cfg80211_scanComplete_event(ar, A_ECANCELED);
#endif /* ATH6K_CONFIG_CFG80211 */
return 0;