Commit a5294659 authored by Felix Fietkau's avatar Felix Fietkau Committed by Greg Kroah-Hartman

ath5k: drop bogus warning on drv_set_key with unsupported cipher

commit a70e1d6f upstream.

Simply return -EOPNOTSUPP instead.
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21b7618b
...@@ -502,8 +502,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, ...@@ -502,8 +502,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
break; break;
return -EOPNOTSUPP; return -EOPNOTSUPP;
default: default:
WARN_ON(1); return -EOPNOTSUPP;
return -EINVAL;
} }
mutex_lock(&ah->lock); mutex_lock(&ah->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment