aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 20ba6fa5f1f1..7db32ce3dbd8 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -2980,6 +2980,9 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
2980 if (modparam_nohwcrypt) 2980 if (modparam_nohwcrypt)
2981 return -EOPNOTSUPP; 2981 return -EOPNOTSUPP;
2982 2982
2983 if (sc->opmode == NL80211_IFTYPE_AP)
2984 return -EOPNOTSUPP;
2985
2983 switch (key->alg) { 2986 switch (key->alg) {
2984 case ALG_WEP: 2987 case ALG_WEP:
2985 case ALG_TKIP: 2988 case ALG_TKIP: