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
index 0b691217b2f2f385b2d2ee7fd91c52e209872558..98653d6b729949c3edf21639caf4b4d12a795000 100644 (file)
@@ -1,6 +1,6 @@
---- a/ath10k-4.19/pci.c
-+++ b/ath10k-4.19/pci.c
-@@ -142,7 +142,11 @@ static struct ce_attr host_ce_config_wla
+--- a/ath10k-5.8/pci.c
++++ b/ath10k-5.8/pci.c
+@@ -131,7 +131,11 @@ static const struct ce_attr pci_host_ce_
                .flags = CE_ATTR_FLAGS,
                .src_nentries = 0,
                .src_sz_max = 2048,
@@ -12,7 +12,7 @@
                .recv_cb = ath10k_pci_htt_htc_rx_cb,
        },
  
-@@ -151,7 +155,11 @@ static struct ce_attr host_ce_config_wla
+@@ -140,7 +144,11 @@ static const struct ce_attr pci_host_ce_
                .flags = CE_ATTR_FLAGS,
                .src_nentries = 0,
                .src_sz_max = 2048,
@@ -24,7 +24,7 @@
                .recv_cb = ath10k_pci_htc_rx_cb,
        },
  
-@@ -178,7 +186,11 @@ static struct ce_attr host_ce_config_wla
+@@ -167,7 +175,11 @@ static const struct ce_attr pci_host_ce_
                .flags = CE_ATTR_FLAGS,
                .src_nentries = 0,
                .src_sz_max = 512,
                .recv_cb = ath10k_pci_htt_rx_cb,
        },
  
-@@ -203,7 +215,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 128,
-+#else
-+              .dest_nentries = 96,
-+#endif
-               .recv_cb = ath10k_pci_pktlog_rx_cb,
-       },
---- a/ath10k-5.2/pci.c
-+++ b/ath10k-5.2/pci.c
-@@ -131,7 +131,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 512,
-+#else
-+              .dest_nentries = 128,
-+#endif
-               .recv_cb = ath10k_pci_htt_htc_rx_cb,
-       },
-@@ -140,7 +144,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 128,
-+#else
-+              .dest_nentries = 64,
-+#endif
-               .recv_cb = ath10k_pci_htc_rx_cb,
-       },
-@@ -167,7 +175,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 512,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 512,
-+#else
-+              .dest_nentries = 128,
-+#endif
-               .recv_cb = ath10k_pci_htt_rx_cb,
-       },
-@@ -192,7 +204,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 128,
-+#else
-+              .dest_nentries = 96,
-+#endif
-               .recv_cb = ath10k_pci_pktlog_rx_cb,
-       },
---- a/ath10k-5.4/pci.c
-+++ b/ath10k-5.4/pci.c
-@@ -131,7 +131,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 512,
-+#else
-+              .dest_nentries = 128,
-+#endif
-               .recv_cb = ath10k_pci_htt_htc_rx_cb,
-       },
-@@ -140,7 +144,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 2048,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 128,
-+#else
-+              .dest_nentries = 64,
-+#endif
-               .recv_cb = ath10k_pci_htc_rx_cb,
-       },
-@@ -167,7 +175,11 @@ static struct ce_attr host_ce_config_wla
-               .flags = CE_ATTR_FLAGS,
-               .src_nentries = 0,
-               .src_sz_max = 512,
-+#ifndef CONFIG_ATH10K_SMALLBUFFERS
-               .dest_nentries = 512,
-+#else
-+              .dest_nentries = 128,
-+#endif
-               .recv_cb = ath10k_pci_htt_rx_cb,
-       },
-@@ -192,7 +204,11 @@ static struct ce_attr host_ce_config_wla
+@@ -192,7 +204,11 @@ static const struct ce_attr pci_host_ce_
                .flags = CE_ATTR_FLAGS,
                .src_nentries = 0,
                .src_sz_max = 2048,