Home
last modified time | relevance | path

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

/Linux-v5.15/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.c981 struct ieee80211_mmie *mmie; in ieee80211_get_mmie_keyidx() local
984 if (skb->len < 24 + sizeof(*mmie) || !is_multicast_ether_addr(hdr->da)) in ieee80211_get_mmie_keyidx()
991 mmie = (struct ieee80211_mmie *) in ieee80211_get_mmie_keyidx()
992 (skb->data + skb->len - sizeof(*mmie)); in ieee80211_get_mmie_keyidx()
993 if (mmie->element_id == WLAN_EID_MMIE && in ieee80211_get_mmie_keyidx()
994 mmie->length == sizeof(*mmie) - 2) in ieee80211_get_mmie_keyidx()
995 return le16_to_cpu(mmie->key_id); in ieee80211_get_mmie_keyidx()