Commit 11eda8f0 authored by Lo(Double)Hsiang Lo's avatar Lo(Double)Hsiang Lo Committed by Kalle Valo
Browse files

brcmfmac: increase dcmd maximum buffer size



Increase dcmd maximum buffer size to match firmware
configuration for new chips.

Signed-off-by: default avatarLo(Double)Hsiang Lo <double.lo@cypress.com>
Signed-off-by: default avatarChi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: default avatarIan Lin <ian.lin@infineon.com>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220922104140.11889-4-ian.lin@infineon.com
parent dce45ded
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -87,6 +87,8 @@ struct brcmf_proto_bcdc_header {
					 * plus any space that might be needed
					 * for bus alignment padding.
					 */
#define ROUND_UP_MARGIN 2048

struct brcmf_bcdc {
	u16 reqid;
	u8 bus_header[BUS_HEADER_LEN];
@@ -470,7 +472,7 @@ int brcmf_proto_bcdc_attach(struct brcmf_pub *drvr)

	drvr->hdrlen += BCDC_HEADER_LEN + BRCMF_PROT_FW_SIGNAL_MAX_TXBYTES;
	drvr->bus_if->maxctl = BRCMF_DCMD_MAXLEN +
			sizeof(struct brcmf_proto_bcdc_dcmd);
			sizeof(struct brcmf_proto_bcdc_dcmd) + ROUND_UP_MARGIN;
	return 0;

fail: