Skip to content

Commit

Permalink
staging: ath6kl: Eliminate cfg80211 warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vipin Mehta authored and Greg Kroah-Hartman committed Feb 23, 2011
1 parent 5b6567e commit 5caf8fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/ath6kl/os/linux/ar6000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5caf8fc

Please sign in to comment.