summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/11n.h
diff options
context:
space:
mode:
authorAvinash Patil2012-08-04 03:06:10 +0200
committerJohn W. Linville2012-08-06 21:12:55 +0200
commit5a009adf32d28bacc02da2ddeb69765848266ce1 (patch)
treeed1b97a0f917c0de4e394e46edfb5f01ddf6bf1f /drivers/net/wireless/mwifiex/11n.h
parentmwifiex: support RX AMSDU aggregation for uAP (diff)
downloadkernel-qcow2-linux-5a009adf32d28bacc02da2ddeb69765848266ce1.tar.gz
kernel-qcow2-linux-5a009adf32d28bacc02da2ddeb69765848266ce1.tar.xz
kernel-qcow2-linux-5a009adf32d28bacc02da2ddeb69765848266ce1.zip
mwifiex: add 11n Block Ack support for uAP
This patch adds support for handling BA request and BA setup events for AP interface. RA list is marked as either 11n enabled or disabled from station's capabilities in association request. BA setup is initiated only after some specific number of packets for particular RA list are transmitted. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kiran Divekar <dkiran@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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.h b/drivers/net/wireless/mwifiex/11n.h
index 28366e9211fb..6d2edb4c2ad2 100644
--- a/drivers/net/wireless/mwifiex/11n.h
+++ b/drivers/net/wireless/mwifiex/11n.h
@@ -157,4 +157,18 @@ mwifiex_is_ba_stream_setup(struct mwifiex_private *priv,
return false;
}
+
+/*
+ * This function checks whether associated station is 11n enabled
+ */
+static inline int mwifiex_is_sta_11n_enabled(struct mwifiex_private *priv,
+ struct mwifiex_sta_node *node)
+{
+
+ if (!node || (priv->bss_role != MWIFIEX_BSS_ROLE_UAP) ||
+ !priv->ap_11n_enabled)
+ return 0;
+
+ return node->is_11n_enabled;
+}
#endif /* !_MWIFIEX_11N_H_ */