* [PATCH] ath5k: drop bogus warning on drv_set_key with unsupported cipher
@ 2016-12-27 11:16 Felix Fietkau
2017-01-12 10:56 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Felix Fietkau @ 2016-12-27 11:16 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo
Simply return -EOPNOTSUPP instead.
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
drivers/net/wireless/ath/ath5k/mac80211-ops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index dc44cfef7517..16e052d02c94 100644
--- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
+++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
@@ -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);
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: ath5k: drop bogus warning on drv_set_key with unsupported cipher
2016-12-27 11:16 [PATCH] ath5k: drop bogus warning on drv_set_key with unsupported cipher Felix Fietkau
@ 2017-01-12 10:56 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2017-01-12 10:56 UTC (permalink / raw)
To: Felix Fietkau; +Cc: linux-wireless, kvalo
Felix Fietkau <nbd@nbd.name> wrote:
> Simply return -EOPNOTSUPP instead.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Patch applied to ath-next branch of ath.git, thanks.
a70e1d6fd6b5 ath5k: drop bogus warning on drv_set_key with unsupported cipher
--
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-01-12 10:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-27 11:16 [PATCH] ath5k: drop bogus warning on drv_set_key with unsupported cipher Felix Fietkau
2017-01-12 10:56 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox