]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blobdiff - drivers/net/wireless/at76c50x-usb.c
mac80211: use cipher suite selectors
[mirror_ubuntu-kernels.git] / drivers / net / wireless / at76c50x-usb.c
index d5140a87f0737d92adde6ce9bb725d679be16538..a267bf55574ce74ef5bc9d23d6a6f3d8e9d9ed75 100644 (file)
@@ -2061,11 +2061,12 @@ static int at76_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd,
 
        int i;
 
-       at76_dbg(DBG_MAC80211, "%s(): cmd %d key->alg %d key->keyidx %d "
+       at76_dbg(DBG_MAC80211, "%s(): cmd %d key->cipher %d key->keyidx %d "
                 "key->keylen %d",
-                __func__, cmd, key->alg, key->keyidx, key->keylen);
+                __func__, cmd, key->cipher, key->keyidx, key->keylen);
 
-       if (key->alg != ALG_WEP)
+       if ((key->cipher != WLAN_CIPHER_SUITE_WEP40) &&
+           (key->cipher != WLAN_CIPHER_SUITE_WEP104))
                return -EOPNOTSUPP;
 
        key->hw_key_idx = key->keyidx;