Skip to content

Commit

Permalink
ath6kl: call ath6kl_cfg80211_stop() from ath6kl_close()
Browse files Browse the repository at this point in the history
This way it's possible to keep all disconnect logic in one function and
easier to add new functionality, like stopping scheduled scan.

There are some changes to commands called during network interface close,
but there should not be any visible changes in functionality.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
  • Loading branch information
Kalle Valo committed Dec 13, 2011
1 parent c97a31b commit ed8491a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions drivers/net/wireless/ath/ath6kl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1007,16 +1007,7 @@ static int ath6kl_close(struct net_device *dev)

netif_stop_queue(dev);

ath6kl_disconnect(vif);

if (test_bit(WMI_READY, &ar->flag)) {
if (ath6kl_wmi_scanparams_cmd(ar->wmi, vif->fw_vif_idx, 0xFFFF,
0, 0, 0, 0, 0, 0, 0, 0, 0))
return -EIO;

}

ath6kl_cfg80211_scan_complete_event(vif, true);
ath6kl_cfg80211_stop(ar);

clear_bit(WLAN_ENABLED, &vif->flags);

Expand Down

0 comments on commit ed8491a

Please sign in to comment.