On Wed, Sep 08, 2010 at 04:04:59PM +0900, Bruno Randolf wrote:
> Replace ah_aes_support and ah_combined_mic with common ath_crypt_caps
> ATH_CRYPT_CAP_CIPHER_AESCCM and ATH_CRYPT_CAP_MIC_COMBINED.
> 
> Signed-off-by: Bruno Randolf <b...@einfach.org>

> --- a/drivers/net/wireless/ath/ath5k/base.c
> +++ b/drivers/net/wireless/ath/ath5k/base.c
> @@ -3298,7 +3298,7 @@ ath5k_set_key(struct ieee80211_hw *hw, enum set_key_cmd 
> cmd,
>       case WLAN_CIPHER_SUITE_TKIP:
>               break;
>       case WLAN_CIPHER_SUITE_CCMP:
> -             if (sc->ah->ah_aes_support)
> +             if (common->crypt_caps & ATH_CRYPT_CAP_CIPHER_AESCCM)
>                       break;
>               return -EOPNOTSUPP;

This could be done by the common code too, right?

-- 
Bob Copeland %% www.bobcopeland.com

_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to