2009-03-26 15:08:17 +01:00
|
|
|
/*
|
|
|
|
* WPA Supplicant - Basic AP mode support routines
|
|
|
|
* Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
|
|
|
|
* Copyright (c) 2009, Atheros Communications
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AP_H
|
|
|
|
#define AP_H
|
|
|
|
|
2009-03-26 19:37:05 +01:00
|
|
|
int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
|
|
|
|
struct wpa_ssid *ssid);
|
|
|
|
void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
|
2009-04-20 15:27:45 +02:00
|
|
|
void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *src_addr, const u8 *buf, size_t len);
|
2009-04-21 15:45:16 +02:00
|
|
|
int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid);
|
|
|
|
int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
|
|
|
|
const char *pin, char *buf, size_t buflen);
|
2010-09-06 19:51:06 +02:00
|
|
|
int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
|
2009-09-08 11:58:02 +02:00
|
|
|
int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
|
|
|
|
char *buf, size_t buflen);
|
|
|
|
int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
|
|
|
|
char *buf, size_t buflen);
|
|
|
|
int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
|
|
|
|
char *buf, size_t buflen);
|
2009-10-16 17:35:45 +02:00
|
|
|
int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
|
|
|
|
size_t buflen, int verbose);
|
2009-12-13 22:05:39 +01:00
|
|
|
void ap_tx_status(void *ctx, const u8 *addr,
|
|
|
|
const u8 *buf, size_t len, int ack);
|
2010-01-03 12:05:54 +01:00
|
|
|
void ap_rx_from_unknown_sta(void *ctx, const u8 *frame, size_t len);
|
2010-01-03 11:37:02 +01:00
|
|
|
void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
|
2009-12-13 22:05:39 +01:00
|
|
|
void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
|
2010-07-18 23:30:25 +02:00
|
|
|
int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
|
2010-04-11 19:08:00 +02:00
|
|
|
int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
|
|
|
|
const u8 *addr);
|
2009-03-26 15:08:17 +01:00
|
|
|
|
|
|
|
#endif /* AP_H */
|