]> git.ipfire.org Git - thirdparty/hostap.git/blame - wpa_supplicant/ap.h
AP: Pass only bssid/addr/wds to EVENT_RX_FROM_UNKNOWN
[thirdparty/hostap.git] / wpa_supplicant / ap.h
CommitLineData
1f1b62a0
JM
1/*
2 * WPA Supplicant - Basic AP mode support routines
3 * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
4 * Copyright (c) 2009, Atheros Communications
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Alternatively, this software may be distributed under the terms of BSD
11 * license.
12 *
13 * See README and COPYING for more details.
14 */
15
16#ifndef AP_H
17#define AP_H
18
2d5b792d
JM
19int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
20 struct wpa_ssid *ssid);
21void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
db149ac9
JM
22void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
23 const u8 *src_addr, const u8 *buf, size_t len);
d601247c
JM
24int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid,
25 const u8 *p2p_dev_addr);
3ec97afe
JM
26int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
27 const char *pin, char *buf, size_t buflen);
2f9929ff 28int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
70d84f11
JM
29void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s);
30const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout);
31const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s);
32int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
33 int timeout);
e653b622
JM
34int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
35 char *buf, size_t buflen);
36int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
37 char *buf, size_t buflen);
38int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
39 char *buf, size_t buflen);
43fb5297
JM
40int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
41 size_t buflen, int verbose);
f8b1f695
JM
42void ap_tx_status(void *ctx, const u8 *addr,
43 const u8 *buf, size_t len, int ack);
bcf24348 44void ap_client_poll_ok(void *ctx, const u8 *addr);
9b90955e 45void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds);
2a8b7416 46void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
f8b1f695 47void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
b22128ef 48int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
f90ceeaa
JM
49int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
50 const u8 *addr);
70d84f11 51void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s);
1f1b62a0
JM
52
53#endif /* AP_H */