aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2019-02-12 13:43:06 +0100
committerRafał Miłecki <rafal@milecki.pl>2019-02-12 13:50:40 +0100
commit0994e65c6a32ea7009d1fe89f7261cb5d106c7a3 (patch)
treee4a154b66c4dbc65e3db1e8a5f1c4d7385cf7ce3 /package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch
parent248797834bf21916ddf663edc96d86ee5377850e (diff)
downloadupstream-0994e65c6a32ea7009d1fe89f7261cb5d106c7a3.tar.gz
upstream-0994e65c6a32ea7009d1fe89f7261cb5d106c7a3.tar.bz2
upstream-0994e65c6a32ea7009d1fe89f7261cb5d106c7a3.zip
mac80211: brcmfmac: backport remaining patches from the Linux 5.0
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch')
-rw-r--r--package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch b/package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch
new file mode 100644
index 0000000000..c73ee93a8d
--- /dev/null
+++ b/package/kernel/mac80211/patches/brcm/328-v5.0-0002-brcmfmac-enable-frameburst-mode-in-default-firmware-.patch
@@ -0,0 +1,42 @@
+From a3bdc6deb60bf6be4405058ca49a686c4db08c39 Mon Sep 17 00:00:00 2001
+From: Wright Feng <Wright.Feng@cypress.com>
+Date: Mon, 5 Nov 2018 05:51:59 +0000
+Subject: [PATCH] brcmfmac: enable frameburst mode in default firmware setting
+
+The frameburst feature can enable per-packet framebursting in firmware
+side and get higher TX throughput in High Throughput(HT) mode. To enhance
+TX throughput, we enable frameburst mode in default firmware setting.
+
+Signed-off-by: Wright Feng <wright.feng@cypress.com>
+Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+---
+ drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++++++
+ drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h | 1 +
+ 2 files changed, 7 insertions(+)
+
+--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
+@@ -6631,6 +6631,12 @@ static s32 brcmf_config_dongle(struct br
+
+ brcmf_configure_arp_nd_offload(ifp, true);
+
++ err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_FAKEFRAG, 1);
++ if (err) {
++ brcmf_err("failed to set frameburst mode\n");
++ goto default_conf_out;
++ }
++
+ cfg->dongle_up = true;
+ default_conf_out:
+
+--- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h
++++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h
+@@ -80,6 +80,7 @@
+ #define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON 201
+ #define BRCMF_C_SET_ASSOC_PREFER 205
+ #define BRCMF_C_GET_VALID_CHANNELS 217
++#define BRCMF_C_SET_FAKEFRAG 219
+ #define BRCMF_C_GET_KEY_PRIMARY 235
+ #define BRCMF_C_SET_KEY_PRIMARY 236
+ #define BRCMF_C_SET_SCAN_PASSIVE_TIME 258