Lines Matching refs:pairwise_cipher

153 static u8 * try_ptk(struct wlantest *wt, int pairwise_cipher,  in try_ptk()  argument
162 if ((pairwise_cipher == WPA_CIPHER_CCMP || in try_ptk()
163 pairwise_cipher == 0) && tk_len == 16) { in try_ptk()
166 } else if ((pairwise_cipher == WPA_CIPHER_CCMP_256 || in try_ptk()
167 pairwise_cipher == 0) && tk_len == 32) { in try_ptk()
170 } else if ((pairwise_cipher == WPA_CIPHER_GCMP || in try_ptk()
171 pairwise_cipher == WPA_CIPHER_GCMP_256 || in try_ptk()
172 pairwise_cipher == 0) && in try_ptk()
176 } else if ((pairwise_cipher == WPA_CIPHER_TKIP || in try_ptk()
177 pairwise_cipher == 0) && tk_len == 32) { in try_ptk()
193 static u8 * try_all_ptk(struct wlantest *wt, int pairwise_cipher, in try_all_ptk() argument
204 decrypted = try_ptk(wt, pairwise_cipher, &ptk->ptk, hdr, a1, a2, in try_all_ptk()
388 if (sta->pairwise_cipher == WPA_CIPHER_CCMP_256) in try_ptk_decrypt()
391 else if (sta->pairwise_cipher == WPA_CIPHER_GCMP || in try_ptk_decrypt()
392 sta->pairwise_cipher == WPA_CIPHER_GCMP_256) in try_ptk_decrypt()
510 (!sta->ptk_set && sta->pairwise_cipher != WPA_CIPHER_WEP40)) && in rx_data_bss_prot()
532 if (sta->pairwise_cipher & (WPA_CIPHER_TKIP | WPA_CIPHER_CCMP | in rx_data_bss_prot()
542 if (tk == NULL && sta->pairwise_cipher == WPA_CIPHER_TKIP) { in rx_data_bss_prot()
555 } else if (tk || sta->pairwise_cipher == WPA_CIPHER_CCMP || in rx_data_bss_prot()
556 sta->pairwise_cipher == WPA_CIPHER_GCMP || in rx_data_bss_prot()
557 sta->pairwise_cipher == WPA_CIPHER_GCMP_256 || in rx_data_bss_prot()
558 sta->pairwise_cipher == WPA_CIPHER_CCMP_256) { in rx_data_bss_prot()
607 if (tk == NULL && sta->pairwise_cipher == WPA_CIPHER_TKIP) in rx_data_bss_prot()
609 else if (sta->pairwise_cipher == WPA_CIPHER_WEP40) in rx_data_bss_prot()
649 if (sta->pairwise_cipher == WPA_CIPHER_CCMP_256) { in rx_data_bss_prot()
653 } else if (sta->pairwise_cipher == WPA_CIPHER_GCMP || in rx_data_bss_prot()
654 sta->pairwise_cipher == WPA_CIPHER_GCMP_256) { in rx_data_bss_prot()
664 } else if (sta->pairwise_cipher == WPA_CIPHER_TKIP) { in rx_data_bss_prot()
674 } else if (sta->pairwise_cipher == WPA_CIPHER_WEP40) { in rx_data_bss_prot()
682 decrypted = try_all_ptk(wt, sta->pairwise_cipher, hdr, in rx_data_bss_prot()
688 decrypted = try_all_ptk(wt, sta->pairwise_cipher, hdr, in rx_data_bss_prot()
701 zero_ptk.tk_len = wpa_cipher_key_len(sta->pairwise_cipher); in rx_data_bss_prot()
703 decrypted = try_ptk(wt, sta->pairwise_cipher, &zero_ptk, hdr, in rx_data_bss_prot()