Re: [EXT] [PATCH] wifi: mwifiex: Ensure all STA and AP use the same channel

From: Francesco Dolcini
Date: Mon Sep 09 2024 - 13:18:13 EST


Hello Sascha,

On Tue, Sep 03, 2024 at 07:31:34AM +0000, David Lin wrote:
> > From: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> >
> > The mwifiex chips support simultaneous Accesspoint and station mode, but this
> > only works when all are using the same channel. The downstream driver uses
> > ECSA which makes the Accesspoint automatically switch to the channel the
> > station is going to use. Until this is implemented in the mwifiex driver at
> > least catch this situation and bail out with an error.
> > Userspace doesn't have a meaningful way to figure out what went wrong, so
> > print an error message to give the user a clue.
> >
> > Without this patch the driver would timeout on the
> > HostCmd_CMD_802_11_ASSOCIATE command when creating a station with a
> > channel different from the one that an existing accesspoint uses.
> >
> > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
> > Cc: stable@xxxxxxxxxxxxxxx

...

> Please use
> https://patchwork.kernel.org/project/linux-wireless/patch/20240902084311.2607-1-yu-hao.lin@xxxxxxx/
> to replace this patch.
>
> This patch can't let AP and STA running on the same channel if some
> wiphy parameters are set.
>

Sasha, any comment on this? It seems you are solving the same issue (I
did not look into any of the 2 patches myself so far).

Francesco