diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/init.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/init.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/init.c b/drivers/net/wireless/mwifiex/init.c index b2ba262f8a13..b5d37a8caa09 100644 --- a/drivers/net/wireless/mwifiex/init.c +++ b/drivers/net/wireless/mwifiex/init.c | |||
@@ -144,7 +144,7 @@ done: | |||
144 | * Additionally, it also initializes all the locks and sets up all the | 144 | * Additionally, it also initializes all the locks and sets up all the |
145 | * lists. | 145 | * lists. |
146 | */ | 146 | */ |
147 | static int mwifiex_init_priv(struct mwifiex_private *priv) | 147 | int mwifiex_init_priv(struct mwifiex_private *priv) |
148 | { | 148 | { |
149 | u32 i; | 149 | u32 i; |
150 | 150 | ||
@@ -214,6 +214,7 @@ static int mwifiex_init_priv(struct mwifiex_private *priv) | |||
214 | priv->wps_ie = NULL; | 214 | priv->wps_ie = NULL; |
215 | priv->wps_ie_len = 0; | 215 | priv->wps_ie_len = 0; |
216 | priv->ap_11n_enabled = 0; | 216 | priv->ap_11n_enabled = 0; |
217 | memset(&priv->roc_cfg, 0, sizeof(priv->roc_cfg)); | ||
217 | 218 | ||
218 | priv->scan_block = false; | 219 | priv->scan_block = false; |
219 | 220 | ||
@@ -648,6 +649,17 @@ static void mwifiex_delete_bss_prio_tbl(struct mwifiex_private *priv) | |||
648 | } | 649 | } |
649 | 650 | ||
650 | /* | 651 | /* |
652 | * This function frees the private structure, including cleans | ||
653 | * up the TX and RX queues and frees the BSS priority tables. | ||
654 | */ | ||
655 | void mwifiex_free_priv(struct mwifiex_private *priv) | ||
656 | { | ||
657 | mwifiex_clean_txrx(priv); | ||
658 | mwifiex_delete_bss_prio_tbl(priv); | ||
659 | mwifiex_free_curr_bcn(priv); | ||
660 | } | ||
661 | |||
662 | /* | ||
651 | * This function is used to shutdown the driver. | 663 | * This function is used to shutdown the driver. |
652 | * | 664 | * |
653 | * The following operations are performed sequentially - | 665 | * The following operations are performed sequentially - |