summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/uap_event.c
diff options
context:
space:
mode:
authorAvinash Patil2012-08-04 03:06:09 +0200
committerJohn W. Linville2012-08-06 21:12:55 +0200
commitd1cf3b958cb6940cb4e0a71697458035dad9e5b9 (patch)
tree5a097894dd322dd303a04e1118ec9832e4f01be8 /drivers/net/wireless/mwifiex/uap_event.c
parentmwifiex: improve uAP RX handling (diff)
downloadkernel-qcow2-linux-d1cf3b958cb6940cb4e0a71697458035dad9e5b9.tar.gz
kernel-qcow2-linux-d1cf3b958cb6940cb4e0a71697458035dad9e5b9.tar.xz
kernel-qcow2-linux-d1cf3b958cb6940cb4e0a71697458035dad9e5b9.zip
mwifiex: support RX AMSDU aggregation for uAP
This patch adds support for reception and decoding of AMSDU aggregation frames for AP interface. Patch also adds support for handling AMSDU aggregation event. 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/uap_event.c')
-rw-r--r--drivers/net/wireless/mwifiex/uap_event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/uap_event.c b/drivers/net/wireless/mwifiex/uap_event.c
index 37cc642a1b83..6270c809130a 100644
--- a/drivers/net/wireless/mwifiex/uap_event.c
+++ b/drivers/net/wireless/mwifiex/uap_event.c
@@ -242,6 +242,19 @@ int mwifiex_process_uap_event(struct mwifiex_private *priv)
/* For future development */
dev_dbg(adapter->dev, "AP EVENT: event id: %#x\n", eventcause);
break;
+ case EVENT_AMSDU_AGGR_CTRL:
+ dev_dbg(adapter->dev, "event: AMSDU_AGGR_CTRL %d\n",
+ *(u16 *)adapter->event_body);
+
+ if (priv->media_connected) {
+ adapter->tx_buf_size =
+ min(adapter->curr_tx_buf_size,
+ le16_to_cpu(*(__le16 *)adapter->event_body));
+
+ dev_dbg(adapter->dev, "event: tx_buf_size %d\n",
+ adapter->tx_buf_size);
+ }
+ break;
default:
dev_dbg(adapter->dev, "event: unknown event id: %#x\n",
eventcause);