mwifiex: do not setup AMPDU/AMSDU with broadcast receiver
authorAvinash Patil <patila@marvell.com>
Wed, 5 Nov 2014 11:34:30 +0000 (17:04 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 11 Nov 2014 21:31:12 +0000 (16:31 -0500)
It is observed that device sometimes sends BA setup requests for
broadcast mac address.
This patch adds a check to avoid checking availability of
AMPDU/AMSDU streams for broadcast mac address.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n.h

index 2ee268b632be56ca1aa994ed9b1de7baece31d3d..f275675cdbd3b331846c7f05528acf4d6909932d 100644 (file)
@@ -84,6 +84,8 @@ mwifiex_is_amsdu_in_ampdu_allowed(struct mwifiex_private *priv,
 {
        struct mwifiex_tx_ba_stream_tbl *tx_tbl;
 
+       if (is_broadcast_ether_addr(ptr->ra))
+               return false;
        tx_tbl = mwifiex_get_ba_tbl(priv, tid, ptr->ra);
        if (tx_tbl)
                return tx_tbl->amsdu;
@@ -96,6 +98,8 @@ static inline u8
 mwifiex_is_ampdu_allowed(struct mwifiex_private *priv,
                         struct mwifiex_ra_list_tbl *ptr, int tid)
 {
+       if (is_broadcast_ether_addr(ptr->ra))
+               return false;
        if (GET_BSS_ROLE(priv) == MWIFIEX_BSS_ROLE_UAP) {
                return mwifiex_is_station_ampdu_allowed(priv, ptr, tid);
        } else {