From c6ef1a934a0665f3d19ddf7d380b7124b8e78d09 Mon Sep 17 00:00:00 2001 From: Rongjun Chen Date: Fri, 9 Dec 2016 18:36:31 +0800 Subject: [PATCH] wifi: update bcm4358 wifi driver Change-Id: I6f19f247a50b271c863fe119ff48c84eedb42434 --- bcmdhd.1.363.59.144.x.cn/Makefile | 4 ++-- bcmdhd.1.363.59.144.x.cn/dhd_linux.c | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/bcmdhd.1.363.59.144.x.cn/Makefile b/bcmdhd.1.363.59.144.x.cn/Makefile index b3304b7..5ec9dc8 100644 --- a/bcmdhd.1.363.59.144.x.cn/Makefile +++ b/bcmdhd.1.363.59.144.x.cn/Makefile @@ -27,7 +27,7 @@ DHDOFILES = aiutils.o siutils.o sbutils.o bcmutils.o bcmwifi_channels.o \ ifneq ($(CONFIG_BCMDHD_SDIO),) DHDCFLAGS += \ -DBCMSDIO -DMMC_SDIO_ABORT -DBCMLXSDMMC -DUSE_SDIOFIFO_IOVAR \ - -DBDC -DPROP_TXSTATUS -DDHD_USE_IDLECOUNT -DBCMSDIOH_TXGLOM \ + -DBDC -DDHD_USE_IDLECOUNT -DBCMSDIOH_TXGLOM \ -DCUSTOM_SDIO_F2_BLKSIZE=128 DHDOFILES += bcmsdh.o bcmsdh_linux.o bcmsdh_sdmmc.o bcmsdh_sdmmc_linux.o \ @@ -88,7 +88,7 @@ DHDCFLAGS += -DWL_SUPPORT_AUTO_CHANNEL DHDCFLAGS += -DWL_SUPPORT_BACKPORTED_KPATCHES DHDCFLAGS += -DESCAN_RESULT_PATCH DHDCFLAGS += -DVSDB -DWL_CFG80211_VSDB_PRIORITIZE_SCAN_REQUEST -DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8 -DPROP_TXSTATUS_VSDB +DHDCFLAGS += -DWLTDLS -DMIRACAST_AMPDU_SIZE=8 endif EXTRA_CFLAGS = $(DHDCFLAGS) ifeq ($(CONFIG_BCMDHD),m) diff --git a/bcmdhd.1.363.59.144.x.cn/dhd_linux.c b/bcmdhd.1.363.59.144.x.cn/dhd_linux.c index bbfca16..a60fddc 100644 --- a/bcmdhd.1.363.59.144.x.cn/dhd_linux.c +++ b/bcmdhd.1.363.59.144.x.cn/dhd_linux.c @@ -8128,7 +8128,7 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) #else uint32 frameburst = 1; #endif /* BCMSDIO */ - + int maxtxpktglom = 0; #ifdef DHD_ENABLE_LPC uint32 lpc = 1; #endif /* DHD_ENABLE_LPC */ @@ -8746,7 +8746,15 @@ dhd_preinit_ioctls(dhd_pub_t *dhd) __FUNCTION__, ret)); } #endif - +/* Tune txpkt glom*/ + maxtxpktglom = 32; + bcm_mkiovar("bus:maxtxpktglom", (char *)&maxtxpktglom, 4, + iovbuf, sizeof(iovbuf)); + if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, + sizeof(iovbuf), TRUE, 0)) < 0) { + DHD_ERROR(("failed to set maxtxpktglom (%d)\n", ret)); + } +/* End of Tune txpkt glom*/ bcm_mkiovar("buf_key_b4_m4", (char *)&buf_key_b4_m4, 4, iovbuf, sizeof(iovbuf)); if ((ret = dhd_wl_ioctl_cmd(dhd, WLC_SET_VAR, iovbuf, sizeof(iovbuf), TRUE, 0)) < 0) { -- 2.20.1