* brcmfmac: command request size is determined by expected response size?
@ 2014-08-11 8:35 Daniel Drake
2014-08-11 8:53 ` Arend van Spriel
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2014-08-11 8:35 UTC (permalink / raw)
To: brcm80211-dev-list; +Cc: linux-wireless
Hi,
Looking at brcmfmac in Linux 3.16 with a BCM43241 SDIO card, I noticed that
brcmf_construct_reginfo() constructs and submits a really large
(1.5kb) request to the card. However, the actual request seems really
small and trivial (a header, the word "chanspecs" and not much more),
and we end up sending a whole lot of zeroes to fill the 1.5kb
allocation (MEDLEN).
I can understand that the card may wish to send 1.5kb in response, but
does the request itself really need to be the same size?
Thanks
Daniel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: brcmfmac: command request size is determined by expected response size?
2014-08-11 8:35 brcmfmac: command request size is determined by expected response size? Daniel Drake
@ 2014-08-11 8:53 ` Arend van Spriel
0 siblings, 0 replies; 2+ messages in thread
From: Arend van Spriel @ 2014-08-11 8:53 UTC (permalink / raw)
To: Daniel Drake, brcm80211-dev-list; +Cc: linux-wireless
On 08/11/2014 10:35 AM, Daniel Drake wrote:
> Hi,
>
> Looking at brcmfmac in Linux 3.16 with a BCM43241 SDIO card, I noticed that
> brcmf_construct_reginfo() constructs and submits a really large
> (1.5kb) request to the card. However, the actual request seems really
> small and trivial (a header, the word "chanspecs" and not much more),
> and we end up sending a whole lot of zeroes to fill the 1.5kb
> allocation (MEDLEN).
>
> I can understand that the card may wish to send 1.5kb in response, but
> does the request itself really need to be the same size?
The main reason is indeed that the request buffer is used by the device
firmware for the response message. That is a design decision in the
firmware that we must adhere to.
Regards,
Arend
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-11 8:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-11 8:35 brcmfmac: command request size is determined by expected response size? Daniel Drake
2014-08-11 8:53 ` Arend van Spriel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).