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/11n.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/11n.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.c b/drivers/net/wireless/mwifiex/11n.c index 73a6e62f5680..edf4c274fa9b 100644 --- a/drivers/net/wireless/mwifiex/11n.c +++ b/drivers/net/wireless/mwifiex/11n.c | |||
@@ -541,9 +541,8 @@ mwifiex_cfg_tx_buf(struct mwifiex_private *priv, | |||
541 | else if (priv->adapter->curr_tx_buf_size <= MWIFIEX_TX_DATA_BUF_SIZE_8K) | 541 | else if (priv->adapter->curr_tx_buf_size <= MWIFIEX_TX_DATA_BUF_SIZE_8K) |
542 | curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_8K; | 542 | curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_8K; |
543 | if (curr_tx_buf_size != tx_buf) | 543 | if (curr_tx_buf_size != tx_buf) |
544 | mwifiex_prepare_cmd(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF, | 544 | mwifiex_send_cmd_async(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF, |
545 | HostCmd_ACT_GEN_SET, 0, | 545 | HostCmd_ACT_GEN_SET, 0, &tx_buf); |
546 | NULL, &tx_buf); | ||
547 | 546 | ||
548 | return; | 547 | return; |
549 | } | 548 | } |
@@ -694,8 +693,8 @@ int mwifiex_send_addba(struct mwifiex_private *priv, int tid, u8 *peer_mac) | |||
694 | memcpy(&add_ba_req.peer_mac_addr, peer_mac, ETH_ALEN); | 693 | memcpy(&add_ba_req.peer_mac_addr, peer_mac, ETH_ALEN); |
695 | 694 | ||
696 | /* We don't wait for the response of this command */ | 695 | /* We don't wait for the response of this command */ |
697 | ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_11N_ADDBA_REQ, | 696 | ret = mwifiex_send_cmd_async(priv, HostCmd_CMD_11N_ADDBA_REQ, |
698 | 0, 0, NULL, &add_ba_req); | 697 | 0, 0, &add_ba_req); |
699 | 698 | ||
700 | return ret; | 699 | return ret; |
701 | } | 700 | } |
@@ -722,8 +721,8 @@ int mwifiex_send_delba(struct mwifiex_private *priv, int tid, u8 *peer_mac, | |||
722 | memcpy(&delba.peer_mac_addr, peer_mac, ETH_ALEN); | 721 | memcpy(&delba.peer_mac_addr, peer_mac, ETH_ALEN); |
723 | 722 | ||
724 | /* We don't wait for the response of this command */ | 723 | /* We don't wait for the response of this command */ |
725 | ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_11N_DELBA, | 724 | ret = mwifiex_send_cmd_async(priv, HostCmd_CMD_11N_DELBA, |
726 | HostCmd_ACT_GEN_SET, 0, NULL, &delba); | 725 | HostCmd_ACT_GEN_SET, 0, &delba); |
727 | 726 | ||
728 | return ret; | 727 | return ret; |
729 | } | 728 | } |