nf-conntrack: enable netlink events
[openwrt.git] / package / kernel / mac80211 / patches / 323-ath9k-add-multi_read-to-be-compatible-with-ath9k_htc.patch
1 From: Oleksij Rempel <linux@rempel-privat.de>
2 Date: Sun, 22 Mar 2015 19:29:50 +0100
3 Subject: [PATCH] ath9k: add multi_read to be compatible with ath9k_htc
4
5 Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
6 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
7 ---
8
9 --- a/drivers/net/wireless/ath/ath9k/init.c
10 +++ b/drivers/net/wireless/ath/ath9k/init.c
11 @@ -141,6 +141,16 @@ static unsigned int ath9k_ioread32(void
12         return val;
13  }
14  
15 +static void ath9k_multi_ioread32(void *hw_priv, u32 *addr,
16 +                                u32 *val, u16 count)
17 +{
18 +       int i;
19 +
20 +       for (i = 0; i < count; i++)
21 +               val[i] = ath9k_ioread32(hw_priv, addr[i]);
22 +}
23 +
24 +
25  static unsigned int __ath9k_reg_rmw(struct ath_softc *sc, u32 reg_offset,
26                                     u32 set, u32 clr)
27  {
28 @@ -530,6 +540,7 @@ static int ath9k_init_softc(u16 devid, s
29         ah->hw = sc->hw;
30         ah->hw_version.devid = devid;
31         ah->reg_ops.read = ath9k_ioread32;
32 +       ah->reg_ops.multi_read = ath9k_multi_ioread32;
33         ah->reg_ops.write = ath9k_iowrite32;
34         ah->reg_ops.rmw = ath9k_reg_rmw;
35         pCap = &ah->caps;