Merge branch 'topic/azt3328' into for-linus
[pandora-kernel.git] / drivers / net / wireless / ath / ath5k / base.c
index ea04515..029c1bc 100644 (file)
@@ -2970,6 +2970,9 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
        if (modparam_nohwcrypt)
                return -EOPNOTSUPP;
 
+       if (sc->opmode == NL80211_IFTYPE_AP)
+               return -EOPNOTSUPP;
+
        switch (key->alg) {
        case ALG_WEP:
        case ALG_TKIP: