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
;
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 dl_list ap_settings
;
87 struct http_server
*http_srv
;
89 unsigned int next_ap_id
;
90 unsigned int event_id
;
92 void (*deinit_done_cb
)(void *ctx
);
93 void *deinit_done_ctx
;
94 struct in_addr filter_addr
;
96 const u8
*set_sel_reg_uuid_filter
;
101 void wps_er_ap_add(struct wps_er
*er
, const u8
*uuid
, struct in_addr
*addr
,
102 const char *location
, int max_age
);
103 void wps_er_ap_remove(struct wps_er
*er
, struct in_addr
*addr
);
104 int wps_er_ap_cache_settings(struct wps_er
*er
, struct in_addr
*addr
);
107 int wps_er_ssdp_init(struct wps_er
*er
);
108 void wps_er_ssdp_deinit(struct wps_er
*er
);
109 void wps_er_send_ssdp_msearch(struct wps_er
*er
);
111 #endif /* WPS_ER_H */