2 * Wi-Fi Protected Setup - External Registrar
3 * Copyright (c) 2009, Jouni Malinen <j@w1.fi>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
18 #include "utils/list.h"
25 u8 uuid[WPS_UUID_LEN];
35 struct http_client *http;
36 struct wps_credential *cred;
42 struct dl_list sta; /* list of STAs/Enrollees using this AP */
45 struct http_client *http;
48 u8 uuid[WPS_UUID_LEN];
51 u8 mac_addr[ETH_ALEN];
54 char *manufacturer_url;
55 char *model_description;
71 struct wps_credential *ap_settings;
73 void (*m1_handler)(struct wps_er_ap *ap, struct wpabuf *m1);
77 struct wps_context *wps;
79 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */
80 char *ip_addr_text; /* IP address of network i.f. we use */
81 unsigned ip_addr; /* IP address of network i.f. we use (host order) */
85 struct dl_list ap_unsubscribing;
86 struct http_server *http_srv;
88 unsigned int next_ap_id;
89 unsigned int event_id;
91 void (*deinit_done_cb)(void *ctx);
92 void *deinit_done_ctx;
97 void wps_er_ap_add(struct wps_er *er, const u8 *uuid, struct in_addr *addr,
98 const char *location, int max_age);
99 void wps_er_ap_remove(struct wps_er *er, struct in_addr *addr);
102 int wps_er_ssdp_init(struct wps_er *er);
103 void wps_er_ssdp_deinit(struct wps_er *er);
104 void wps_er_send_ssdp_msearch(struct wps_er *er);
106 #endif /* WPS_ER_H */