Lines Matching refs:ampe
537 struct ieee80211_ampe_ie *ampe; in mesh_rsn_protect_frame() local
545 len = sizeof(*ampe); in mesh_rsn_protect_frame()
567 ampe = (struct ieee80211_ampe_ie *) (ampe_ie + 2); in mesh_rsn_protect_frame()
569 RSN_SELECTOR_PUT(ampe->selected_pairwise_suite, in mesh_rsn_protect_frame()
571 os_memcpy(ampe->local_nonce, sta->my_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
572 os_memcpy(ampe->peer_nonce, sta->peer_nonce, WPA_NONCE_LEN); in mesh_rsn_protect_frame()
574 pos = (u8 *) (ampe + 1); in mesh_rsn_protect_frame()
638 struct ieee80211_ampe_ie *ampe; in mesh_rsn_process_ampe() local
715 ampe = (struct ieee80211_ampe_ie *) ampe_buf; in mesh_rsn_process_ampe()
716 pos = (u8 *) (ampe + 1); in mesh_rsn_process_ampe()
718 if (os_memcmp(ampe->peer_nonce, null_nonce, WPA_NONCE_LEN) != 0 && in mesh_rsn_process_ampe()
719 os_memcmp(ampe->peer_nonce, sta->my_nonce, WPA_NONCE_LEN) != 0) { in mesh_rsn_process_ampe()
724 os_memcpy(sta->peer_nonce, ampe->local_nonce, in mesh_rsn_process_ampe()
725 sizeof(ampe->local_nonce)); in mesh_rsn_process_ampe()