diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2011-04-13 20:27:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-14 15:35:11 -0400 |
commit | 600f5d909a54a8dccf8c8c23898fc2e91bc0953e (patch) | |
tree | dad2709218946398c370647f16d0dd6f2f9a1919 /drivers/net/wireless/mwifiex/sdio.c | |
parent | 3a9dddea89eb2132ba919fe04cb3b44a3b1e6db7 (diff) |
mwifiex: cleanup ioctl wait queue and abstraction layer
1) remove mwifiex_alloc_fill_wait_queue() and
mwifiex_request_ioctl()
2) avoid dynamic allocation of wait queue
3) remove unnecessary mwifiex_error_code macros that
were used mainly by the wait queue status code
4) remove some abstraction functions
5) split mwifiex_prepare_cmd() to mwifiex_send_cmd_async()
and mwifiex_send_sync() to handle asynchronous and
synchronous commands respectively
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sdio.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sdio.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index f21e5cd19839..f207756cbb79 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c | |||
@@ -208,7 +208,7 @@ static int mwifiex_sdio_resume(struct device *dev) | |||
208 | 208 | ||
209 | /* Disable Host Sleep */ | 209 | /* Disable Host Sleep */ |
210 | mwifiex_cancel_hs(mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA), | 210 | mwifiex_cancel_hs(mwifiex_get_priv(adapter, MWIFIEX_BSS_ROLE_STA), |
211 | MWIFIEX_NO_WAIT); | 211 | MWIFIEX_ASYNC_CMD); |
212 | 212 | ||
213 | return 0; | 213 | return 0; |
214 | } | 214 | } |
@@ -1745,13 +1745,12 @@ mwifiex_sdio_cleanup_module(void) | |||
1745 | for (i = 0; i < adapter->priv_num; i++) | 1745 | for (i = 0; i < adapter->priv_num; i++) |
1746 | if ((GET_BSS_ROLE(adapter->priv[i]) == MWIFIEX_BSS_ROLE_STA) && | 1746 | if ((GET_BSS_ROLE(adapter->priv[i]) == MWIFIEX_BSS_ROLE_STA) && |
1747 | adapter->priv[i]->media_connected) | 1747 | adapter->priv[i]->media_connected) |
1748 | mwifiex_disconnect(adapter->priv[i], MWIFIEX_CMD_WAIT, | 1748 | mwifiex_deauthenticate(adapter->priv[i], NULL); |
1749 | NULL); | ||
1750 | 1749 | ||
1751 | if (!adapter->surprise_removed) | 1750 | if (!adapter->surprise_removed) |
1752 | mwifiex_shutdown_fw(mwifiex_get_priv | 1751 | mwifiex_init_shutdown_fw(mwifiex_get_priv(adapter, |
1753 | (adapter, MWIFIEX_BSS_ROLE_ANY), | 1752 | MWIFIEX_BSS_ROLE_ANY), |
1754 | MWIFIEX_CMD_WAIT); | 1753 | MWIFIEX_FUNC_SHUTDOWN); |
1755 | 1754 | ||
1756 | exit: | 1755 | exit: |
1757 | up(&add_remove_card_sem); | 1756 | up(&add_remove_card_sem); |