20 #include <linux/module.h>
22 #include <linux/export.h>
31 static unsigned int suspend_mode;
32 static unsigned int wow_mode;
33 static unsigned int uart_debug;
34 static unsigned int ath6kl_p2p;
35 static unsigned int testmode;
46 ath6kl_htc_tx_complete(ar, skb);
52 ath6kl_htc_rx_complete(ar, skb, pipe);
87 ret = ath6kl_hif_power_on(ar);
114 goto err_htc_cleanup;
124 goto err_htc_cleanup;
162 ath6kl_debug_init(ar);
166 ath6kl_err(
"Failed to start hardware: %d\n", ret);
167 goto err_rxbuf_cleanup;
176 goto err_rxbuf_cleanup;
178 ret = ath6kl_debug_init_fs(ar);
181 goto err_rxbuf_cleanup;
196 ath6kl_err(
"Failed to instantiate a network device\n");
199 goto err_rxbuf_cleanup;
208 ath6kl_debug_cleanup(ar);
217 ath6kl_hif_power_off(ar);
236 ar->
p2p = !!ath6kl_p2p;
248 sema_init(&ar->
sem, 1);
269 skb_queue_head_init(&ar->
sta_list[ctr].psq);
270 skb_queue_head_init(&ar->
sta_list[ctr].apsdq);
272 INIT_LIST_HEAD(&ar->
sta_list[ctr].mgmt_psq);
276 ath6kl_err(
"Failed to allocate memory for sta aggregation information\n");
292 ath6kl_hif_power_off(ar);
305 ath6kl_debug_cleanup(ar);