ath10k-ct: switch to driver version 5.8
[openwrt/staging/wigyori.git] / package / kernel / ath10k-ct / patches / 960-0011-ath10k-limit-pci-buffer-size.patch
1 --- a/ath10k-5.8/pci.c
2 +++ b/ath10k-5.8/pci.c
3 @@ -131,7 +131,11 @@ static const struct ce_attr pci_host_ce_
4 .flags = CE_ATTR_FLAGS,
5 .src_nentries = 0,
6 .src_sz_max = 2048,
7 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
8 .dest_nentries = 512,
9 +#else
10 + .dest_nentries = 128,
11 +#endif
12 .recv_cb = ath10k_pci_htt_htc_rx_cb,
13 },
14
15 @@ -140,7 +144,11 @@ static const struct ce_attr pci_host_ce_
16 .flags = CE_ATTR_FLAGS,
17 .src_nentries = 0,
18 .src_sz_max = 2048,
19 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
20 .dest_nentries = 128,
21 +#else
22 + .dest_nentries = 64,
23 +#endif
24 .recv_cb = ath10k_pci_htc_rx_cb,
25 },
26
27 @@ -167,7 +175,11 @@ static const struct ce_attr pci_host_ce_
28 .flags = CE_ATTR_FLAGS,
29 .src_nentries = 0,
30 .src_sz_max = 512,
31 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
32 .dest_nentries = 512,
33 +#else
34 + .dest_nentries = 128,
35 +#endif
36 .recv_cb = ath10k_pci_htt_rx_cb,
37 },
38
39 @@ -192,7 +204,11 @@ static const struct ce_attr pci_host_ce_
40 .flags = CE_ATTR_FLAGS,
41 .src_nentries = 0,
42 .src_sz_max = 2048,
43 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
44 .dest_nentries = 128,
45 +#else
46 + .dest_nentries = 96,
47 +#endif
48 .recv_cb = ath10k_pci_pktlog_rx_cb,
49 },
50