diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n.c | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.c b/drivers/net/wireless/mwifiex/11n.c index 73a6e62f5680..e22d761f2ef2 100644 --- a/drivers/net/wireless/mwifiex/11n.c +++ b/drivers/net/wireless/mwifiex/11n.c | |||
@@ -115,7 +115,7 @@ mwifiex_fill_cap_info(struct mwifiex_private *priv, | |||
115 | SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask); | 115 | SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask); |
116 | 116 | ||
117 | /* Clear RD responder bit */ | 117 | /* Clear RD responder bit */ |
118 | RESETHT_EXTCAP_RDG(ht_ext_cap); | 118 | ht_ext_cap &= ~IEEE80211_HT_EXT_CAP_RD_RESPONDER; |
119 | 119 | ||
120 | ht_cap->ht_cap.cap_info = cpu_to_le16(ht_cap_info); | 120 | ht_cap->ht_cap.cap_info = cpu_to_le16(ht_cap_info); |
121 | ht_cap->ht_cap.extended_ht_cap_info = cpu_to_le16(ht_ext_cap); | 121 | ht_cap->ht_cap.extended_ht_cap_info = cpu_to_le16(ht_ext_cap); |
@@ -242,9 +242,7 @@ int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv, | |||
242 | * | 242 | * |
243 | * Handling includes changing the header fields into CPU format. | 243 | * Handling includes changing the header fields into CPU format. |
244 | */ | 244 | */ |
245 | int mwifiex_ret_11n_cfg(struct mwifiex_private *priv, | 245 | int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp, void *data_buf) |
246 | struct host_cmd_ds_command *resp, | ||
247 | void *data_buf) | ||
248 | { | 246 | { |
249 | struct mwifiex_ds_11n_tx_cfg *tx_cfg = NULL; | 247 | struct mwifiex_ds_11n_tx_cfg *tx_cfg = NULL; |
250 | struct host_cmd_ds_11n_cfg *htcfg = &resp->params.htcfg; | 248 | struct host_cmd_ds_11n_cfg *htcfg = &resp->params.htcfg; |
@@ -298,8 +296,7 @@ int mwifiex_cmd_recfg_tx_buf(struct mwifiex_private *priv, | |||
298 | * - Setting AMSDU control parameters (for SET only) | 296 | * - Setting AMSDU control parameters (for SET only) |
299 | * - Ensuring correct endian-ness | 297 | * - Ensuring correct endian-ness |
300 | */ | 298 | */ |
301 | int mwifiex_cmd_amsdu_aggr_ctrl(struct mwifiex_private *priv, | 299 | int mwifiex_cmd_amsdu_aggr_ctrl(struct host_cmd_ds_command *cmd, |
302 | struct host_cmd_ds_command *cmd, | ||
303 | int cmd_action, void *data_buf) | 300 | int cmd_action, void *data_buf) |
304 | { | 301 | { |
305 | struct host_cmd_ds_amsdu_aggr_ctrl *amsdu_ctrl = | 302 | struct host_cmd_ds_amsdu_aggr_ctrl *amsdu_ctrl = |
@@ -331,8 +328,7 @@ int mwifiex_cmd_amsdu_aggr_ctrl(struct mwifiex_private *priv, | |||
331 | * | 328 | * |
332 | * Handling includes changing the header fields into CPU format. | 329 | * Handling includes changing the header fields into CPU format. |
333 | */ | 330 | */ |
334 | int mwifiex_ret_amsdu_aggr_ctrl(struct mwifiex_private *priv, | 331 | int mwifiex_ret_amsdu_aggr_ctrl(struct host_cmd_ds_command *resp, |
335 | struct host_cmd_ds_command *resp, | ||
336 | void *data_buf) | 332 | void *data_buf) |
337 | { | 333 | { |
338 | struct mwifiex_ds_11n_amsdu_aggr_ctrl *amsdu_aggr_ctrl = NULL; | 334 | struct mwifiex_ds_11n_amsdu_aggr_ctrl *amsdu_aggr_ctrl = NULL; |
@@ -357,8 +353,7 @@ int mwifiex_ret_amsdu_aggr_ctrl(struct mwifiex_private *priv, | |||
357 | * - Setting HT Tx capability and HT Tx information fields | 353 | * - Setting HT Tx capability and HT Tx information fields |
358 | * - Ensuring correct endian-ness | 354 | * - Ensuring correct endian-ness |
359 | */ | 355 | */ |
360 | int mwifiex_cmd_11n_cfg(struct mwifiex_private *priv, | 356 | int mwifiex_cmd_11n_cfg(struct host_cmd_ds_command *cmd, |
361 | struct host_cmd_ds_command *cmd, | ||
362 | u16 cmd_action, void *data_buf) | 357 | u16 cmd_action, void *data_buf) |
363 | { | 358 | { |
364 | struct host_cmd_ds_11n_cfg *htcfg = &cmd->params.htcfg; | 359 | struct host_cmd_ds_11n_cfg *htcfg = &cmd->params.htcfg; |
@@ -541,11 +536,8 @@ mwifiex_cfg_tx_buf(struct mwifiex_private *priv, | |||
541 | else if (priv->adapter->curr_tx_buf_size <= MWIFIEX_TX_DATA_BUF_SIZE_8K) | 536 | 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; | 537 | curr_tx_buf_size = MWIFIEX_TX_DATA_BUF_SIZE_8K; |
543 | if (curr_tx_buf_size != tx_buf) | 538 | if (curr_tx_buf_size != tx_buf) |
544 | mwifiex_prepare_cmd(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF, | 539 | mwifiex_send_cmd_async(priv, HostCmd_CMD_RECONFIGURE_TX_BUFF, |
545 | HostCmd_ACT_GEN_SET, 0, | 540 | HostCmd_ACT_GEN_SET, 0, &tx_buf); |
546 | NULL, &tx_buf); | ||
547 | |||
548 | return; | ||
549 | } | 541 | } |
550 | 542 | ||
551 | /* | 543 | /* |
@@ -583,8 +575,6 @@ void mwifiex_11n_delete_tx_ba_stream_tbl_entry(struct mwifiex_private *priv, | |||
583 | list_del(&tx_ba_tsr_tbl->list); | 575 | list_del(&tx_ba_tsr_tbl->list); |
584 | 576 | ||
585 | kfree(tx_ba_tsr_tbl); | 577 | kfree(tx_ba_tsr_tbl); |
586 | |||
587 | return; | ||
588 | } | 578 | } |
589 | 579 | ||
590 | /* | 580 | /* |
@@ -663,8 +653,6 @@ void mwifiex_11n_create_tx_ba_stream_tbl(struct mwifiex_private *priv, | |||
663 | list_add_tail(&new_node->list, &priv->tx_ba_stream_tbl_ptr); | 653 | list_add_tail(&new_node->list, &priv->tx_ba_stream_tbl_ptr); |
664 | spin_unlock_irqrestore(&priv->tx_ba_stream_tbl_lock, flags); | 654 | spin_unlock_irqrestore(&priv->tx_ba_stream_tbl_lock, flags); |
665 | } | 655 | } |
666 | |||
667 | return; | ||
668 | } | 656 | } |
669 | 657 | ||
670 | /* | 658 | /* |
@@ -694,8 +682,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); | 682 | memcpy(&add_ba_req.peer_mac_addr, peer_mac, ETH_ALEN); |
695 | 683 | ||
696 | /* We don't wait for the response of this command */ | 684 | /* We don't wait for the response of this command */ |
697 | ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_11N_ADDBA_REQ, | 685 | ret = mwifiex_send_cmd_async(priv, HostCmd_CMD_11N_ADDBA_REQ, |
698 | 0, 0, NULL, &add_ba_req); | 686 | 0, 0, &add_ba_req); |
699 | 687 | ||
700 | return ret; | 688 | return ret; |
701 | } | 689 | } |
@@ -722,8 +710,8 @@ int mwifiex_send_delba(struct mwifiex_private *priv, int tid, u8 *peer_mac, | |||
722 | memcpy(&delba.peer_mac_addr, peer_mac, ETH_ALEN); | 710 | memcpy(&delba.peer_mac_addr, peer_mac, ETH_ALEN); |
723 | 711 | ||
724 | /* We don't wait for the response of this command */ | 712 | /* We don't wait for the response of this command */ |
725 | ret = mwifiex_prepare_cmd(priv, HostCmd_CMD_11N_DELBA, | 713 | ret = mwifiex_send_cmd_async(priv, HostCmd_CMD_11N_DELBA, |
726 | HostCmd_ACT_GEN_SET, 0, NULL, &delba); | 714 | HostCmd_ACT_GEN_SET, 0, &delba); |
727 | 715 | ||
728 | return ret; | 716 | return ret; |
729 | } | 717 | } |