mac80211: refresh patches
[openwrt/openwrt.git] / package / kernel / mac80211 / patches / subsys / 100-remove-cryptoapi-dependencies.patch
index 7b036e4..ac78e62 100644 (file)
  #define AES_CCM_H
  
 -#include "aead_api.h"
-+#include <linux/crypto.h>
+-
 -#define CCM_AAD_LEN   32
 -
 -static inline struct crypto_aead *
 -                          be16_to_cpup((__be16 *)aad),
 -                          data, data_len, mic);
 -}
--
++#include <linux/crypto.h>
 -static inline void ieee80211_aes_key_free(struct crypto_aead *tfm)
 -{
 -      return aead_key_free(tfm);
  #define AES_GCM_H
  
 -#include "aead_api.h"
+-
+-#define GCM_AAD_LEN   32
 +#include <linux/crypto.h>
  
--#define GCM_AAD_LEN   32
--
 -static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm,
 -                                          u8 *j_0, u8 *aad,  u8 *data,
 -                                          size_t data_len, u8 *mic)