Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 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 | * |
Dmitry Shmidt | c5ec7f5 | 2012-03-06 16:33:24 -0800 | [diff] [blame^] | 6 | * This software may be distributed under the terms of the BSD license. |
| 7 | * See README for more details. |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #ifndef AP_H |
| 11 | #define AP_H |
| 12 | |
| 13 | int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s, |
| 14 | struct wpa_ssid *ssid); |
| 15 | void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s); |
| 16 | void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s, |
| 17 | const u8 *src_addr, const u8 *buf, size_t len); |
| 18 | int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid, |
| 19 | const u8 *p2p_dev_addr); |
| 20 | int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, |
| 21 | const char *pin, char *buf, size_t buflen); |
| 22 | int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s); |
| 23 | void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s); |
| 24 | const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout); |
| 25 | const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s); |
| 26 | int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin, |
| 27 | int timeout); |
| 28 | int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s, |
| 29 | char *buf, size_t buflen); |
| 30 | int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr, |
| 31 | char *buf, size_t buflen); |
| 32 | int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr, |
| 33 | char *buf, size_t buflen); |
| 34 | int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf, |
| 35 | size_t buflen, int verbose); |
| 36 | void ap_tx_status(void *ctx, const u8 *addr, |
| 37 | const u8 *buf, size_t len, int ack); |
Dmitry Shmidt | 1f69aa5 | 2012-01-24 16:10:04 -0800 | [diff] [blame] | 38 | void ap_eapol_tx_status(void *ctx, const u8 *dst, |
| 39 | const u8 *data, size_t len, int ack); |
| 40 | void ap_client_poll_ok(void *ctx, const u8 *addr); |
| 41 | void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds); |
Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 42 | void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt); |
| 43 | void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok); |
| 44 | int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s); |
| 45 | int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s, |
| 46 | const u8 *addr); |
| 47 | void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s); |
| 48 | |
| 49 | #endif /* AP_H */ |