UPnP WPS Device. More...
Go to the source code of this file.
Data Structures | |
struct | upnp_wps_peer |
struct | upnp_wps_device_ctx |
Enumerations | |
enum | upnp_wps_wlanevent_type { UPNP_WPS_WLANEVENT_TYPE_PROBE = 1, UPNP_WPS_WLANEVENT_TYPE_EAP = 2 } |
Functions | |
struct upnp_wps_device_sm * | upnp_wps_device_init (struct upnp_wps_device_ctx *ctx, struct wps_context *wps, void *priv) |
Initialize WPS UPnP. | |
void | upnp_wps_device_deinit (struct upnp_wps_device_sm *sm) |
Deinitialize WPS UPnP. | |
int | upnp_wps_device_start (struct upnp_wps_device_sm *sm, char *net_if) |
Start WPS UPnP operations on an interface. | |
void | upnp_wps_device_stop (struct upnp_wps_device_sm *sm) |
Stop WPS UPnP operations on an interface. | |
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. | |
int | upnp_wps_subscribers (struct upnp_wps_device_sm *sm) |
Check whether there are any event subscribers. |
UPnP WPS Device.
See wps_upnp.c for more details on licensing and code history.
Definition in file wps_upnp.h.
void upnp_wps_device_deinit | ( | struct upnp_wps_device_sm * | sm | ) |
Deinitialize WPS UPnP.
sm | WPS UPnP state machine from upnp_wps_device_init() |
Definition at line 1101 of file wps_upnp.c.
struct upnp_wps_device_sm* upnp_wps_device_init | ( | struct upnp_wps_device_ctx * | ctx, | |
struct wps_context * | wps, | |||
void * | priv | |||
) | [read] |
Initialize WPS UPnP.
ctx | callback table; we must eventually free it | |
wps | Pointer to longterm WPS context | |
priv | External context data that will be used in callbacks |
Definition at line 1126 of file wps_upnp.c.
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.
sm | WPS UPnP state machine from upnp_wps_device_init() | |
from_mac_addr | Source (Enrollee) MAC address for the event | |
ev_type | Event type | |
msg | Event data |
Tell external Registrars (UPnP control points) that something happened. In particular, events include WPS messages from clients that are proxied to external Registrars.
Definition at line 823 of file wps_upnp.c.
int upnp_wps_device_start | ( | struct upnp_wps_device_sm * | sm, | |
char * | net_if | |||
) |
Start WPS UPnP operations on an interface.
sm | WPS UPnP state machine from upnp_wps_device_init() | |
net_if | Selected network interface name |
Definition at line 1039 of file wps_upnp.c.
void upnp_wps_device_stop | ( | struct upnp_wps_device_sm * | sm | ) |
Stop WPS UPnP operations on an interface.
sm | WPS UPnP state machine from upnp_wps_device_init() |
Definition at line 997 of file wps_upnp.c.
int upnp_wps_subscribers | ( | struct upnp_wps_device_sm * | sm | ) |
Check whether there are any event subscribers.
sm | WPS UPnP state machine from upnp_wps_device_init() |
Definition at line 1151 of file wps_upnp.c.