Lines Matching refs:methods

569 static void wps_set_pushbutton(u16 *methods, u16 conf_methods)  in wps_set_pushbutton()  argument
571 *methods |= WPS_CONFIG_PUSHBUTTON; in wps_set_pushbutton()
574 *methods |= WPS_CONFIG_VIRT_PUSHBUTTON; in wps_set_pushbutton()
577 *methods |= WPS_CONFIG_PHY_PUSHBUTTON; in wps_set_pushbutton()
578 if ((*methods & WPS_CONFIG_VIRT_PUSHBUTTON) != in wps_set_pushbutton()
580 (*methods & WPS_CONFIG_PHY_PUSHBUTTON) != in wps_set_pushbutton()
587 *methods |= WPS_CONFIG_PHY_PUSHBUTTON; in wps_set_pushbutton()
595 u16 methods; in wps_build_sel_reg_config_methods() local
598 methods = reg->wps->config_methods; in wps_build_sel_reg_config_methods()
599 methods &= ~WPS_CONFIG_PUSHBUTTON; in wps_build_sel_reg_config_methods()
600 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON | in wps_build_sel_reg_config_methods()
603 wps_set_pushbutton(&methods, reg->wps->config_methods); in wps_build_sel_reg_config_methods()
605 methods = reg->sel_reg_config_methods_override; in wps_build_sel_reg_config_methods()
607 methods); in wps_build_sel_reg_config_methods()
610 wpabuf_put_be16(msg, methods); in wps_build_sel_reg_config_methods()
618 u16 methods; in wps_build_probe_config_methods() local
623 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON; in wps_build_probe_config_methods()
624 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON | in wps_build_probe_config_methods()
626 wpa_printf(MSG_DEBUG, "WPS: * Config Methods (%x)", methods); in wps_build_probe_config_methods()
629 wpabuf_put_be16(msg, methods); in wps_build_probe_config_methods()
1270 u16 methods = 0; in wps_cb_set_sel_reg() local
1275 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON; in wps_cb_set_sel_reg()
1276 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON | in wps_cb_set_sel_reg()
1279 wps_set_pushbutton(&methods, reg->wps->config_methods); in wps_cb_set_sel_reg()
1285 reg->pbc, methods); in wps_cb_set_sel_reg()
1289 methods); in wps_cb_set_sel_reg()
2520 static int wps_process_config_methods(struct wps_data *wps, const u8 *methods) in wps_process_config_methods() argument
2524 if (methods == NULL) { in wps_process_config_methods()
2529 m = WPA_GET_BE16(methods); in wps_process_config_methods()
3561 u16 methods; in wps_registrar_selected_registrar_changed() local
3563 methods = reg->wps->config_methods & ~WPS_CONFIG_PUSHBUTTON; in wps_registrar_selected_registrar_changed()
3564 methods &= ~(WPS_CONFIG_VIRT_PUSHBUTTON | in wps_registrar_selected_registrar_changed()
3569 wps_set_pushbutton(&methods, reg->wps->config_methods); in wps_registrar_selected_registrar_changed()
3574 reg->sel_reg_config_methods_override = methods; in wps_registrar_selected_registrar_changed()