aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/11n.h
diff options
context:
space:
mode:
authorAvinash Patil <patila@marvell.com>2014-02-07 19:30:37 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-02-12 15:36:23 -0500
commitdaeb5bb48256d7488246d48453b2315281ce9c75 (patch)
tree0ce912edf00067073f3a23536c955f82f2835825 /drivers/net/wireless/mwifiex/11n.h
parentd63bf5e5e00dc025c71532e9244a96966ac8e252 (diff)
mwifiex: AMPDU support for TDLS link
This patch adds AMPDU support for TDLS link. We have set 11n capabilities including AMPDU parameters during ENABLE_LINK. We set a variable in RA list to indicate this as TDLS link. This patch uses these capabilities to know if AMPDU is allowed on TDLS link and enables AMPDU aggregation for TX and RX reording support for RA list for this peer. Signed-off-by: Avinash Patil <patila@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.h')
-rw-r--r--drivers/net/wireless/mwifiex/11n.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.h b/drivers/net/wireless/mwifiex/11n.h
index fde39fedf0c0..12bb6acbdd58 100644
--- a/drivers/net/wireless/mwifiex/11n.h
+++ b/drivers/net/wireless/mwifiex/11n.h
@@ -81,11 +81,15 @@ static inline u8
81mwifiex_is_ampdu_allowed(struct mwifiex_private *priv, 81mwifiex_is_ampdu_allowed(struct mwifiex_private *priv,
82 struct mwifiex_ra_list_tbl *ptr, int tid) 82 struct mwifiex_ra_list_tbl *ptr, int tid)
83{ 83{
84 if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) 84 if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) {
85 return mwifiex_is_station_ampdu_allowed(priv, ptr, tid); 85 return mwifiex_is_station_ampdu_allowed(priv, ptr, tid);
86 else 86 } else {
87 if (ptr->tdls_link)
88 return mwifiex_is_station_ampdu_allowed(priv, ptr, tid);
89
87 return (priv->aggr_prio_tbl[tid].ampdu_ap != 90 return (priv->aggr_prio_tbl[tid].ampdu_ap !=
88 BA_STREAM_NOT_ALLOWED) ? true : false; 91 BA_STREAM_NOT_ALLOWED) ? true : false;
92 }
89} 93}
90 94
91/* 95/*
@@ -179,4 +183,14 @@ static inline int mwifiex_is_sta_11n_enabled(struct mwifiex_private *priv,
179 183
180 return node->is_11n_enabled; 184 return node->is_11n_enabled;
181} 185}
186
187static inline u8
188mwifiex_tdls_peer_11n_enabled(struct mwifiex_private *priv, u8 *ra)
189{
190 struct mwifiex_sta_node *node = mwifiex_get_sta_entry(priv, ra);
191 if (node)
192 return node->is_11n_enabled;
193
194 return false;
195}
182#endif /* !_MWIFIEX_11N_H_ */ 196#endif /* !_MWIFIEX_11N_H_ */