wifi: rsi: Don't default to -EOPNOTSUPP in rsi_mac80211_config

[ Upstream commit d973b1039c ]

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.

Fixes: 0a44dfc070 ("wifi: mac80211: simplify non-chanctx drivers")
Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>
Link: https://patch.msgid.link/20260221-rsi-config-ret-v1-1-9a8f805e2f31@puri.sm
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sebastian Krzyszkowiak
2026-02-21 17:28:04 +01:00
committed by Greg Kroah-Hartman
parent 38063cc435
commit b64fbd718c
+1 -1
View File
@@ -666,7 +666,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;
mutex_lock(&common->mutex);