init.c (ede615d2f043539e23bc4022955dbe0c3ec70ca2) init.c (84caf8005b09e0a4a57fce44119489d1b0bbbe94)
1
2/*
3 * Copyright (c) 2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

--- 1681 unchanged lines hidden (view full) ---

1690
1691 err = __ath6kl_init_hw_stop(ar);
1692 if (err)
1693 return err;
1694 ar->state = ATH6KL_STATE_OFF;
1695 return 0;
1696}
1697
1
2/*
3 * Copyright (c) 2011 Atheros Communications Inc.
4 * Copyright (c) 2011-2012 Qualcomm Atheros, Inc.
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.

--- 1681 unchanged lines hidden (view full) ---

1690
1691 err = __ath6kl_init_hw_stop(ar);
1692 if (err)
1693 return err;
1694 ar->state = ATH6KL_STATE_OFF;
1695 return 0;
1696}
1697
1698void ath6kl_init_hw_restart(struct ath6kl *ar)
1699{
1700
1701 ar->state = ATH6KL_STATE_RECOVERY;
1702
1703 ath6kl_cfg80211_stop_all(ar);
1704
1705 if (__ath6kl_init_hw_stop(ar))
1706 return;
1707
1708 if (__ath6kl_init_hw_start(ar)) {
1709 ath6kl_dbg(ATH6KL_DBG_RECOVERY, "Failed to restart during fw error recovery\n");
1710 return;
1711 }
1712
1713 ar->state = ATH6KL_STATE_ON;
1714 ar->fw_recovery.err_reason = 0;
1715}
1716
1698/* FIXME: move this to cfg80211.c and rename to ath6kl_cfg80211_vif_stop() */
1699void ath6kl_cleanup_vif(struct ath6kl_vif *vif, bool wmi_ready)
1700{
1701 static u8 bcast_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
1702 bool discon_issued;
1703
1704 netif_stop_queue(vif->ndev);
1705

--- 83 unchanged lines hidden ---
1717/* FIXME: move this to cfg80211.c and rename to ath6kl_cfg80211_vif_stop() */
1718void ath6kl_cleanup_vif(struct ath6kl_vif *vif, bool wmi_ready)
1719{
1720 static u8 bcast_mac[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
1721 bool discon_issued;
1722
1723 netif_stop_queue(vif->ndev);
1724

--- 83 unchanged lines hidden ---