kernel: add missing config symbols for 4.9
[openwrt/staging/yousong.git] / package / kernel / mac80211 / patches / 346-ath5k-drop-bogus-warning-on-drv_set_key-with-unsuppo.patch
1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Tue, 27 Dec 2016 12:15:14 +0100
3 Subject: [PATCH] ath5k: drop bogus warning on drv_set_key with unsupported
4 cipher
5
6 Simply return -EOPNOTSUPP instead.
7
8 Cc: stable@vger.kernel.org
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
10 ---
11
12 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
13 +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
14 @@ -502,8 +502,7 @@ ath5k_set_key(struct ieee80211_hw *hw, e
15 break;
16 return -EOPNOTSUPP;
17 default:
18 - WARN_ON(1);
19 - return -EINVAL;
20 + return -EOPNOTSUPP;
21 }
22
23 mutex_lock(&ah->lock);