Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Cc: kernel@puri.sm, linux-wireless@vger.kernel.org,
	 linux-kernel@vger.kernel.org
Subject: Re: [PATCH] net: wireless: rsi: Don't default to -EOPNOTSUPP in rsi_mac80211_config
Date: Mon, 23 Feb 2026 11:42:05 +0100	[thread overview]
Message-ID: <b70e193173ed4f32ac6df58c55032b327a16cc14.camel@sipsolutions.net> (raw)
In-Reply-To: <20260221-rsi-config-ret-v1-1-9a8f805e2f31@puri.sm>

Should have "wifi: rsi: ..." prefix

On Sat, 2026-02-21 at 17:28 +0100, Sebastian Krzyszkowiak wrote:
> This triggers a WARN_ON in ieee80211_hw_conf_init and isn't the expected
> behavior from the driver - other drivers default to 0 too.

This makes sense, but

> Fixes: 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers")

not sure this makes much sense? I guess it added the warning though.

> Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
> ---
>  drivers/net/wireless/rsi/rsi_91x_mac80211.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/rsi/rsi_91x_mac80211.c b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
> index 8c8e074a3a70..c7ae8031436a 100644
> --- a/drivers/net/wireless/rsi/rsi_91x_mac80211.c
> +++ b/drivers/net/wireless/rsi/rsi_91x_mac80211.c
> @@ -668,7 +668,7 @@ static int rsi_mac80211_config(struct ieee80211_hw *hw,
>  	struct rsi_hw *adapter = hw->priv;
>  	struct rsi_common *common = adapter->priv;
>  	struct ieee80211_conf *conf = &hw->conf;
> -	int status = -EOPNOTSUPP;
> +	int status = 0;

I'll note that this just fixes a minor thing in this driver, if you want
to actually use it you probably also want to fix

 - status is overwritten if multiple changes happen

 - WIPHY_PARAM_RTS_THRESHOLD there max absolutely no sense at all

johannes

      reply	other threads:[~2026-02-23 10:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-21 16:28 [PATCH] net: wireless: rsi: Don't default to -EOPNOTSUPP in rsi_mac80211_config Sebastian Krzyszkowiak
2026-02-23 10:42 ` Johannes Berg [this message]

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=b70e193173ed4f32ac6df58c55032b327a16cc14.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=kernel@puri.sm \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sebastian.krzyszkowiak@puri.sm \
    /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