wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wps_upnp.h
Go to the documentation of this file.
1 
10 #ifndef WPS_UPNP_H
11 #define WPS_UPNP_H
12 
13 struct upnp_wps_device_sm;
14 struct wps_context;
15 struct wps_data;
16 
17 struct upnp_wps_peer {
18  struct wps_data *wps;
19 };
20 
21 enum upnp_wps_wlanevent_type {
22  UPNP_WPS_WLANEVENT_TYPE_PROBE = 1,
23  UPNP_WPS_WLANEVENT_TYPE_EAP = 2
24 };
25 
27  int (*rx_req_put_wlan_response)(
28  void *priv, enum upnp_wps_wlanevent_type ev_type,
29  const u8 *mac_addr, const struct wpabuf *msg,
30  enum wps_msg_type msg_type);
31 
32  char *ap_pin;
33 };
34 
35 struct upnp_wps_device_sm *
37  void *priv, char *net_if);
38 void upnp_wps_device_deinit(struct upnp_wps_device_sm *sm, void *priv);
39 
41  const u8 from_mac_addr[ETH_ALEN],
42  enum upnp_wps_wlanevent_type ev_type,
43  const struct wpabuf *msg);
45 int upnp_wps_set_ap_pin(struct upnp_wps_device_sm *sm, const char *ap_pin);
46 
47 #endif /* WPS_UPNP_H */
WPS registration protocol data.
Definition: wps_i.h:20
struct wps_context * wps
Pointer to long term WPS context.
Definition: wps_i.h:25
Definition: wps_upnp.h:26
struct upnp_wps_device_sm * upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps, void *priv, char *net_if)
Initialize WPS UPnP.
Definition: wps_upnp.c:1128
int upnp_wps_device_send_wlan_event(struct upnp_wps_device_sm *sm, const u8 from_mac_addr[ETH_ALEN], enum upnp_wps_wlanevent_type ev_type, const struct wpabuf *msg)
Event notification.
Definition: wps_upnp.c:786
Definition: wpabuf.h:16
Definition: wps_upnp_i.h:123
int upnp_wps_subscribers(struct upnp_wps_device_sm *sm)
Check whether there are any event subscribers.
Definition: wps_upnp.c:1187
Definition: wps_upnp.h:17
void upnp_wps_device_deinit(struct upnp_wps_device_sm *sm, void *priv)
Deinitialize WPS UPnP.
Definition: wps_upnp.c:1081
Long term WPS context data.
Definition: wps.h:623