Home | History | Annotate | Line # | Download | only in wpa_supplicant
ap.h revision 1.1.1.1.12.1
      1           1.1  christos /*
      2           1.1  christos  * WPA Supplicant - Basic AP mode support routines
      3           1.1  christos  * Copyright (c) 2003-2009, Jouni Malinen <j (at) w1.fi>
      4           1.1  christos  * Copyright (c) 2009, Atheros Communications
      5           1.1  christos  *
      6           1.1  christos  * This program is free software; you can redistribute it and/or modify
      7           1.1  christos  * it under the terms of the GNU General Public License version 2 as
      8           1.1  christos  * published by the Free Software Foundation.
      9           1.1  christos  *
     10           1.1  christos  * Alternatively, this software may be distributed under the terms of BSD
     11           1.1  christos  * license.
     12           1.1  christos  *
     13           1.1  christos  * See README and COPYING for more details.
     14           1.1  christos  */
     15           1.1  christos 
     16           1.1  christos #ifndef AP_H
     17           1.1  christos #define AP_H
     18           1.1  christos 
     19           1.1  christos int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
     20           1.1  christos 			     struct wpa_ssid *ssid);
     21           1.1  christos void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
     22           1.1  christos void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
     23           1.1  christos 				const u8 *src_addr, const u8 *buf, size_t len);
     24  1.1.1.1.12.1       tls int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid,
     25  1.1.1.1.12.1       tls 			      const u8 *p2p_dev_addr);
     26           1.1  christos int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
     27           1.1  christos 			      const char *pin, char *buf, size_t buflen);
     28  1.1.1.1.12.1       tls int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
     29  1.1.1.1.12.1       tls void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s);
     30  1.1.1.1.12.1       tls const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout);
     31  1.1.1.1.12.1       tls const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s);
     32  1.1.1.1.12.1       tls int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
     33  1.1.1.1.12.1       tls 			int timeout);
     34           1.1  christos int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
     35           1.1  christos 			    char *buf, size_t buflen);
     36           1.1  christos int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
     37           1.1  christos 		      char *buf, size_t buflen);
     38           1.1  christos int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
     39           1.1  christos 			   char *buf, size_t buflen);
     40           1.1  christos int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
     41           1.1  christos 				 size_t buflen, int verbose);
     42           1.1  christos void ap_tx_status(void *ctx, const u8 *addr,
     43           1.1  christos 		  const u8 *buf, size_t len, int ack);
     44  1.1.1.1.12.1       tls void ap_client_poll_ok(void *ctx, const u8 *addr);
     45  1.1.1.1.12.1       tls void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds);
     46           1.1  christos void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
     47           1.1  christos void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
     48  1.1.1.1.12.1       tls int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
     49           1.1  christos int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
     50           1.1  christos 				      const u8 *addr);
     51  1.1.1.1.12.1       tls void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s);
     52           1.1  christos 
     53           1.1  christos #endif /* AP_H */
     54