mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
ath5k: drop bogus warning on drv_set_key with unsupported cipher
commit a70e1d6fd6 upstream.
Simply return -EOPNOTSUPP instead.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6af0acc0b6
commit
dc7bbf895e
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user