*/
memcpy(ndev->dev_addr, ar->mac_addr, ETH_ALEN);
- ret = ath6kl_init_hw_stop(ar);
- if (ret) {
- ath6kl_err("Failed to stop hardware: %d\n", ret);
- goto err_htc_cleanup;
- }
-
return ret;
err_rxbuf_cleanup:
static int ath6kl_open(struct net_device *dev)
{
struct ath6kl_vif *vif = netdev_priv(dev);
- int ret;
-
- /* FIXME: how to handle multi vif support? */
- ret = ath6kl_init_hw_start(vif->ar);
- if (ret)
- return ret;
set_bit(WLAN_ENABLED, &vif->flags);
{
struct ath6kl *ar = ath6kl_priv(dev);
struct ath6kl_vif *vif = netdev_priv(dev);
- int ret;
netif_stop_queue(dev);
ath6kl_cfg80211_scan_complete_event(vif, true);
- /* FIXME: how to handle multi vif support? */
- ret = ath6kl_init_hw_stop(ar);
- if (ret)
- return ret;
-
clear_bit(WLAN_ENABLED, &vif->flags);
return 0;