wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ap.h
Go to the documentation of this file.
1 
6 #ifndef AP_H
7 #define AP_H
8 
9 int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s,
10  struct wpa_ssid *ssid);
11 void wpa_supplicant_ap_deinit(struct wpa_supplicant *wpa_s);
12 void wpa_supplicant_ap_rx_eapol(struct wpa_supplicant *wpa_s,
13  const u8 *src_addr, const u8 *buf, size_t len);
14 int wpa_supplicant_ap_wps_pbc(struct wpa_supplicant *wpa_s, const u8 *bssid,
15  const u8 *p2p_dev_addr);
16 int wpa_supplicant_ap_wps_pin(struct wpa_supplicant *wpa_s, const u8 *bssid,
17  const char *pin, char *buf, size_t buflen,
18  int timeout);
19 int wpa_supplicant_ap_wps_cancel(struct wpa_supplicant *wpa_s);
20 void wpas_wps_ap_pin_disable(struct wpa_supplicant *wpa_s);
21 const char * wpas_wps_ap_pin_random(struct wpa_supplicant *wpa_s, int timeout);
22 const char * wpas_wps_ap_pin_get(struct wpa_supplicant *wpa_s);
23 int wpas_wps_ap_pin_set(struct wpa_supplicant *wpa_s, const char *pin,
24  int timeout);
25 int ap_ctrl_iface_sta_first(struct wpa_supplicant *wpa_s,
26  char *buf, size_t buflen);
27 int ap_ctrl_iface_sta(struct wpa_supplicant *wpa_s, const char *txtaddr,
28  char *buf, size_t buflen);
29 int ap_ctrl_iface_sta_next(struct wpa_supplicant *wpa_s, const char *txtaddr,
30  char *buf, size_t buflen);
31 int ap_ctrl_iface_sta_deauthenticate(struct wpa_supplicant *wpa_s,
32  const char *txtaddr);
33 int ap_ctrl_iface_sta_disassociate(struct wpa_supplicant *wpa_s,
34  const char *txtaddr);
35 int ap_ctrl_iface_wpa_get_status(struct wpa_supplicant *wpa_s, char *buf,
36  size_t buflen, int verbose);
37 void ap_tx_status(void *ctx, const u8 *addr,
38  const u8 *buf, size_t len, int ack);
39 void ap_eapol_tx_status(void *ctx, const u8 *dst,
40  const u8 *data, size_t len, int ack);
41 void ap_client_poll_ok(void *ctx, const u8 *addr);
42 void ap_rx_from_unknown_sta(void *ctx, const u8 *addr, int wds);
43 void ap_mgmt_rx(void *ctx, struct rx_mgmt *rx_mgmt);
44 void ap_mgmt_tx_cb(void *ctx, const u8 *buf, size_t len, u16 stype, int ok);
45 int wpa_supplicant_ap_update_beacon(struct wpa_supplicant *wpa_s);
46 int wpa_supplicant_ap_mac_addr_filter(struct wpa_supplicant *wpa_s,
47  const u8 *addr);
48 void wpa_supplicant_ap_pwd_auth_fail(struct wpa_supplicant *wpa_s);
49 int ap_switch_channel(struct wpa_supplicant *wpa_s,
50  struct csa_settings *settings);
51 int ap_ctrl_iface_chanswitch(struct wpa_supplicant *wpa_s, const char *txtaddr);
52 void wpas_ap_ch_switch(struct wpa_supplicant *wpa_s, int freq, int ht,
53  int offset, int width, int cf1, int cf2);
54 struct wpabuf * wpas_ap_wps_nfc_config_token(struct wpa_supplicant *wpa_s,
55  int ndef);
56 #ifdef CONFIG_AP
57 struct wpabuf * wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
58  int ndef);
59 #else /* CONFIG_AP */
60 static inline struct wpabuf *
61 wpas_ap_wps_nfc_handover_sel(struct wpa_supplicant *wpa_s,
62  int ndef)
63 {
64  return NULL;
65 }
66 #endif /* CONFIG_AP */
67 
68 int wpas_ap_wps_nfc_report_handover(struct wpa_supplicant *wpa_s,
69  const struct wpabuf *req,
70  const struct wpabuf *sel);
71 int wpas_ap_wps_add_nfc_pw(struct wpa_supplicant *wpa_s, u16 pw_id,
72  const struct wpabuf *pw, const u8 *pubkey_hash);
73 
74 struct hostapd_config;
75 void wpa_supplicant_conf_ap_ht(struct wpa_supplicant *wpa_s,
76  struct wpa_ssid *ssid,
77  struct hostapd_config *conf);
78 
79 int wpas_ap_stop_ap(struct wpa_supplicant *wpa_s);
80 
81 void wpas_event_dfs_radar_detected(struct wpa_supplicant *wpa_s,
82  struct dfs_event *radar);
83 void wpas_event_dfs_cac_started(struct wpa_supplicant *wpa_s,
84  struct dfs_event *radar);
85 void wpas_event_dfs_cac_finished(struct wpa_supplicant *wpa_s,
86  struct dfs_event *radar);
87 void wpas_event_dfs_cac_aborted(struct wpa_supplicant *wpa_s,
88  struct dfs_event *radar);
89 void wpas_event_dfs_cac_nop_finished(struct wpa_supplicant *wpa_s,
90  struct dfs_event *radar);
91 
92 void ap_periodic(struct wpa_supplicant *wpa_s);
93 
94 #endif /* AP_H */
Settings for channel switch command.
Definition: driver.h:1661
Definition: wpabuf.h:16
Internal data for wpa_supplicant interface.
Definition: wpa_supplicant_i.h:451
Network configuration data.
Definition: config_ssid.h:52
Per-radio interface configuration.
Definition: ap_config.h:565