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;
41 struct dl_list sta; /* list of STAs/Enrollees using this AP */
44 struct http_client *http;
47 u8 uuid[WPS_UUID_LEN];
50 u8 mac_addr[ETH_ALEN];
53 char *manufacturer_url;
54 char *model_description;
69 struct wps_credential *ap_settings;
71 void (*m1_handler)(struct wps_er_ap *ap, struct wpabuf *m1);
75 struct wps_context *wps;
77 char *mac_addr_text; /* mac addr of network i.f. we use */
78 u8 mac_addr[ETH_ALEN]; /* mac addr of network i.f. we use */
79 char *ip_addr_text; /* IP address of network i.f. we use */
80 unsigned ip_addr; /* IP address of network i.f. we use (host order) */
84 struct http_server *http_srv;
86 unsigned int next_ap_id;
87 unsigned int event_id;
92 void wps_er_ap_add(struct wps_er *er, const u8 *uuid, struct in_addr *addr,
93 const char *location, int max_age);
94 void wps_er_ap_remove(struct wps_er *er, struct in_addr *addr);
97 int wps_er_ssdp_init(struct wps_er *er);
98 void wps_er_ssdp_deinit(struct wps_er *er);
99 void wps_er_send_ssdp_msearch(struct wps_er *er);
101 #endif /* WPS_ER_H */