From: Arend van Spriel <arend.vanspriel@broadcom.com>
To: Rafal <fatwildcat@gmail.com>
Cc: Dan Williams <dcbw@redhat.com>, linux-wireless@vger.kernel.org
Subject: Re: brcfmac: add possibility to turn off powersave on wiphy
Date: Tue, 25 Jul 2017 13:58:25 +0200 [thread overview]
Message-ID: <59773261.5030100@broadcom.com> (raw)
In-Reply-To: <alpine.DEB.2.20.1707212252060.13284@wilk>
On 7/21/2017 11:19 PM, Rafal wrote:
> On Fri, 21 Jul 2017, Dan Williams wrote:
>
>> On Fri, 2017-07-21 at 16:56 +0200, Rafal wrote:
>>> I have a board with ap6212 chip and I have encountered two problems
>>> with the brcmfmac driver operating with this device. First problem I
>>> describe below, second one in separate mail.
>>>
>>>
>>> Namely, I have noticed quite poor connection with the device despite
>>> good signal strength. Ping to the device was very uneven, about 50 -
>>> 100 ms in average, 10 - 20% of packets loss. After some
>>> investigations I have found that problem is caused by powersave
>>> feature on wiphy (BRCMF_C_SET_PM command). When the value is set to
>>> PM_OFF, the problem does not appear - ping is quite stable, ~2ms.
>>> When set to PM_FAST, the ping is bad.
>>>
>>> The brcmfmac driver currently does not have possibility to turn off
>>> the powersave feature. I have added the possibility on 4.11.6 kernel
>>
>> I don't think that's true? The driver implements the nl80211
>> set_power_mgmt hook, which lets you turn off powersave with 'iw'. That
>> seems like a much better option than a module parameter. I know other
>> drivers have the module parameter, but I personally consider that
>> legacy/holdover, given that we have runtime toggles for this kind of
>> thing.
>>
>> brcmf_cfg80211_set_power_mgmt() should do what you need, right?
>
> Yes, it does.
>
> In fact, I needed only a parameter in OF database. This is a bug in the
> device or firmware and I needed to disable the feature for this chip.
> Many device drivers allow to specify in OF database that driver should
> use a quirk. This is similar situation.
>
> I have added the kernel parameter as an additional feature. I thought
> that not all platforms are using devicetree database. But maybe it is a
> bad idea.
I was going to make the same remark as Dan. Anyway, the ping times are
not really unexpected. It depends on your beacon period and dtim
setting. However, the packet loss is not expected and will require
analyzing a sniff capture.
Regards,
Arend
next prev parent reply other threads:[~2017-07-25 11:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 14:56 brcfmac: add possibility to turn off powersave on wiphy Rafal
2017-07-21 16:51 ` Dan Williams
2017-07-21 21:19 ` Rafal
2017-07-24 15:50 ` Dan Williams
2017-07-25 11:58 ` Arend van Spriel [this message]
2017-07-25 13:22 ` Rafal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=59773261.5030100@broadcom.com \
--to=arend.vanspriel@broadcom.com \
--cc=dcbw@redhat.com \
--cc=fatwildcat@gmail.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).