$search
00001 /* 00002 * WPA Supplicant - Basic AP mode support routines 00003 * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> 00004 * Copyright (c) 2009, Atheros Communications 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License version 2 as 00008 * published by the Free Software Foundation. 00009 * 00010 * Alternatively, this software may be distributed under the terms of BSD 00011 * license. 00012 * 00013 * See README and COPYING for more details. 00014 */ 00015 00016 #ifndef AP_H 00017 #define AP_H 00018 00019 int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s, 00020 struct wpa_ssid *ssid); 00021 void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s); 00022 void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s, 00023 const u8 *src_addr, const u8 *buf, size_t len); 00024 int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid); 00025 int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid, 00026 const char *pin, char *buf, size_t buflen); 00027 int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s, 00028 char *buf, size_t buflen); 00029 int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr, 00030 char *buf, size_t buflen); 00031 int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr, 00032 char *buf, size_t buflen); 00033 int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf, 00034 size_t buflen, int verbose); 00035 void ap_tx_status(void *ctx, const u8 *addr, 00036 const u8 *buf, size_t len, int ack); 00037 void ap_rx_from_unknown_sta(void *ctx, const u8 *frame, size_t len); 00038 void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt); 00039 void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok); 00040 int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s, 00041 const u8 *addr); 00042 00043 #endif /* AP_H */