From e410b9e03bb55733f5cf202db08a78e32afbb48b Mon Sep 17 00:00:00 2001 From: Rongjun Chen Date: Wed, 9 Aug 2017 19:26:44 +0800 Subject: [PATCH] wifi: fix ap6335 tx tp low issue PD#145265 fix ap6335 tx throughput low issue Change-Id: I78c381e133d713e75817e3f7fb4a64fdab8508a0 --- bcmdhd.1.363.59.144.x.cn/dhd_config.c | 2 +- bcmdhd.1.363.59.144.x.cn/include/linux_osl.h | 2 ++ bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bcmdhd.1.363.59.144.x.cn/dhd_config.c b/bcmdhd.1.363.59.144.x.cn/dhd_config.c index df98b41..a650832 100644 --- a/bcmdhd.1.363.59.144.x.cn/dhd_config.c +++ b/bcmdhd.1.363.59.144.x.cn/dhd_config.c @@ -2518,7 +2518,7 @@ dhd_conf_preinit(dhd_pub_t *dhd) #endif if (conf->txglomsize > SDPCM_MAXGLOM_SIZE) conf->txglomsize = SDPCM_MAXGLOM_SIZE; - conf->deferred_tx_len = conf->txglomsize; + conf->deferred_tx_len = 0; #endif return 0; diff --git a/bcmdhd.1.363.59.144.x.cn/include/linux_osl.h b/bcmdhd.1.363.59.144.x.cn/include/linux_osl.h index d560fec..278fecf 100644 --- a/bcmdhd.1.363.59.144.x.cn/include/linux_osl.h +++ b/bcmdhd.1.363.59.144.x.cn/include/linux_osl.h @@ -448,6 +448,8 @@ extern int osl_error(int bcmerror); #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)) && defined(TSQ_MULTIPLIER) #define PKTORPHAN(skb, tsq) osl_pkt_orphan_partial(skb, tsq) extern void osl_pkt_orphan_partial(struct sk_buff *skb, int tsq); +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0)) +#define PKTORPHAN(skb, tsq) skb_orphan(skb, tsq) #else #define PKTORPHAN(skb, tsq) ({BCM_REFERENCE(skb); 0;}) #endif /* LINUX VERSION >= 3.6 */ diff --git a/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c b/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c index 65b6895..12ae903 100644 --- a/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c +++ b/bcmdhd.1.363.59.144.x.cn/wl_cfg80211.c @@ -14497,7 +14497,7 @@ _Pragma("GCC diagnostic pop") wl_flush_eq(cfg); if (cfg->link_up) { //army fix wifi stop call trace issue - cfg80211_disconnected(ndev, 0, NULL, 0, GFP_KERNEL); + CFG80211_DISCONNECTED(ndev, 0, NULL, 0, false, GFP_KERNEL); wl_link_down(cfg); } -- 2.20.1