mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-19 11:24:05 -05:00
00785aba71
This removes following WFA WLANConfig Service actions and the related state variables: GetAPSettings, SetAPSettings, DelAPSettings, GetSTASettings, SetSTASettings, DelSTASettings, RebootAP, ResetAP, RebootSTA, ResetSTA. While WFA WLANConfig Service version 1.0 claims that some of these are mandatory to implement for an AP, there are no known implementations supporting these actions neither in an AP/proxy or an External Registrar that would use them. These are unlikely to be supported in the future either and as such, it is just simpler to get rid of them to clean up the implementation and reduce code size.
56 lines
1.6 KiB
C
56 lines
1.6 KiB
C
/*
|
|
* UPnP WPS Device
|
|
* Copyright (c) 2000-2003 Intel Corporation
|
|
* Copyright (c) 2006-2007 Sony Corporation
|
|
* Copyright (c) 2008-2009 Atheros Communications
|
|
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* See wps_upnp.c for more details on licensing and code history.
|
|
*/
|
|
|
|
#ifndef WPS_UPNP_H
|
|
#define WPS_UPNP_H
|
|
|
|
struct upnp_wps_device_sm;
|
|
struct wps_context;
|
|
struct wps_data;
|
|
|
|
struct upnp_wps_peer {
|
|
struct wps_data *wps;
|
|
};
|
|
|
|
enum upnp_wps_wlanevent_type {
|
|
UPNP_WPS_WLANEVENT_TYPE_PROBE = 1,
|
|
UPNP_WPS_WLANEVENT_TYPE_EAP = 2
|
|
};
|
|
|
|
struct upnp_wps_device_ctx {
|
|
struct wpabuf * (*rx_req_get_device_info)(
|
|
void *priv, struct upnp_wps_peer *peer);
|
|
struct wpabuf * (*rx_req_put_message)(
|
|
void *priv, struct upnp_wps_peer *peer,
|
|
const struct wpabuf *msg);
|
|
int (*rx_req_put_wlan_response)(
|
|
void *priv, enum upnp_wps_wlanevent_type ev_type,
|
|
const u8 *mac_addr, const struct wpabuf *msg,
|
|
enum wps_msg_type msg_type);
|
|
int (*rx_req_set_selected_registrar)(void *priv,
|
|
const struct wpabuf *msg);
|
|
};
|
|
|
|
struct upnp_wps_device_sm *
|
|
upnp_wps_device_init(struct upnp_wps_device_ctx *ctx, struct wps_context *wps,
|
|
void *priv);
|
|
void upnp_wps_device_deinit(struct upnp_wps_device_sm *sm);
|
|
|
|
int upnp_wps_device_start(struct upnp_wps_device_sm *sm, char *net_if);
|
|
void upnp_wps_device_stop(struct upnp_wps_device_sm *sm);
|
|
|
|
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);
|
|
int upnp_wps_subscribers(struct upnp_wps_device_sm *sm);
|
|
|
|
#endif /* WPS_UPNP_H */
|