Switching from cymdhd to brcmfmac, equivalent build configuration settings?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
ej
Level 1
Level 1
10 sign-ins 5 questions asked 5 sign-ins

Hello, 

We are moving from the cymdhd driver to the brcfmac backport with an CYM43455. We needed to set the following dhd build flags in order to achieve good 5Ghz WiFi throughput. What are the equivalent settings in brcmfmac?

   DHDCFLAGS += -DCUSTOM_AMPDU_MPDU=16
   DHDCFLAGS += -DCUSTOM_AMPDU_BA_WSIZE=64

   DHDCFLAGS += -DCUSTOM_GLOM_SETTING=8
   DHDCFLAGS += -DBCMSDIOH_TXGLOM -DCUSTOM_TXGLOM=1
   DHDCFLAGS += -DDHDTCPACK_SUPPRESS
   DHDCFLAGS += -DRXFRAME_THREAD
   DHDCFLAGS += -DCUSTOM_MAX_TXGLOM_SIZE=31
   DHDCFLAGS += -DMAX_HDR_READ=128
   DHDCFLAGS += -DDHD_FIRSTREAD=128

Thanks!

0 Likes
1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

From all the parameters mentioned in your initial description, i could only find the module parameter txglomsz which is maximum tx packet chain size for SDIO in brcmfmac/common.c. The default value is BRCMF_DEFAULT_TXGLOM_SIZE which is 32.

View solution in original post

4 Replies
DS_Lin
Level 5
Level 5
Distributor - Zenitron(GC)
First comment on blog 100 sign-ins 50 replies posted

Hi ej,

Your Fmac  Cypress Linux WiFi Driver Release (FMAC) [2020-09-25]  Yes?/No?

This is Cypress's Linux brcmfmac driver and firmware support package.

* Backports package (cypress-backports-v5.4.18-2020_0925-module-src.tar.gz)
* Firmware/clm_blob files (cypress-firmware-v5.4.18-2020_0925.tar.gz)
* Cypress fmac patch files (cypress-patch-v5.4.18-2020_0925.tar.gz)
* Device tree files (cypress-devicetree-2020-09-25.tar.gz)
* hostapd/wpa_supplicant patch (cypress-hostap_2_9-2020_0925.tar.gz)
* Cirrent Agent (cypress-cirrent-1.60.tar.gz)

0 Likes
ej
Level 1
Level 1
10 sign-ins 5 questions asked 5 sign-ins

Thanks yes we are using the backported brcmfmac from the Cypress 2020-09-25 package you linked to.

I outlined the issues we're having at a higher level in this question if that helps to provide context

https://community.cypress.com/t5/Wi-Fi-Bluetooth-for-Linux/Poor-5GHz-throughput-using-brcmfmac-inste...

0 Likes
DS_Lin
Level 5
Level 5
Distributor - Zenitron(GC)
First comment on blog 100 sign-ins 50 replies posted

Hi ej,

you can try new driver cypress-fmac-v5.4.18-2021_0114.zip 

Br,
DS

0 Likes
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

From all the parameters mentioned in your initial description, i could only find the module parameter txglomsz which is maximum tx packet chain size for SDIO in brcmfmac/common.c. The default value is BRCMF_DEFAULT_TXGLOM_SIZE which is 32.