Lines Matching defs:methods

532 static void wps_set_pushbutton(u16 *methods, u16 conf_methods)
534 *methods |= WPS_CONFIG_PUSHBUTTON;
538 *methods |= WPS_CONFIG_VIRT_PUSHBUTTON;
541 *methods |= WPS_CONFIG_PHY_PUSHBUTTON;
542 if ((*methods & WPS_CONFIG_VIRT_PUSHBUTTON) !=
544 (*methods & WPS_CONFIG_PHY_PUSHBUTTON) !=
551 *methods |= WPS_CONFIG_PHY_PUSHBUTTON;
560 u16 methods;
563 methods = reg->wps->config_methods;
564 methods &= ~WPS_CONFIG_PUSHBUTTON;
566 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
570 wps_set_pushbutton(&methods, reg->wps->config_methods);
572 methods = reg->sel_reg_config_methods_override;
574 methods);
577 wpabuf_put_be16(msg, methods);
585 u16 methods;
587 * These are the methods that the AP supports as an Enrollee for adding
590 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
592 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
595 wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods);
598 wpabuf_put_be16(msg, methods);
1202 u16 methods = 0;
1207 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
1209 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
1213 wps_set_pushbutton(&methods, reg->wps->config_methods);
1217 "config_methods=0x%x pbc=%d methods=0x%x",
1219 reg->pbc, methods);
1223 methods);
2363 static int wps_process_config_methods(struct wps_data *wps, const u8 *methods)
2367 if (methods == NULL) {
2372 m = WPA_GET_BE16(methods);
3371 u16 methods;
3373 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON;
3375 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON |
3381 wps_set_pushbutton(&methods, reg->wps->config_methods);
3385 reg->sel_reg_config_methods_override = methods;