Lines Matching refs:ampe
518 struct ieee80211_ampe_ie *ampe; in mesh_rsn_protect_frame() local
526 len = sizeof(*ampe); in mesh_rsn_protect_frame()
548 ampe = (struct ieee80211_ampe_ie *) (ampe_ie + 2); in mesh_rsn_protect_frame()
550 RSN_SELECTOR_PUT(ampe->selected_pairwise_suite, in mesh_rsn_protect_frame()
552 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
553 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
555 pos = (u8 *) (ampe + 1); in mesh_rsn_protect_frame()
619 struct ieee80211_ampe_ie *ampe; in mesh_rsn_process_ampe() local
694 ampe = (struct ieee80211_ampe_ie *) ampe_buf; in mesh_rsn_process_ampe()
695 pos = (u8 *) (ampe + 1); in mesh_rsn_process_ampe()
697 if (os_memcmp(ampe->peer_nonce, null_nonce, WPA_NONCE_LEN) != 0 && in mesh_rsn_process_ampe()
698 os_memcmp(ampe->peer_nonce, sta->my_nonce, WPA_NONCE_LEN) != 0) { in mesh_rsn_process_ampe()
703 os_memcpy(sta->peer_nonce, ampe->local_nonce, in mesh_rsn_process_ampe()
704 sizeof(ampe->local_nonce)); in mesh_rsn_process_ampe()