]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
brcmfmac: enable frameburst mode in default firmware setting
authorWright Feng <Wright.Feng@cypress.com>
Mon, 5 Nov 2018 05:51:59 +0000 (05:51 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 13 Dec 2018 14:56:24 +0000 (16:56 +0200)
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
drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h

index 7f0a5bade70a66acf26453bb59c386245c859d06..648fdeabce02bcc8ef3ad512e0ffbdc9d1d7ccb1 100644 (file)
@@ -6639,6 +6639,12 @@ static s32 brcmf_config_dongle(struct brcmf_cfg80211_info *cfg)
 
        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:
 
index 63b1287e2e6d49122bdd2891f356c0e590ff978d..b6b183b184135218d9e08bebf6bdfce662f425be 100644 (file)
@@ -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