2 * Wi-Fi Protected Setup - External Registrar
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 #include "utils/list.h"
19 u8 uuid[WPS_UUID_LEN];
29 struct http_client *http;
30 struct wps_credential *cred;
36 struct dl_list sta; /* list of STAs/Enrollees using this AP */
39 struct http_client *http;
42 u8 uuid[WPS_UUID_LEN];
45 u8 mac_addr[ETH_ALEN];
48 char *manufacturer_url;
49 char *model_description;
65 struct wps_credential *ap_settings;
67 void (*m1_handler)(struct wps_er_ap *ap, struct wpabuf *m1);
70 struct wps_er_ap_settings {
72 u8 uuid[WPS_UUID_LEN];
73 struct wps_credential ap_settings;
77 struct wps_context *wps;
80 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */
81 char *ip_addr_text; /* IP address of network i.f. we use */
82 unsigned ip_addr; /* IP address of network i.f. we use (host order) */
86 struct dl_list ap_unsubscribing;
87 struct dl_list ap_settings;
88 struct http_server *http_srv;
90 unsigned int next_ap_id;
91 unsigned int event_id;
93 void (*deinit_done_cb)(void *ctx);
94 void *deinit_done_ctx;
95 struct in_addr filter_addr;
97 const u8 *set_sel_reg_uuid_filter;
102 void wps_er_ap_add(struct wps_er *er, const u8 *uuid, struct in_addr *addr,
103 const char *location, int max_age);
104 void wps_er_ap_remove(struct wps_er *er, struct in_addr *addr);
105 int wps_er_ap_cache_settings(struct wps_er *er, struct in_addr *addr);
108 int wps_er_ssdp_init(struct wps_er *er);
109 void wps_er_ssdp_deinit(struct wps_er *er);
110 void wps_er_send_ssdp_msearch(struct wps_er *er);
112 #endif /* WPS_ER_H */