Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265482
b: refs/heads/master
c: 852bd9d
h: refs/heads/master
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Aug 9, 2011
1 parent 5e8dd23 commit 1fd6e7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d0c6bcf46c3df4a5d011749c94d4f85dd98931d
refs/heads/master: 852bd9d995352d593e9be0d668965aec39cf3f89
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/ath/ath6kl/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,14 +1062,16 @@ static int ath6kl_init(struct net_device *dev)

ath6kl_dbg(ATH6KL_DBG_TRC, "%s: got wmi @ 0x%p.\n", __func__, ar->wmi);

wlan_node_table_init(&ar->scan_table);

/*
* The reason we have to wait for the target here is that the
* driver layer has to init BMI in order to set the host block
* size.
*/
if (htc_wait_target(ar->htc_target)) {
status = -EIO;
goto err_wmi_cleanup;
goto err_node_cleanup;
}

if (ath6kl_init_service_ep(ar)) {
Expand Down Expand Up @@ -1142,7 +1144,8 @@ static int ath6kl_init(struct net_device *dev)
ath6kl_cleanup_amsdu_rxbufs(ar);
err_cleanup_scatter:
ath6kl_hif_cleanup_scatter(ar);
err_wmi_cleanup:
err_node_cleanup:
wlan_node_table_cleanup(&ar->scan_table);
ath6kl_wmi_shutdown(ar->wmi);
clear_bit(WMI_ENABLED, &ar->flag);
ar->wmi = NULL;
Expand Down Expand Up @@ -1289,5 +1292,7 @@ void ath6kl_destroy(struct net_device *dev, unsigned int unregister)

free_netdev(dev);

wlan_node_table_cleanup(&ar->scan_table);

ath6kl_cfg80211_deinit(ar);
}
2 changes: 0 additions & 2 deletions trunk/drivers/net/wireless/ath/ath6kl/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2727,7 +2727,6 @@ void *ath6kl_wmi_init(struct ath6kl *dev)

wmi->parent_dev = dev;

wlan_node_table_init(&dev->scan_table);
ath6kl_wmi_qos_state_init(wmi);

wmi->pwr_mode = REC_POWER;
Expand All @@ -2747,6 +2746,5 @@ void ath6kl_wmi_shutdown(struct wmi *wmi)
if (!wmi)
return;

wlan_node_table_cleanup(&wmi->parent_dev->scan_table);
kfree(wmi);
}

0 comments on commit 1fd6e7a

Please sign in to comment.