9602792d4fcf7bc22a61b28c42de10a794a51b8d
[openwrt/staging/dangole.git] /
1 From a3bdc6deb60bf6be4405058ca49a686c4db08c39 Mon Sep 17 00:00:00 2001
2 From: Wright Feng <Wright.Feng@cypress.com>
3 Date: Mon, 5 Nov 2018 05:51:59 +0000
4 Subject: [PATCH] brcmfmac: enable frameburst mode in default firmware setting
5
6 The frameburst feature can enable per-packet framebursting in firmware
7 side and get higher TX throughput in High Throughput(HT) mode. To enhance
8 TX throughput, we enable frameburst mode in default firmware setting.
9
10 Signed-off-by: Wright Feng <wright.feng@cypress.com>
11 Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
12 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
13 ---
14 drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c | 6 ++++++
15 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h | 1 +
16 2 files changed, 7 insertions(+)
17
18 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
19 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c
20 @@ -6638,6 +6638,12 @@ static s32 brcmf_config_dongle(struct br
21
22 brcmf_configure_arp_nd_offload(ifp, true);
23
24 + err = brcmf_fil_cmd_int_set(ifp, BRCMF_C_SET_FAKEFRAG, 1);
25 + if (err) {
26 + brcmf_err("failed to set frameburst mode\n");
27 + goto default_conf_out;
28 + }
29 +
30 cfg->dongle_up = true;
31 default_conf_out:
32
33 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h
34 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil.h
35 @@ -80,6 +80,7 @@
36 #define BRCMF_C_SCB_DEAUTHENTICATE_FOR_REASON 201
37 #define BRCMF_C_SET_ASSOC_PREFER 205
38 #define BRCMF_C_GET_VALID_CHANNELS 217
39 +#define BRCMF_C_SET_FAKEFRAG 219
40 #define BRCMF_C_GET_KEY_PRIMARY 235
41 #define BRCMF_C_SET_KEY_PRIMARY 236
42 #define BRCMF_C_SET_SCAN_PASSIVE_TIME 258