Home
last modified time | relevance | path

Searched refs:mmie (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/net/mac80211/
Dwpa.c949 struct ieee80211_mmie *mmie; in ieee80211_crypto_aes_cmac_encrypt() local
964 if (WARN_ON(skb_tailroom(skb) < sizeof(*mmie))) in ieee80211_crypto_aes_cmac_encrypt()
967 mmie = skb_put(skb, sizeof(*mmie)); in ieee80211_crypto_aes_cmac_encrypt()
968 mmie->element_id = WLAN_EID_MMIE; in ieee80211_crypto_aes_cmac_encrypt()
969 mmie->length = sizeof(*mmie) - 2; in ieee80211_crypto_aes_cmac_encrypt()
970 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
975 bip_ipn_set64(mmie->sequence_number, pn64); in ieee80211_crypto_aes_cmac_encrypt()
986 skb->data + 24, skb->len - 24, mmie->mic); in ieee80211_crypto_aes_cmac_encrypt()
997 struct ieee80211_mmie_16 *mmie; in ieee80211_crypto_aes_cmac_256_encrypt() local
1011 if (WARN_ON(skb_tailroom(skb) < sizeof(*mmie))) in ieee80211_crypto_aes_cmac_256_encrypt()
[all …]
Drx.c967 struct ieee80211_mmie *mmie; in ieee80211_get_mmie_keyidx() local
970 if (skb->len < 24 + sizeof(*mmie) || !is_multicast_ether_addr(hdr->da)) in ieee80211_get_mmie_keyidx()
977 mmie = (struct ieee80211_mmie *) in ieee80211_get_mmie_keyidx()
978 (skb->data + skb->len - sizeof(*mmie)); in ieee80211_get_mmie_keyidx()
979 if (mmie->element_id == WLAN_EID_MMIE && in ieee80211_get_mmie_keyidx()
980 mmie->length == sizeof(*mmie) - 2) in ieee80211_get_mmie_keyidx()
981 return le16_to_cpu(mmie->key_id); in ieee80211_get_mmie_keyidx()