diff options
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n.h')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n.h | 53 |
1 files changed, 19 insertions, 34 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.h b/drivers/net/wireless/mwifiex/11n.h index 71a853e61b61..02602ff30cbf 100644 --- a/drivers/net/wireless/mwifiex/11n.h +++ b/drivers/net/wireless/mwifiex/11n.h | |||
@@ -28,15 +28,9 @@ int mwifiex_ret_11n_delba(struct mwifiex_private *priv, | |||
28 | struct host_cmd_ds_command *resp); | 28 | struct host_cmd_ds_command *resp); |
29 | int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv, | 29 | int mwifiex_ret_11n_addba_req(struct mwifiex_private *priv, |
30 | struct host_cmd_ds_command *resp); | 30 | struct host_cmd_ds_command *resp); |
31 | int mwifiex_ret_11n_cfg(struct mwifiex_private *priv, | 31 | int mwifiex_ret_11n_cfg(struct host_cmd_ds_command *resp, |
32 | struct host_cmd_ds_command *resp, | ||
33 | void *data_buf); | 32 | void *data_buf); |
34 | int mwifiex_cmd_11n_cfg(struct mwifiex_private *priv, | 33 | int mwifiex_cmd_11n_cfg(struct host_cmd_ds_command *cmd, |
35 | struct host_cmd_ds_command *cmd, | ||
36 | u16 cmd_action, void *data_buf); | ||
37 | |||
38 | int mwifiex_cmd_11n_cfg(struct mwifiex_private *priv, | ||
39 | struct host_cmd_ds_command *cmd, | ||
40 | u16 cmd_action, void *data_buf); | 34 | u16 cmd_action, void *data_buf); |
41 | 35 | ||
42 | int mwifiex_cmd_append_11n_tlv(struct mwifiex_private *priv, | 36 | int mwifiex_cmd_append_11n_tlv(struct mwifiex_private *priv, |
@@ -67,24 +61,19 @@ int mwifiex_get_rx_reorder_tbl(struct mwifiex_private *priv, | |||
67 | struct mwifiex_ds_rx_reorder_tbl *buf); | 61 | struct mwifiex_ds_rx_reorder_tbl *buf); |
68 | int mwifiex_get_tx_ba_stream_tbl(struct mwifiex_private *priv, | 62 | int mwifiex_get_tx_ba_stream_tbl(struct mwifiex_private *priv, |
69 | struct mwifiex_ds_tx_ba_stream_tbl *buf); | 63 | struct mwifiex_ds_tx_ba_stream_tbl *buf); |
70 | int mwifiex_ret_amsdu_aggr_ctrl(struct mwifiex_private *priv, | 64 | int mwifiex_ret_amsdu_aggr_ctrl(struct host_cmd_ds_command *resp, |
71 | struct host_cmd_ds_command | ||
72 | *resp, | ||
73 | void *data_buf); | 65 | void *data_buf); |
74 | int mwifiex_cmd_recfg_tx_buf(struct mwifiex_private *priv, | 66 | int mwifiex_cmd_recfg_tx_buf(struct mwifiex_private *priv, |
75 | struct host_cmd_ds_command *cmd, | 67 | struct host_cmd_ds_command *cmd, |
76 | int cmd_action, void *data_buf); | 68 | int cmd_action, void *data_buf); |
77 | int mwifiex_cmd_amsdu_aggr_ctrl(struct mwifiex_private *priv, | 69 | int mwifiex_cmd_amsdu_aggr_ctrl(struct host_cmd_ds_command *cmd, |
78 | struct host_cmd_ds_command *cmd, | 70 | int cmd_action, void *data_buf); |
79 | int cmd_action, | ||
80 | void *data_buf); | ||
81 | 71 | ||
82 | /* | 72 | /* |
83 | * This function checks whether AMPDU is allowed or not for a particular TID. | 73 | * This function checks whether AMPDU is allowed or not for a particular TID. |
84 | */ | 74 | */ |
85 | static inline u8 | 75 | static inline u8 |
86 | mwifiex_is_ampdu_allowed(struct mwifiex_private *priv, | 76 | mwifiex_is_ampdu_allowed(struct mwifiex_private *priv, int tid) |
87 | struct mwifiex_ra_list_tbl *ptr, int tid) | ||
88 | { | 77 | { |
89 | return ((priv->aggr_prio_tbl[tid].ampdu_ap != BA_STREAM_NOT_ALLOWED) | 78 | return ((priv->aggr_prio_tbl[tid].ampdu_ap != BA_STREAM_NOT_ALLOWED) |
90 | ? true : false); | 79 | ? true : false); |
@@ -94,8 +83,7 @@ mwifiex_is_ampdu_allowed(struct mwifiex_private *priv, | |||
94 | * This function checks whether AMSDU is allowed or not for a particular TID. | 83 | * This function checks whether AMSDU is allowed or not for a particular TID. |
95 | */ | 84 | */ |
96 | static inline u8 | 85 | static inline u8 |
97 | mwifiex_is_amsdu_allowed(struct mwifiex_private *priv, | 86 | mwifiex_is_amsdu_allowed(struct mwifiex_private *priv, int tid) |
98 | struct mwifiex_ra_list_tbl *ptr, int tid) | ||
99 | { | 87 | { |
100 | return (((priv->aggr_prio_tbl[tid].amsdu != BA_STREAM_NOT_ALLOWED) | 88 | return (((priv->aggr_prio_tbl[tid].amsdu != BA_STREAM_NOT_ALLOWED) |
101 | && ((priv->is_data_rate_auto) | 89 | && ((priv->is_data_rate_auto) |
@@ -104,23 +92,21 @@ mwifiex_is_amsdu_allowed(struct mwifiex_private *priv, | |||
104 | } | 92 | } |
105 | 93 | ||
106 | /* | 94 | /* |
107 | * This function checks whether a BA stream is available or not. | 95 | * This function checks whether a space is available for new BA stream or not. |
108 | */ | 96 | */ |
109 | static inline u8 | 97 | static inline u8 mwifiex_space_avail_for_new_ba_stream( |
110 | mwifiex_is_ba_stream_avail(struct mwifiex_private *priv) | 98 | struct mwifiex_adapter *adapter) |
111 | { | 99 | { |
112 | struct mwifiex_private *pmpriv = NULL; | 100 | struct mwifiex_private *priv; |
113 | u8 i = 0; | 101 | u8 i; |
114 | u32 ba_stream_num = 0; | 102 | u32 ba_stream_num = 0; |
115 | 103 | ||
116 | for (i = 0; i < priv->adapter->priv_num; i++) { | 104 | for (i = 0; i < adapter->priv_num; i++) { |
117 | pmpriv = priv->adapter->priv[i]; | 105 | priv = adapter->priv[i]; |
118 | if (pmpriv) | 106 | if (priv) |
119 | ba_stream_num += | 107 | ba_stream_num += mwifiex_wmm_list_len( |
120 | mwifiex_wmm_list_len(priv->adapter, | 108 | (struct list_head *) |
121 | (struct list_head | 109 | &priv->tx_ba_stream_tbl_ptr); |
122 | *) &pmpriv-> | ||
123 | tx_ba_stream_tbl_ptr); | ||
124 | } | 110 | } |
125 | 111 | ||
126 | return ((ba_stream_num < | 112 | return ((ba_stream_num < |
@@ -133,8 +119,7 @@ mwifiex_is_ba_stream_avail(struct mwifiex_private *priv) | |||
133 | * Upon successfully locating, both the TID and the RA are returned. | 119 | * Upon successfully locating, both the TID and the RA are returned. |
134 | */ | 120 | */ |
135 | static inline u8 | 121 | static inline u8 |
136 | mwifiex_find_stream_to_delete(struct mwifiex_private *priv, | 122 | mwifiex_find_stream_to_delete(struct mwifiex_private *priv, int ptr_tid, |
137 | struct mwifiex_ra_list_tbl *ptr, int ptr_tid, | ||
138 | int *ptid, u8 *ra) | 123 | int *ptid, u8 *ra) |
139 | { | 124 | { |
140 | int tid; | 125 | int tid; |