Home | History | Annotate | Line # | Download | only in wpa_supplicant
ap.h revision 1.1.1.3.4.1.2.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.1.3  christos  * This software may be distributed under the terms of the BSD license.
      7          1.1.1.3  christos  * See README for more details.
      8              1.1  christos  */
      9              1.1  christos 
     10              1.1  christos #ifndef AP_H
     11              1.1  christos #define AP_H
     12              1.1  christos 
     13              1.1  christos int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
     14              1.1  christos 			     struct wpa_ssid *ssid);
     15              1.1  christos void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
     16              1.1  christos void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
     17              1.1  christos 				const u8 *src_addr, const u8 *buf, size_t len);
     18          1.1.1.2  christos int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid,
     19          1.1.1.2  christos 			      const u8 *p2p_dev_addr);
     20              1.1  christos int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
     21          1.1.1.3  christos 			      const char *pin, char *buf, size_t buflen,
     22          1.1.1.3  christos 			      int timeout);
     23          1.1.1.2  christos int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
     24          1.1.1.2  christos void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s);
     25          1.1.1.2  christos const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout);
     26          1.1.1.2  christos const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s);
     27          1.1.1.2  christos int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
     28          1.1.1.2  christos 			int timeout);
     29              1.1  christos int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
     30              1.1  christos 			    char *buf, size_t buflen);
     31              1.1  christos int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
     32              1.1  christos 		      char *buf, size_t buflen);
     33              1.1  christos int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
     34              1.1  christos 			   char *buf, size_t buflen);
     35          1.1.1.3  christos int ap_ctrl_iface_sta_deauthenticate(struct wpa_supplicant *wpa_s,
     36          1.1.1.3  christos 				     const char *txtaddr);
     37          1.1.1.3  christos int ap_ctrl_iface_sta_disassociate(struct wpa_supplicant *wpa_s,
     38          1.1.1.3  christos 				   const char *txtaddr);
     39              1.1  christos int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
     40              1.1  christos 				 size_t buflen, int verbose);
     41              1.1  christos void ap_tx_status(void *ctx, const u8 *addr,
     42              1.1  christos 		  const u8 *buf, size_t len, int ack);
     43          1.1.1.3  christos void ap_eapol_tx_status(void *ctx, const u8 *dst,
     44          1.1.1.3  christos 			const u8 *data, size_t len, int ack);
     45          1.1.1.2  christos void ap_client_poll_ok(void *ctx, const u8 *addr);
     46          1.1.1.2  christos void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds);
     47              1.1  christos void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
     48              1.1  christos void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
     49          1.1.1.2  christos int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
     50              1.1  christos int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
     51              1.1  christos 				      const u8 *addr);
     52          1.1.1.2  christos void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s);
     53      1.1.1.3.4.1       snj int ap_switch_channel(struct wpa_supplicant *wpa_s,
     54      1.1.1.3.4.1       snj 		      struct csa_settings *settings);
     55      1.1.1.3.4.1       snj int ap_ctrl_iface_chanswitch(struct wpa_supplicant *wpa_s, const char *txtaddr);
     56          1.1.1.3  christos void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
     57      1.1.1.3.4.1       snj 		       int offset, int width, int cf1, int cf2);
     58      1.1.1.3.4.1       snj struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
     59      1.1.1.3.4.1       snj 					     int ndef);
     60      1.1.1.3.4.1       snj #ifdef CONFIG_AP
     61      1.1.1.3.4.1       snj struct wpabuf * wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
     62      1.1.1.3.4.1       snj 					     int ndef);
     63      1.1.1.3.4.1       snj #else /* CONFIG_AP */
     64      1.1.1.3.4.1       snj static inline struct wpabuf *
     65      1.1.1.3.4.1       snj wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
     66      1.1.1.3.4.1       snj 			     int ndef)
     67      1.1.1.3.4.1       snj {
     68      1.1.1.3.4.1       snj 	return NULL;
     69      1.1.1.3.4.1       snj }
     70      1.1.1.3.4.1       snj #endif /* CONFIG_AP */
     71      1.1.1.3.4.1       snj 
     72      1.1.1.3.4.1       snj int wpas_ap_wps_nfc_report_handover(struct wpa_supplicant *wpa_s,
     73      1.1.1.3.4.1       snj 				    const struct wpabuf *req,
     74      1.1.1.3.4.1       snj 				    const struct wpabuf *sel);
     75      1.1.1.3.4.1       snj int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id,
     76      1.1.1.3.4.1       snj 			   const struct wpabuf *pw, const u8 *pubkey_hash);
     77      1.1.1.3.4.1       snj 
     78      1.1.1.3.4.1       snj struct hostapd_config;
     79  1.1.1.3.4.1.2.1       snj int wpa_supplicant_conf_ap_ht(struct wpa_supplicant *wpa_s,
     80  1.1.1.3.4.1.2.1       snj 			      struct wpa_ssid *ssid,
     81  1.1.1.3.4.1.2.1       snj 			      struct hostapd_config *conf);
     82      1.1.1.3.4.1       snj 
     83      1.1.1.3.4.1       snj int wpas_ap_stop_ap(struct wpa_supplicant *wpa_s);
     84      1.1.1.3.4.1       snj 
     85  1.1.1.3.4.1.2.1       snj int wpas_ap_pmksa_cache_list(struct wpa_supplicant *wpa_s, char *buf,
     86  1.1.1.3.4.1.2.1       snj 			     size_t len);
     87  1.1.1.3.4.1.2.1       snj void wpas_ap_pmksa_cache_flush(struct wpa_supplicant *wpa_s);
     88  1.1.1.3.4.1.2.1       snj 
     89      1.1.1.3.4.1       snj void wpas_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
     90      1.1.1.3.4.1       snj 				   struct dfs_event *radar);
     91      1.1.1.3.4.1       snj void wpas_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
     92      1.1.1.3.4.1       snj 				struct dfs_event *radar);
     93      1.1.1.3.4.1       snj void wpas_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
     94      1.1.1.3.4.1       snj 				 struct dfs_event *radar);
     95      1.1.1.3.4.1       snj void wpas_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
     96      1.1.1.3.4.1       snj 				struct dfs_event *radar);
     97      1.1.1.3.4.1       snj void wpas_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
     98      1.1.1.3.4.1       snj 				     struct dfs_event *radar);
     99              1.1  christos 
    100  1.1.1.3.4.1.2.1       snj void ap_periodic(struct wpa_supplicant *wpa_s);
    101  1.1.1.3.4.1.2.1       snj 
    102              1.1  christos #endif /* AP_H */
    103