|
@@ -336,6 +336,17 @@ mt76x2_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
|
|
int idx = key->keyidx;
|
|
int idx = key->keyidx;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
|
|
+ /* fall back to sw encryption for unsupported ciphers */
|
|
|
|
+ switch (key->cipher) {
|
|
|
|
+ case WLAN_CIPHER_SUITE_WEP40:
|
|
|
|
+ case WLAN_CIPHER_SUITE_WEP104:
|
|
|
|
+ case WLAN_CIPHER_SUITE_TKIP:
|
|
|
|
+ case WLAN_CIPHER_SUITE_CCMP:
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ return -EOPNOTSUPP;
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* The hardware does not support per-STA RX GTK, fall back
|
|
* The hardware does not support per-STA RX GTK, fall back
|
|
* to software mode for these.
|
|
* to software mode for these.
|