Lines Matching refs:encr_type
277 u16 encr_type = wps->wps->encr_types;
281 if (encr_type & WPS_ENCR_AES)
282 encr_type = WPS_ENCR_AES;
283 else if (encr_type & WPS_ENCR_TKIP)
284 encr_type = WPS_ENCR_TKIP;
286 if (encr_type & WPS_ENCR_WEP)
287 encr_type = WPS_ENCR_WEP;
288 else if (encr_type & WPS_ENCR_NONE)
289 encr_type = WPS_ENCR_NONE;
292 wpa_printf(MSG_DEBUG, "WPS: * Encryption Type (0x%x)", encr_type);
295 wpabuf_put_be16(msg, encr_type);
699 if (!(wps->cred.encr_type &
701 if (wps->cred.encr_type & WPS_ENCR_WEP) {
709 "invalid encr_type 0x%x", wps->cred.encr_type);
800 if (!(cred.encr_type & (WPS_ENCR_NONE | WPS_ENCR_TKIP | WPS_ENCR_AES)))
802 if (cred.encr_type & WPS_ENCR_WEP) {
810 "invalid encr_type 0x%x", cred.encr_type);
817 if ((cred.encr_type & (WPS_ENCR_TKIP | WPS_ENCR_AES)) ==
831 if ((cred.encr_type & (WPS_ENCR_TKIP | WPS_ENCR_AES)) == WPS_ENCR_TKIP)
833 wpa_printf(MSG_DEBUG, "WPS: Upgrade encr_type TKIP -> "
835 cred.encr_type |= WPS_ENCR_AES;