Re: [PATCH v3 1/2] wifi: mwifiex: ignore ROM regulatory hint on WRT3200ACM/WRT32x
From: George Valkov
Date: Fri Aug 07 2026 - 15:50:30 EST
Hello Johannes, and thank you for your quick reply!
> You're supposed to always update bindings first, no?
To me the logical order is to implement the feature in the driver and
then enable it in each board which needs it. For Linux just WRT3200ACM.
A separate patch for WRT32x should be sent to OpenWrt.
Please let me know if I should reverse the order.
Hello Sashiko AI,
Yes, I intentionally implemented the flag as a root node.
This way the new device-tree property can be reused for the
other radios, which use mwlwifi, and also require this fix.
It would be inefficient and impractical to define a separate
device-tree property for each radio, where it is actually the
board that is affected, so it should be a per-board setting.
Also my attempts to use per device nodes or the parent always
return false so they are not usable.
I do not understand the part about dependence on CONFIG_OF.
of_property_read_bool() returns false when the flag is not
defined. This preserves the original behaviour as if it is
set to false, so the feature is disabled.
External radios which do not implement support for this flag
are not affected.
v2 of this PR used of_machine_is_compatible, but there was an
objection that this adds platform code to the driver.
How can I add binding documentation and where?
On Fri, 7 Aug 2026 at 21:39, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, 2026-08-07 at 21:21 +0300, Georgi Valkov wrote:
> >
> > + /* Allow platforms to ignore an incorrect
> > + * regulatory hint from ROM, so userspace
> > + * can set the correct regulatory domain.
> > + */
> > if (country_code &&
> > + !of_property_read_bool(of_root,
> > + "marvell,ignore-regulatory-hint") &&
> > regulatory_hint(wiphy, country_code))
>
> You're supposed to always update bindings first, no?
>
> johannes