linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <aspriel@gmail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Kalle Valo <kvalo@codeaurora.org>,
	Franky Lin <franky.lin@broadcom.com>,
	Hante Meuleman <hante.meuleman@broadcom.com>,
	Chi-Hsien Lin <chi-hsien.lin@infineon.com>,
	Chung-hsien Hsu <chung-hsien.hsu@infineon.com>,
	Wright Feng <wright.feng@infineon.com>,
	linux-wireless <linux-wireless@vger.kernel.org>,
	brcm80211-dev-list.pdl@broadcom.com,
	SHA-cyfmac-dev-list@infineon.com
Subject: Re: [PATCH] brcmfmac: firmware: Treat EFI nvram ccode=XT the same as ccode=XV
Date: Tue, 5 Oct 2021 10:37:18 +0200	[thread overview]
Message-ID: <CAJ65rDyNR+a-4=eY=MFXLgXueaTX7yro4bpEnKtOOEYiWCdcbg@mail.gmail.com> (raw)
In-Reply-To: <43e39a93-fed1-acbb-517e-94cf0d6d739c@redhat.com>

On Tue, Oct 5, 2021 at 10:02 AM Hans de Goede <hdegoede@redhat.com> wrote:
>
> Hi Kalle,
>
> On 10/5/21 7:36 AM, Kalle Valo wrote:
> > Hans de Goede <hdegoede@redhat.com> writes:
> >
> >> In some cases the EFI-var stored nvram contains "ccode=ALL", "ccode=XV"
> >> or "ccode=XT", to specify "worldwide" compatible settings, but these
> >> ccode-s do not work properly. "ccode=ALL" causes channels 12 and 13 to
> >> not be available, "ccode=XV" / "ccode=XT" may cause all 5GHz channels
> >> to not be available.
> >>
> >> ccode="ALL" and ccode="XV" where already being replaced with ccode="X2"
> >> with a bit of special handling for nvram settings coming from an EFI
> >> variable. Extend this handling to also deal with nvram settings from
> >> EFI variables which contain "ccode=XT", which has similar issues to
> >> "ccode=XV".
> >>
> >> This fixes 5GHz wifi not working on the HP ElitePad 1000 G2.
> >>
> >> This was also tested on a Lenovo Thinkpad 8 tablet which also uses
> >> "ccode=XT" and this causes no adverse effects there.
> >>
> >> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> >
> > To me worldwide compatible settings mean that channels 12 and 13 should
> > be disabled, so I'm quite hesitant about this patch.
>
> The X2 setting puts channel 12 and 13 in passive / listen-only modes
> and only starts using them if there is an AP on them.
>
> AFAIK this is the same with the XT/XV settings. The problem is that the XT
> setting results in 5G not being available on some boards even though the
> hw supports it.
>
> Also note that we already use the X2 setting for any EFI supplied nvram
> files where ccode=ALL or ccode=XV, this just extends the handling we
> already have to also patch ccode=XT.

I am not overly excited about this approach that is already in use.
AFAIK these worldwide codes are tailored for specific
devices/customers based on their RF components. Using it as fallback
for other devices in such a generic way could even result in exceeding
regulatory limits. However, I do not have a better solution for this.
I am surprised to learn there are nvram out there with ccode=ALL as
that is for internal use only, but if these devices has SROM than the
nvram value is ignored. Hopefully, that is the case although given the
fact that changing it to X2 helps suggests otherwise :-(

Regards,
Arend

  reply	other threads:[~2021-10-05  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-03 16:03 [PATCH] brcmfmac: firmware: Treat EFI nvram ccode=XT the same as ccode=XV Hans de Goede
2021-10-05  5:36 ` Kalle Valo
2021-10-05  8:02   ` Hans de Goede
2021-10-05  8:37     ` Arend van Spriel [this message]
2021-10-11  6:08       ` Kalle Valo
2021-10-23 11:12       ` Hans de Goede

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='CAJ65rDyNR+a-4=eY=MFXLgXueaTX7yro4bpEnKtOOEYiWCdcbg@mail.gmail.com' \
    --to=aspriel@gmail.com \
    --cc=SHA-cyfmac-dev-list@infineon.com \
    --cc=brcm80211-dev-list.pdl@broadcom.com \
    --cc=chi-hsien.lin@infineon.com \
    --cc=chung-hsien.hsu@infineon.com \
    --cc=franky.lin@broadcom.com \
    --cc=hante.meuleman@broadcom.com \
    --cc=hdegoede@redhat.com \
    --cc=kvalo@codeaurora.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=wright.feng@infineon.com \
    /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).