Re: [PATCH v4] wifi: mwl8k: inject DSSS Parameter Set element into beacons if missing

From: Lennert Buytenhek

Date: Tue Nov 11 2025 - 11:13:27 EST


On Tue, Nov 11, 2025 at 11:07:29AM +0100, Pawel Dembicki wrote:

> Some Marvell AP firmware used with mwl8k misbehaves when beacon frames
> do not contain a WLAN_EID_DS_PARAMS element with the current channel.
> It was reported on OpenWrt Github issues [0].
>
> When hostapd/mac80211 omits DSSS Parameter Set from the beacon (which is
> valid on some bands), the firmware stops transmitting sane frames and RX
> status starts reporting bogus channel information. This makes AP mode
> unusable.
>
> Newer Marvell drivers (mwlwifi [1]) hard-code DSSS Parameter Set into
> AP beacons for all chips, which suggests this is a firmware requirement
> rather than a mwl8k-specific quirk.
>
> Mirror that behaviour in mwl8k: when setting the beacon, check if
> WLAN_EID_DS_PARAMS is present, and if not, extend the beacon and inject
> a DSSS Parameter Set element, using the current channel from
> hw->conf.chandef.chan.
>
> Tested on Linksys EA4500 (88W8366).

Given that I was CCd on this email -- I no longer have the hardware to
test this, but I can believe that the firmware would have such an issue,
and you seem to know what you are doing, so this seems conceptually OK
to me, for whatever that is worth.