2 * Marvell Wireless LAN device driver: major functions
4 * Copyright (C) 2011, Marvell International Ltd.
6 * This software file (the "File") is distributed by Marvell International
7 * Ltd. under the terms of the GNU General Public License Version 2, June 1991
8 * (the "License"). You may use, redistribute and/or modify this File in
9 * accordance with the terms and conditions of the License, a copy of which
10 * is available by writing to the Free Software Foundation, Inc.,
11 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
12 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
14 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
16 * ARE EXPRESSLY DISCLAIMED. The License provides additional details about
17 * this warranty disclaimer.
27 const char driver_version[] = "mwifiex " VERSION " (%s) ";
30 * This function registers the device and performs all the necessary
33 * The following initialization operations are performed -
34 * - Allocate adapter structure
35 * - Save interface specific operations table in adapter
36 * - Call interface specific initialization routine
37 * - Allocate private structures
38 * - Set default adapter structure parameters
41 * In case of any errors during inittialization, this function also ensures
42 * proper cleanup before exiting.
44 static int mwifiex_register(void *card, struct mwifiex_if_ops *if_ops,
47 struct mwifiex_adapter *adapter;
50 adapter = kzalloc(sizeof(struct mwifiex_adapter), GFP_KERNEL);
57 /* Save interface specific operations in adapter */
58 memmove(&adapter->if_ops, if_ops, sizeof(struct mwifiex_if_ops));
60 /* card specific initialization has been deferred until now .. */
61 if (adapter->if_ops.init_if(adapter))
64 adapter->priv_num = 0;
66 /* Allocate memory for private structure */
67 adapter->priv[0] = kzalloc(sizeof(struct mwifiex_private),
69 if (!adapter->priv[0]) {
70 dev_err(adapter->dev, "%s: failed to alloc priv[0]\n",
77 adapter->priv[0]->adapter = adapter;
78 if (mwifiex_init_lock_list(adapter))
81 init_timer(&adapter->cmd_timer);
82 adapter->cmd_timer.function = mwifiex_cmd_timeout_func;
83 adapter->cmd_timer.data = (unsigned long) adapter;
88 dev_dbg(adapter->dev, "info: leave mwifiex_register with error\n");
90 mwifiex_free_lock_list(adapter);
92 for (i = 0; i < adapter->priv_num; i++)
93 kfree(adapter->priv[i]);
101 * This function unregisters the device and performs all the necessary
104 * The following cleanup operations are performed -
106 * - Free beacon buffers
107 * - Free private structures
108 * - Free adapter structure
110 static int mwifiex_unregister(struct mwifiex_adapter *adapter)
114 del_timer(&adapter->cmd_timer);
116 /* Free private structures */
117 for (i = 0; i < adapter->priv_num; i++) {
118 if (adapter->priv[i]) {
119 mwifiex_free_curr_bcn(adapter->priv[i]);
120 kfree(adapter->priv[i]);
131 * This function is the main procedure of the driver and handles various driver
132 * operations. It runs in a loop and provides the core functionalities.
134 * The main responsibilities of this function are -
135 * - Ensure concurrency control
136 * - Handle pending interrupts and call interrupt handlers
137 * - Wake up the card if required
138 * - Handle command responses and call response handlers
139 * - Handle events and call event handlers
140 * - Execute pending commands
141 * - Transmit pending data packets
143 int mwifiex_main_process(struct mwifiex_adapter *adapter)
148 spin_lock_irqsave(&adapter->main_proc_lock, flags);
150 /* Check if already processing */
151 if (adapter->mwifiex_processing) {
152 spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
155 adapter->mwifiex_processing = true;
156 spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
160 if ((adapter->hw_status == MWIFIEX_HW_STATUS_CLOSING) ||
161 (adapter->hw_status == MWIFIEX_HW_STATUS_NOT_READY))
164 /* Handle pending interrupt if any */
165 if (adapter->int_status) {
166 if (adapter->hs_activated)
167 mwifiex_process_hs_config(adapter);
168 adapter->if_ops.process_int_status(adapter);
171 /* Need to wake up the card ? */
172 if ((adapter->ps_state == PS_STATE_SLEEP) &&
173 (adapter->pm_wakeup_card_req &&
174 !adapter->pm_wakeup_fw_try) &&
175 (is_command_pending(adapter)
176 || !mwifiex_wmm_lists_empty(adapter))) {
177 adapter->pm_wakeup_fw_try = true;
178 adapter->if_ops.wakeup(adapter);
181 if (IS_CARD_RX_RCVD(adapter)) {
182 adapter->pm_wakeup_fw_try = false;
183 if (adapter->ps_state == PS_STATE_SLEEP)
184 adapter->ps_state = PS_STATE_AWAKE;
186 /* We have tried to wakeup the card already */
187 if (adapter->pm_wakeup_fw_try)
189 if (adapter->ps_state != PS_STATE_AWAKE ||
190 adapter->tx_lock_flag)
193 if (adapter->scan_processing || adapter->data_sent
194 || mwifiex_wmm_lists_empty(adapter)) {
195 if (adapter->cmd_sent || adapter->curr_cmd
196 || (!is_command_pending(adapter)))
201 /* Check for Cmd Resp */
202 if (adapter->cmd_resp_received) {
203 adapter->cmd_resp_received = false;
204 mwifiex_process_cmdresp(adapter);
206 /* call mwifiex back when init_fw is done */
207 if (adapter->hw_status == MWIFIEX_HW_STATUS_INIT_DONE) {
208 adapter->hw_status = MWIFIEX_HW_STATUS_READY;
209 mwifiex_init_fw_complete(adapter);
213 /* Check for event */
214 if (adapter->event_received) {
215 adapter->event_received = false;
216 mwifiex_process_event(adapter);
219 /* Check if we need to confirm Sleep Request
220 received previously */
221 if (adapter->ps_state == PS_STATE_PRE_SLEEP) {
222 if (!adapter->cmd_sent && !adapter->curr_cmd)
223 mwifiex_check_ps_cond(adapter);
226 /* * The ps_state may have been changed during processing of
227 * Sleep Request event.
229 if ((adapter->ps_state == PS_STATE_SLEEP)
230 || (adapter->ps_state == PS_STATE_PRE_SLEEP)
231 || (adapter->ps_state == PS_STATE_SLEEP_CFM)
232 || adapter->tx_lock_flag)
235 if (!adapter->cmd_sent && !adapter->curr_cmd) {
236 if (mwifiex_exec_next_cmd(adapter) == -1) {
242 if (!adapter->scan_processing && !adapter->data_sent &&
243 !mwifiex_wmm_lists_empty(adapter)) {
244 mwifiex_wmm_process_tx(adapter);
245 if (adapter->hs_activated) {
246 adapter->is_hs_configured = false;
247 mwifiex_hs_activated_event
249 (adapter, MWIFIEX_BSS_ROLE_ANY),
254 if (adapter->delay_null_pkt && !adapter->cmd_sent &&
255 !adapter->curr_cmd && !is_command_pending(adapter)
256 && mwifiex_wmm_lists_empty(adapter)) {
257 if (!mwifiex_send_null_packet
258 (mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA),
259 MWIFIEX_TxPD_POWER_MGMT_NULL_PACKET |
260 MWIFIEX_TxPD_POWER_MGMT_LAST_PACKET)) {
261 adapter->delay_null_pkt = false;
262 adapter->ps_state = PS_STATE_SLEEP;
268 if ((adapter->int_status) || IS_CARD_RX_RCVD(adapter))
271 spin_lock_irqsave(&adapter->main_proc_lock, flags);
272 adapter->mwifiex_processing = false;
273 spin_unlock_irqrestore(&adapter->main_proc_lock, flags);
276 if (adapter->hw_status == MWIFIEX_HW_STATUS_CLOSING)
277 mwifiex_shutdown_drv(adapter);
282 * This function frees the adapter structure.
284 * Additionally, this closes the netlink socket, frees the timers
285 * and private structures.
287 static void mwifiex_free_adapter(struct mwifiex_adapter *adapter)
290 pr_err("%s: adapter is NULL\n", __func__);
294 mwifiex_unregister(adapter);
295 pr_debug("info: %s: free adapter\n", __func__);
299 * This function initializes the hardware and firmware.
301 * The main initialization steps followed are -
302 * - Download the correct firmware to card
303 * - Allocate and initialize the adapter structure
304 * - Initialize the private structures
305 * - Issue the init commands to firmware
307 static int mwifiex_init_hw_fw(struct mwifiex_adapter *adapter)
310 struct mwifiex_fw_image fw;
312 memset(&fw, 0, sizeof(struct mwifiex_fw_image));
314 err = request_firmware(&adapter->firmware, adapter->fw_name,
317 dev_err(adapter->dev, "request_firmware() returned"
318 " error code %#x\n", err);
322 fw.fw_buf = (u8 *) adapter->firmware->data;
323 fw.fw_len = adapter->firmware->size;
325 ret = mwifiex_dnld_fw(adapter, &fw);
329 dev_notice(adapter->dev, "WLAN FW is active\n");
331 adapter->init_wait_q_woken = false;
332 ret = mwifiex_init_fw(adapter);
336 adapter->hw_status = MWIFIEX_HW_STATUS_READY;
339 /* Wait for mwifiex_init to complete */
340 wait_event_interruptible(adapter->init_wait_q,
341 adapter->init_wait_q_woken);
342 if (adapter->hw_status != MWIFIEX_HW_STATUS_READY) {
349 if (adapter->firmware)
350 release_firmware(adapter->firmware);
357 * This function fills a driver buffer.
359 * The function associates a given SKB with the provided driver buffer
360 * and also updates some of the SKB parameters, including IP header,
361 * priority and timestamp.
364 mwifiex_fill_buffer(struct sk_buff *skb)
371 eth = (struct ethhdr *) skb->data;
372 switch (eth->h_proto) {
373 case __constant_htons(ETH_P_IP):
375 tid = IPTOS_PREC(iph->tos);
376 pr_debug("data: packet type ETH_P_IP: %04x, tid=%#x prio=%#x\n",
377 eth->h_proto, tid, skb->priority);
379 case __constant_htons(ETH_P_ARP):
380 pr_debug("data: ARP packet: %04x\n", eth->h_proto);
384 /* Offset for TOS field in the IP header */
385 #define IPTOS_OFFSET 5
386 tid = (tid >> IPTOS_OFFSET);
388 /* Record the current time the packet was queued; used to
389 determine the amount of time the packet was queued in
390 the driver before it was sent to the firmware.
391 The delay is then sent along with the packet to the
392 firmware for aggregate delay calculation for stats and
393 MSDU lifetime expiry.
395 do_gettimeofday(&tv);
396 skb->tstamp = timeval_to_ktime(tv);
400 * CFG802.11 network device handler for open.
402 * Starts the data queue.
405 mwifiex_open(struct net_device *dev)
407 netif_start_queue(dev);
412 * CFG802.11 network device handler for close.
415 mwifiex_close(struct net_device *dev)
421 * CFG802.11 network device handler for data transmission.
424 mwifiex_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)
426 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
427 struct sk_buff *new_skb;
428 struct mwifiex_txinfo *tx_info;
430 dev_dbg(priv->adapter->dev, "data: %lu BSS(%d): Data <= kernel\n",
431 jiffies, priv->bss_index);
433 if (priv->adapter->surprise_removed) {
435 priv->stats.tx_dropped++;
438 if (!skb->len || (skb->len > ETH_FRAME_LEN)) {
439 dev_err(priv->adapter->dev, "Tx: bad skb len %d\n", skb->len);
441 priv->stats.tx_dropped++;
444 if (skb_headroom(skb) < MWIFIEX_MIN_DATA_HEADER_LEN) {
445 dev_dbg(priv->adapter->dev,
446 "data: Tx: insufficient skb headroom %d\n",
448 /* Insufficient skb headroom - allocate a new skb */
450 skb_realloc_headroom(skb, MWIFIEX_MIN_DATA_HEADER_LEN);
451 if (unlikely(!new_skb)) {
452 dev_err(priv->adapter->dev, "Tx: cannot alloca new_skb\n");
454 priv->stats.tx_dropped++;
459 dev_dbg(priv->adapter->dev, "info: new skb headroomd %d\n",
463 tx_info = MWIFIEX_SKB_TXCB(skb);
464 tx_info->bss_index = priv->bss_index;
465 mwifiex_fill_buffer(skb);
467 mwifiex_wmm_add_buf_txqueue(priv->adapter, skb);
468 atomic_inc(&priv->adapter->tx_pending);
470 if (atomic_read(&priv->adapter->tx_pending) >= MAX_TX_PENDING) {
471 netif_stop_queue(priv->netdev);
472 dev->trans_start = jiffies;
475 queue_work(priv->adapter->workqueue, &priv->adapter->main_work);
481 * CFG802.11 network device handler for setting MAC address.
484 mwifiex_set_mac_address(struct net_device *dev, void *addr)
486 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
487 struct sockaddr *hw_addr = addr;
490 memcpy(priv->curr_addr, hw_addr->sa_data, ETH_ALEN);
492 /* Send request to firmware */
493 ret = mwifiex_send_cmd_sync(priv, HostCmd_CMD_802_11_MAC_ADDRESS,
494 HostCmd_ACT_GEN_SET, 0, NULL);
497 memcpy(priv->netdev->dev_addr, priv->curr_addr, ETH_ALEN);
499 dev_err(priv->adapter->dev, "set mac address failed: ret=%d"
502 memcpy(dev->dev_addr, priv->curr_addr, ETH_ALEN);
508 * CFG802.11 network device handler for setting multicast list.
510 static void mwifiex_set_multicast_list(struct net_device *dev)
512 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
513 struct mwifiex_multicast_list mcast_list;
515 if (dev->flags & IFF_PROMISC) {
516 mcast_list.mode = MWIFIEX_PROMISC_MODE;
517 } else if (dev->flags & IFF_ALLMULTI ||
518 netdev_mc_count(dev) > MWIFIEX_MAX_MULTICAST_LIST_SIZE) {
519 mcast_list.mode = MWIFIEX_ALL_MULTI_MODE;
521 mcast_list.mode = MWIFIEX_MULTICAST_MODE;
522 if (netdev_mc_count(dev))
523 mcast_list.num_multicast_addr =
524 mwifiex_copy_mcast_addr(&mcast_list, dev);
526 mwifiex_request_set_multicast_list(priv, &mcast_list);
530 * CFG802.11 network device handler for transmission timeout.
533 mwifiex_tx_timeout(struct net_device *dev)
535 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
537 dev_err(priv->adapter->dev, "%lu : Tx timeout, bss_index=%d\n",
538 jiffies, priv->bss_index);
539 dev->trans_start = jiffies;
540 priv->num_tx_timeout++;
544 * CFG802.11 network device handler for statistics retrieval.
546 static struct net_device_stats *mwifiex_get_stats(struct net_device *dev)
548 struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
553 /* Network device handlers */
554 static const struct net_device_ops mwifiex_netdev_ops = {
555 .ndo_open = mwifiex_open,
556 .ndo_stop = mwifiex_close,
557 .ndo_start_xmit = mwifiex_hard_start_xmit,
558 .ndo_set_mac_address = mwifiex_set_mac_address,
559 .ndo_tx_timeout = mwifiex_tx_timeout,
560 .ndo_get_stats = mwifiex_get_stats,
561 .ndo_set_multicast_list = mwifiex_set_multicast_list,
565 * This function initializes the private structure parameters.
567 * The following wait queues are initialized -
569 * - Command wait queue
570 * - Statistics wait queue
572 * ...and the following default parameters are set -
573 * - Current key index : Set to 0
574 * - Rate index : Set to auto
575 * - Media connected : Set to disconnected
576 * - Adhoc link sensed : Set to false
577 * - Nick name : Set to null
578 * - Number of Tx timeout : Set to 0
579 * - Device address : Set to current address
581 * In addition, the CFG80211 work queue is also created.
583 void mwifiex_init_priv_params(struct mwifiex_private *priv,
584 struct net_device *dev)
586 dev->netdev_ops = &mwifiex_netdev_ops;
587 /* Initialize private structure */
588 priv->current_key_index = 0;
589 priv->media_connected = false;
590 memset(&priv->nick_name, 0, sizeof(priv->nick_name));
591 priv->num_tx_timeout = 0;
592 priv->workqueue = create_singlethread_workqueue("cfg80211_wq");
593 INIT_WORK(&priv->cfg_workqueue, mwifiex_cfg80211_results);
594 memcpy(dev->dev_addr, priv->curr_addr, ETH_ALEN);
598 * This function check if command is pending.
600 int is_command_pending(struct mwifiex_adapter *adapter)
603 int is_cmd_pend_q_empty;
605 spin_lock_irqsave(&adapter->cmd_pending_q_lock, flags);
606 is_cmd_pend_q_empty = list_empty(&adapter->cmd_pending_q);
607 spin_unlock_irqrestore(&adapter->cmd_pending_q_lock, flags);
609 return !is_cmd_pend_q_empty;
613 * This function returns the correct private structure pointer based
614 * upon the BSS number.
616 struct mwifiex_private *
617 mwifiex_bss_index_to_priv(struct mwifiex_adapter *adapter, u8 bss_index)
619 if (!adapter || (bss_index >= adapter->priv_num))
621 return adapter->priv[bss_index];
625 * This is the main work queue function.
627 * It handles the main process, which in turn handles the complete
630 static void mwifiex_main_work_queue(struct work_struct *work)
632 struct mwifiex_adapter *adapter =
633 container_of(work, struct mwifiex_adapter, main_work);
635 if (adapter->surprise_removed)
637 mwifiex_main_process(adapter);
641 * This function cancels all works in the queue and destroys
642 * the main workqueue.
645 mwifiex_terminate_workqueue(struct mwifiex_adapter *adapter)
647 flush_workqueue(adapter->workqueue);
648 destroy_workqueue(adapter->workqueue);
649 adapter->workqueue = NULL;
653 * This function adds the card.
655 * This function follows the following major steps to set up the device -
656 * - Initialize software. This includes probing the card, registering
657 * the interface operations table, and allocating/initializing the
659 * - Set up the netlink socket
660 * - Create and start the main work queue
661 * - Register the device
662 * - Initialize firmware and hardware
663 * - Add logical interfaces
666 mwifiex_add_card(void *card, struct semaphore *sem,
667 struct mwifiex_if_ops *if_ops)
669 struct mwifiex_adapter *adapter;
671 struct mwifiex_private *priv;
673 if (down_interruptible(sem))
676 if (mwifiex_register(card, if_ops, (void **)&adapter)) {
677 pr_err("%s: software init failed\n", __func__);
681 adapter->hw_status = MWIFIEX_HW_STATUS_INITIALIZING;
682 adapter->surprise_removed = false;
683 init_waitqueue_head(&adapter->init_wait_q);
684 adapter->is_suspended = false;
685 adapter->hs_activated = false;
686 init_waitqueue_head(&adapter->hs_activate_wait_q);
687 adapter->cmd_wait_q_required = false;
688 init_waitqueue_head(&adapter->cmd_wait_q.wait);
689 adapter->cmd_wait_q.condition = false;
690 adapter->cmd_wait_q.status = 0;
692 adapter->workqueue = create_workqueue("MWIFIEX_WORK_QUEUE");
693 if (!adapter->workqueue)
696 INIT_WORK(&adapter->main_work, mwifiex_main_work_queue);
698 /* Register the device. Fill up the private data structure with relevant
699 information from the card and request for the required IRQ. */
700 if (adapter->if_ops.register_dev(adapter)) {
701 pr_err("%s: failed to register mwifiex device\n", __func__);
702 goto err_registerdev;
705 if (mwifiex_init_hw_fw(adapter)) {
706 pr_err("%s: firmware init failed\n", __func__);
710 priv = adapter->priv[0];
712 if (mwifiex_register_cfg80211(priv) != 0) {
713 dev_err(adapter->dev, "cannot register netdevice"
719 /* Create station interface by default */
720 if (!mwifiex_add_virtual_intf(priv->wdev->wiphy, "mlan%d",
721 NL80211_IFTYPE_STATION, NULL, NULL)) {
723 dev_err(adapter->dev, "cannot create default station"
732 mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);
733 dev_notice(adapter->dev, "driver_version = %s\n", fmt);
739 mwifiex_del_virtual_intf(priv->wdev->wiphy, priv->netdev);
742 pr_debug("info: %s: unregister device\n", __func__);
743 adapter->if_ops.unregister_dev(adapter);
745 adapter->surprise_removed = true;
746 mwifiex_terminate_workqueue(adapter);
748 if ((adapter->hw_status == MWIFIEX_HW_STATUS_FW_READY) ||
749 (adapter->hw_status == MWIFIEX_HW_STATUS_READY)) {
750 pr_debug("info: %s: shutdown mwifiex\n", __func__);
751 adapter->init_wait_q_woken = false;
753 if (mwifiex_shutdown_drv(adapter) == -EINPROGRESS)
754 wait_event_interruptible(adapter->init_wait_q,
755 adapter->init_wait_q_woken);
758 mwifiex_free_adapter(adapter);
766 EXPORT_SYMBOL_GPL(mwifiex_add_card);
769 * This function removes the card.
771 * This function follows the following major steps to remove the device -
772 * - Stop data traffic
773 * - Shutdown firmware
774 * - Remove the logical interfaces
775 * - Terminate the work queue
776 * - Unregister the device
777 * - Free the adapter structure
779 int mwifiex_remove_card(struct mwifiex_adapter *adapter, struct semaphore *sem)
781 struct mwifiex_private *priv = NULL;
784 if (down_interruptible(sem))
790 adapter->surprise_removed = true;
793 for (i = 0; i < adapter->priv_num; i++) {
794 priv = adapter->priv[i];
795 if (priv && priv->netdev) {
796 if (!netif_queue_stopped(priv->netdev))
797 netif_stop_queue(priv->netdev);
798 if (netif_carrier_ok(priv->netdev))
799 netif_carrier_off(priv->netdev);
803 dev_dbg(adapter->dev, "cmd: calling mwifiex_shutdown_drv...\n");
804 adapter->init_wait_q_woken = false;
806 if (mwifiex_shutdown_drv(adapter) == -EINPROGRESS)
807 wait_event_interruptible(adapter->init_wait_q,
808 adapter->init_wait_q_woken);
809 dev_dbg(adapter->dev, "cmd: mwifiex_shutdown_drv done\n");
810 if (atomic_read(&adapter->rx_pending) ||
811 atomic_read(&adapter->tx_pending) ||
812 atomic_read(&adapter->cmd_pending)) {
813 dev_err(adapter->dev, "rx_pending=%d, tx_pending=%d, "
815 atomic_read(&adapter->rx_pending),
816 atomic_read(&adapter->tx_pending),
817 atomic_read(&adapter->cmd_pending));
820 for (i = 0; i < adapter->priv_num; i++) {
821 priv = adapter->priv[i];
827 mwifiex_del_virtual_intf(priv->wdev->wiphy, priv->netdev);
831 wiphy_unregister(priv->wdev->wiphy);
832 wiphy_free(priv->wdev->wiphy);
835 mwifiex_terminate_workqueue(adapter);
837 /* Unregister device */
838 dev_dbg(adapter->dev, "info: unregister device\n");
839 adapter->if_ops.unregister_dev(adapter);
840 /* Free adapter structure */
841 dev_dbg(adapter->dev, "info: free adapter\n");
842 mwifiex_free_adapter(adapter);
849 EXPORT_SYMBOL_GPL(mwifiex_remove_card);
852 * This function initializes the module.
854 * The debug FS is also initialized if configured.
857 mwifiex_init_module(void)
859 #ifdef CONFIG_DEBUG_FS
860 mwifiex_debugfs_init();
866 * This function cleans up the module.
868 * The debug FS is removed if available.
871 mwifiex_cleanup_module(void)
873 #ifdef CONFIG_DEBUG_FS
874 mwifiex_debugfs_remove();
878 module_init(mwifiex_init_module);
879 module_exit(mwifiex_cleanup_module);
881 MODULE_AUTHOR("Marvell International Ltd.");
882 MODULE_DESCRIPTION("Marvell WiFi-Ex Driver version " VERSION);
883 MODULE_VERSION(VERSION);
884 MODULE_LICENSE("GPL v2");