Lines Matching refs:npkt
514 struct eapol_key_pkt *npkt; in wpa_send_2_of_4() local
519 npkt = iob->data; in wpa_send_2_of_4()
520 memcpy ( npkt, pkt, sizeof ( *pkt ) ); in wpa_send_2_of_4()
521 npkt->info &= ~EAPOL_KEY_INFO_KEY_ACK; in wpa_send_2_of_4()
522 npkt->info |= EAPOL_KEY_INFO_KEY_MIC; in wpa_send_2_of_4()
524 npkt->keysize = 0; in wpa_send_2_of_4()
525 memcpy ( npkt->nonce, ctx->Snonce, sizeof ( npkt->nonce ) ); in wpa_send_2_of_4()
526 npkt->datalen = ctx->dev->rsn_ie->len + 2; in wpa_send_2_of_4()
527 memcpy ( iob_put ( iob, npkt->datalen ), ctx->dev->rsn_ie, in wpa_send_2_of_4()
528 npkt->datalen ); in wpa_send_2_of_4()
607 struct eapol_key_pkt *npkt; in wpa_send_final() local
612 npkt = iob->data; in wpa_send_final()
613 memcpy ( npkt, pkt, sizeof ( *pkt ) ); in wpa_send_final()
614 npkt->info &= ~( EAPOL_KEY_INFO_KEY_ACK | EAPOL_KEY_INFO_INSTALL | in wpa_send_final()
617 npkt->keysize = 0; in wpa_send_final()
618 memset ( npkt->nonce, 0, sizeof ( npkt->nonce ) ); in wpa_send_final()
619 memset ( npkt->iv, 0, sizeof ( npkt->iv ) ); in wpa_send_final()
620 npkt->datalen = 0; in wpa_send_final()
622 if ( npkt->info & EAPOL_KEY_INFO_TYPE ) in wpa_send_final()