Lines Matching refs:wps

34 static void wps_er_sta_event(struct wps_context *wps, struct wps_er_sta *sta,
40 if (wps->event_cb == NULL)
55 wps->event_cb(wps->cb_ctx, event, &data);
76 wps_er_sta_event(sta->ap->er->wps, sta, WPS_EV_ER_ENROLLEE_REMOVE);
77 if (sta->wps)
78 wps_deinit(sta->wps);
127 static void wps_er_ap_event(struct wps_context *wps, struct wps_er_ap *ap,
133 if (wps->event_cb == NULL)
150 wps->event_cb(wps->cb_ctx, event, &data);
341 wps_er_ap_event(er->wps, ap, WPS_EV_ER_AP_REMOVE);
344 if (ap->wps) {
345 wps_deinit(ap->wps);
346 ap->wps = NULL;
413 wps_er_ap_event(ap->er->wps, ap, WPS_EV_ER_AP_ADD);
831 wps_er_sta_event(ap->er->wps, sta, WPS_EV_ER_ENROLLEE_ADD);
861 wps_registrar_probe_req_rx(ap->er->wps->registrar, addr, msg, 0);
1015 res = wps_process_msg(sta->wps, op_code, msg);
1017 struct wpabuf *next = wps_get_msg(sta->wps, &op_code);
1024 wps_deinit(sta->wps);
1025 sta->wps = NULL;
1040 if (sta->wps)
1041 wps_deinit(sta->wps);
1044 cfg.wps = sta->ap->er->wps;
1048 sta->wps = wps_init(&cfg);
1049 if (sta->wps == NULL)
1051 sta->wps->er = 1;
1052 sta->wps->use_cred = sta->ap->ap_settings;
1061 sta->wps->use_cred = sta->cred;
1092 else if (sta->wps) {
1250 wps_er_init(struct wps_context *wps, const char *ifname, const char *filter)
1266 er->wps = wps;
1337 wps_er_ap_event(er->wps, ap, WPS_EV_ER_AP_ADD);
1339 wps_er_sta_event(er->wps, sta, WPS_EV_ER_ENROLLEE_ADD);
1416 ap->er->wps->event_cb(ap->er->wps->cb_ctx,
1439 if (ap->wps) {
1508 struct wps_registrar *reg = er->wps->registrar;
1535 wps_er_build_uuid_r(msg, er->wps->uuid)) {
1552 er->wps->event_cb(er->wps->cb_ctx,
1566 if (er == NULL || er->wps == NULL)
1569 if (wps_registrar_pbc_overlap(er->wps->registrar, NULL, NULL)) {
1598 res = wps_registrar_button_pushed(er->wps->registrar, NULL);
1623 ap->er->wps->event_cb(ap->er->wps->cb_ctx, WPS_EV_ER_AP_SETTINGS,
1655 if (ap->wps) {
1656 wps_deinit(ap->wps);
1657 ap->wps = NULL;
1667 if (ap->wps) {
1668 wps_deinit(ap->wps);
1669 ap->wps = NULL;
1684 wps_deinit(ap->wps);
1685 ap->wps = NULL;
1736 if (ap->wps) {
1737 wps_deinit(ap->wps);
1738 ap->wps = NULL;
1764 res = wps_process_msg(ap->wps, op_code, msg);
1766 struct wpabuf *next = wps_get_msg(ap->wps, &op_code);
1773 wps_deinit(ap->wps);
1774 ap->wps = NULL;
1778 wps_deinit(ap->wps);
1779 ap->wps = NULL;
1783 wps_deinit(ap->wps);
1784 ap->wps = NULL;
1793 if (ap->wps) {
1800 cfg.wps = ap->er->wps;
1802 ap->wps = wps_init(&cfg);
1803 if (ap->wps == NULL)
1805 ap->wps->ap_settings_cb = wps_er_ap_settings_cb;
1806 ap->wps->ap_settings_cb_ctx = ap;
1928 if (ap->wps) {
1938 wps_registrar_add_pin(er->wps->registrar, NULL, uuid, pin, pin_len, 0);
1977 if (ap->wps) {
1984 cfg.wps = ap->er->wps;
1987 ap->wps = wps_init(&cfg);
1988 if (ap->wps == NULL)
1990 ap->wps->ap_settings_cb = NULL;
1991 ap->wps->ap_settings_cb_ctx = NULL;
2014 if (ap->wps) {
2031 wps_registrar_add_pin(er->wps->registrar, NULL, uuid, pin, pin_len, 0);
2040 struct wpabuf * wps_er_config_token_from_cred(struct wps_context *wps,
2051 data.wps = wps;
2080 return wps_er_config_token_from_cred(er->wps, ap->ap_settings);
2085 struct wps_context *wps, const u8 *uuid,
2102 os_memcpy(wps->ssid, ap->ap_settings->ssid, ap->ap_settings->ssid_len);
2103 wps->ssid_len = ap->ap_settings->ssid_len;
2105 return wps_build_nfc_handover_sel(wps, pubkey, addr, 0);