aba87db0a5ccee22b477890dcc2dc57cf1857cfe
[openwrt.git] / package / mac80211 / patches / 588-ath9k-set-4ADDRESS-bit-in-RX-filter-for-AR9550.patch
1 From f8e7d8fcb297db362c9288ef5f1cd778e7ddd1a9 Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 2 Jul 2012 17:15:59 +0200
4 Subject: [PATCH 19/20] ath9k: set 4ADDRESS bit in RX filter for AR9550
5
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7 Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
8 ---
9  drivers/net/wireless/ath/ath9k/mac.h  |    1 +
10  drivers/net/wireless/ath/ath9k/recv.c |    3 +++
11  2 files changed, 4 insertions(+), 0 deletions(-)
12
13 --- a/drivers/net/wireless/ath/ath9k/mac.h
14 +++ b/drivers/net/wireless/ath/ath9k/mac.h
15 @@ -642,6 +642,7 @@ enum ath9k_rx_filter {
16         ATH9K_RX_FILTER_PHYRADAR = 0x00002000,
17         ATH9K_RX_FILTER_MCAST_BCAST_ALL = 0x00008000,
18         ATH9K_RX_FILTER_CONTROL_WRAPPER = 0x00080000,
19 +       ATH9K_RX_FILTER_4ADDRESS = 0x00100000,
20  };
21  
22  #define ATH9K_RATESERIES_RTS_CTS  0x0001
23 --- a/drivers/net/wireless/ath/ath9k/recv.c
24 +++ b/drivers/net/wireless/ath/ath9k/recv.c
25 @@ -430,6 +430,9 @@ u32 ath_calcrxfilter(struct ath_softc *s
26                 rfilt |= ATH9K_RX_FILTER_MCAST_BCAST_ALL;
27         }
28  
29 +       if (AR_SREV_9550(sc->sc_ah))
30 +               rfilt |= ATH9K_RX_FILTER_4ADDRESS;
31 +
32         return rfilt;
33  
34  }