Home
last modified time | relevance | path

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

/linux-6.6.21/net/mac80211/
Dwpa.c826 struct ieee80211_mmie *mmie; in ieee80211_crypto_aes_cmac_encrypt() local
841 if (WARN_ON(skb_tailroom(skb) < sizeof(*mmie))) in ieee80211_crypto_aes_cmac_encrypt()
844 mmie = skb_put(skb, sizeof(*mmie)); in ieee80211_crypto_aes_cmac_encrypt()
845 mmie->element_id = WLAN_EID_MMIE; in ieee80211_crypto_aes_cmac_encrypt()
846 mmie->length = sizeof(*mmie) - 2; in ieee80211_crypto_aes_cmac_encrypt()
847 mmie->key_id = cpu_to_le16(key->conf.keyidx); in ieee80211_crypto_aes_cmac_encrypt()
852 bip_ipn_set64(mmie->sequence_number, pn64); in ieee80211_crypto_aes_cmac_encrypt()
863 skb->data + 24, skb->len - 24, mmie->mic); in ieee80211_crypto_aes_cmac_encrypt()
874 struct ieee80211_mmie_16 *mmie; in ieee80211_crypto_aes_cmac_256_encrypt() local
888 if (WARN_ON(skb_tailroom(skb) < sizeof(*mmie))) in ieee80211_crypto_aes_cmac_256_encrypt()
[all …]
Drx.c978 struct ieee80211_mmie *mmie; in ieee80211_get_mmie_keyidx() local
981 if (skb->len < 24 + sizeof(*mmie) || !is_multicast_ether_addr(hdr->da)) in ieee80211_get_mmie_keyidx()
988 mmie = (struct ieee80211_mmie *) in ieee80211_get_mmie_keyidx()
989 (skb->data + skb->len - sizeof(*mmie)); in ieee80211_get_mmie_keyidx()
990 if (mmie->element_id == WLAN_EID_MMIE && in ieee80211_get_mmie_keyidx()
991 mmie->length == sizeof(*mmie) - 2) in ieee80211_get_mmie_keyidx()
992 return le16_to_cpu(mmie->key_id); in ieee80211_get_mmie_keyidx()