Home | History | Annotate | Download | only in wps

Lines Matching refs:methods

480 static void wps_set_pushbutton(u16 *methods, u16 conf_methods)
482 *methods |= WPS_CONFIG_PUSHBUTTON;
485 *methods |= WPS_CONFIG_VIRT_PUSHBUTTON;
487 *methods |= WPS_CONFIG_PHY_PUSHBUTTON;
488 if ((*methods & WPS_CONFIG_VIRT_PUSHBUTTON) !=
490 (*methods & WPS_CONFIG_PHY_PUSHBUTTON) !=
497 *methods |= WPS_CONFIG_PHY_PUSHBUTTON;
506 u16 methods;
509 methods = reg->wps->config_methods;
510 methods &= ~WPS_CONFIG_PUSHBUTTON;
512 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
516 wps_set_pushbutton(&methods, reg->wps->config_methods);
518 methods = reg->sel_reg_config_methods_override;
519 wpa_printf(MSG_DEBUG, "WPS: * Selected Registrar Config Methods (%x)",
520 methods);
523 wpabuf_put_be16(msg, methods);
531 u16 methods;
533 * These are the methods that the AP supports as an Enrollee for adding
536 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
538 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
541 wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods);
544 wpabuf_put_be16(msg, methods);
552 u16 methods;
553 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
555 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
559 wps_set_pushbutton(&methods, reg->wps->config_methods);
560 return wps_build_config_methods(msg, methods);
995 wpa_printf(MSG_DEBUG, "WPS: No Config Methods attribute in "
1085 u16 methods = 0;
1090 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
1092 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
1096 wps_set_pushbutton(&methods, reg->wps->config_methods);
1100 "config_methods=0x%x pbc=%d methods=0x%x",
1102 reg->pbc, methods);
1106 methods);
2200 static int wps_process_config_methods(struct wps_data *wps, const u8 *methods)
2204 if (methods == NULL) {
2205 wpa_printf(MSG_DEBUG, "WPS: No Config Methods received");
2209 m = WPA_GET_BE16(methods);
2211 wpa_printf(MSG_DEBUG, "WPS: Enrollee Config Methods 0x%x"
3173 u16 methods;
3175 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
3177 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
3183 wps_set_pushbutton(&methods, reg->wps->config_methods);
3187 reg->sel_reg_config_methods_override = methods;