ath5k: drop bogus warning on drv_set_key with unsupported cipher
PATCH 1/1 ath5k: drop bogus warning on drv_set_key with unsupported cipher
Simply return -EOPNOTSUPP instead.
Signed-off-by Felix Fietkau <[email protected]>
--- drivers/net/wireless/ath/ath5k/mac80211-ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/wireless/ath/ath5k/mac80211-ops.c +1 -2
@@ -502,8 +502,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,break ;return -EOPNOTSUPP ;default : -WARN_ON (1 ); -return -EINVAL ; +return -EOPNOTSUPP ; }mutex_lock (&ah->lock);
Signature · 1 line
2.11.0
Quoted 4 lines · Felix Fietkau
Simply return
-EOPNOTSUPPinstead.Signed-off-by Felix Fietkau <[email protected]>
Patch applied to ath-next branch of ath.git, thanks.
a70e1d6fd6b5 ath5k: drop bogus warning on drv_set_key with unsupported cipher
Signature · 6 lines
https://patchwork.kernel.org/patch/9489183/ Documentation about submitting wireless patches and checking status from patchwork: https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches