Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Driver interaction with Linux nl80211/cfg80211 - definitions |
| 3 | * Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi> |
| 4 | * Copyright (c) 2003-2004, Instant802 Networks, Inc. |
| 5 | * Copyright (c) 2005-2006, Devicescape Software, Inc. |
| 6 | * Copyright (c) 2007, Johannes Berg <johannes@sipsolutions.net> |
| 7 | * Copyright (c) 2009-2010, Atheros Communications |
| 8 | * |
| 9 | * This software may be distributed under the terms of the BSD license. |
| 10 | * See README for more details. |
| 11 | */ |
| 12 | |
| 13 | #ifndef DRIVER_NL80211_H |
| 14 | #define DRIVER_NL80211_H |
| 15 | |
| 16 | #include "nl80211_copy.h" |
| 17 | #include "utils/list.h" |
| 18 | #include "driver.h" |
| 19 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 20 | #ifndef NL_CAPABILITY_VERSION_3_5_0 |
| 21 | #define nla_nest_start(msg, attrtype) \ |
| 22 | nla_nest_start(msg, NLA_F_NESTED | (attrtype)) |
| 23 | #endif |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 24 | |
| 25 | struct nl80211_global { |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 26 | void *ctx; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 27 | struct dl_list interfaces; |
| 28 | int if_add_ifindex; |
| 29 | u64 if_add_wdevid; |
| 30 | int if_add_wdevid_set; |
| 31 | struct netlink_data *netlink; |
| 32 | struct nl_cb *nl_cb; |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 33 | struct nl_sock *nl; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 34 | int nl80211_id; |
| 35 | int ioctl_sock; /* socket for ioctl() use */ |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 36 | struct nl_sock *nl_event; |
Mir Ali | 8a8f100 | 2020-10-06 22:41:40 +0530 | [diff] [blame] | 37 | u8 p2p_perm_addr[ETH_ALEN]; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 38 | }; |
| 39 | |
| 40 | struct nl80211_wiphy_data { |
| 41 | struct dl_list list; |
| 42 | struct dl_list bsss; |
| 43 | struct dl_list drvs; |
| 44 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 45 | struct nl_sock *nl_beacons; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 46 | struct nl_cb *nl_cb; |
| 47 | |
| 48 | int wiphy_idx; |
| 49 | }; |
| 50 | |
| 51 | struct i802_bss { |
| 52 | struct wpa_driver_nl80211_data *drv; |
| 53 | struct i802_bss *next; |
| 54 | int ifindex; |
| 55 | int br_ifindex; |
| 56 | u64 wdev_id; |
| 57 | char ifname[IFNAMSIZ + 1]; |
| 58 | char brname[IFNAMSIZ]; |
| 59 | unsigned int beacon_set:1; |
| 60 | unsigned int added_if_into_bridge:1; |
Hai Shalom | c9e41a1 | 2018-07-31 14:41:42 -0700 | [diff] [blame] | 61 | unsigned int already_in_bridge:1; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 62 | unsigned int added_bridge:1; |
| 63 | unsigned int in_deinit:1; |
| 64 | unsigned int wdev_id_set:1; |
| 65 | unsigned int added_if:1; |
| 66 | unsigned int static_ap:1; |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 67 | unsigned int use_nl_connect:1; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 68 | |
| 69 | u8 addr[ETH_ALEN]; |
| 70 | |
| 71 | int freq; |
| 72 | int bandwidth; |
| 73 | int if_dynamic; |
| 74 | |
| 75 | void *ctx; |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 76 | struct nl_sock *nl_preq, *nl_mgmt, *nl_connect; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 77 | struct nl_cb *nl_cb; |
| 78 | |
| 79 | struct nl80211_wiphy_data *wiphy_data; |
| 80 | struct dl_list wiphy_list; |
Dmitry Shmidt | ebd93af | 2017-02-21 13:40:44 -0800 | [diff] [blame] | 81 | u8 rand_addr[ETH_ALEN]; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 82 | }; |
| 83 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 84 | struct drv_nl80211_if_info { |
| 85 | int ifindex; |
| 86 | /* the AP/AP_VLAN iface that is in this bridge */ |
| 87 | int reason; |
| 88 | }; |
| 89 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 90 | struct wpa_driver_nl80211_data { |
| 91 | struct nl80211_global *global; |
| 92 | struct dl_list list; |
| 93 | struct dl_list wiphy_list; |
| 94 | char phyname[32]; |
Dmitry Shmidt | 7d56b75 | 2015-12-22 10:59:44 -0800 | [diff] [blame] | 95 | unsigned int wiphy_idx; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 96 | u8 perm_addr[ETH_ALEN]; |
| 97 | void *ctx; |
| 98 | int ifindex; |
| 99 | int if_removed; |
| 100 | int if_disabled; |
| 101 | int ignore_if_down_event; |
| 102 | struct rfkill_data *rfkill; |
| 103 | struct wpa_driver_capa capa; |
| 104 | u8 *extended_capa, *extended_capa_mask; |
| 105 | unsigned int extended_capa_len; |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 106 | struct drv_nl80211_ext_capa { |
| 107 | enum nl80211_iftype iftype; |
| 108 | u8 *ext_capa, *ext_capa_mask; |
| 109 | unsigned int ext_capa_len; |
| 110 | } iface_ext_capa[NL80211_IFTYPE_MAX]; |
| 111 | unsigned int num_iface_ext_capa; |
| 112 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 113 | int has_capability; |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 114 | int has_driver_key_mgmt; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 115 | |
| 116 | int operstate; |
| 117 | |
| 118 | int scan_complete_events; |
| 119 | enum scan_states { |
| 120 | NO_SCAN, SCAN_REQUESTED, SCAN_STARTED, SCAN_COMPLETED, |
| 121 | SCAN_ABORTED, SCHED_SCAN_STARTED, SCHED_SCAN_STOPPED, |
| 122 | SCHED_SCAN_RESULTS |
| 123 | } scan_state; |
| 124 | |
| 125 | u8 auth_bssid[ETH_ALEN]; |
| 126 | u8 auth_attempt_bssid[ETH_ALEN]; |
| 127 | u8 bssid[ETH_ALEN]; |
| 128 | u8 prev_bssid[ETH_ALEN]; |
| 129 | int associated; |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 130 | u8 ssid[SSID_MAX_LEN]; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 131 | size_t ssid_len; |
| 132 | enum nl80211_iftype nlmode; |
| 133 | enum nl80211_iftype ap_scan_as_station; |
| 134 | unsigned int assoc_freq; |
| 135 | |
| 136 | int monitor_sock; |
| 137 | int monitor_ifidx; |
| 138 | int monitor_refcount; |
| 139 | |
| 140 | unsigned int disabled_11b_rates:1; |
| 141 | unsigned int pending_remain_on_chan:1; |
| 142 | unsigned int in_interface_list:1; |
| 143 | unsigned int device_ap_sme:1; |
| 144 | unsigned int poll_command_supported:1; |
| 145 | unsigned int data_tx_status:1; |
| 146 | unsigned int scan_for_auth:1; |
| 147 | unsigned int retry_auth:1; |
| 148 | unsigned int use_monitor:1; |
| 149 | unsigned int ignore_next_local_disconnect:1; |
| 150 | unsigned int ignore_next_local_deauth:1; |
| 151 | unsigned int hostapd:1; |
| 152 | unsigned int start_mode_ap:1; |
| 153 | unsigned int start_iface_up:1; |
| 154 | unsigned int test_use_roc_tx:1; |
| 155 | unsigned int ignore_deauth_event:1; |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 156 | unsigned int vendor_cmd_test_avail:1; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 157 | unsigned int roaming_vendor_cmd_avail:1; |
| 158 | unsigned int dfs_vendor_cmd_avail:1; |
| 159 | unsigned int have_low_prio_scan:1; |
| 160 | unsigned int force_connect_cmd:1; |
| 161 | unsigned int addr_changed:1; |
| 162 | unsigned int get_features_vendor_cmd_avail:1; |
Dmitry Shmidt | ff787d5 | 2015-01-12 13:01:47 -0800 | [diff] [blame] | 163 | unsigned int set_rekey_offload:1; |
Dmitry Shmidt | 7f65602 | 2015-02-25 14:36:37 -0800 | [diff] [blame] | 164 | unsigned int p2p_go_ctwindow_supported:1; |
Ravi Joshi | e6ccb16 | 2015-07-16 17:45:41 -0700 | [diff] [blame] | 165 | unsigned int setband_vendor_cmd_avail:1; |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 166 | unsigned int get_pref_freq_list:1; |
| 167 | unsigned int set_prob_oper_freq:1; |
| 168 | unsigned int scan_vendor_cmd_avail:1; |
Dmitry Shmidt | e466304 | 2016-04-04 10:07:49 -0700 | [diff] [blame] | 169 | unsigned int connect_reassoc:1; |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 170 | unsigned int set_wifi_conf_vendor_cmd_avail:1; |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 171 | unsigned int fetch_bss_trans_status:1; |
| 172 | unsigned int roam_vendor_cmd_avail:1; |
Hai Shalom | c356592 | 2019-10-28 11:58:20 -0700 | [diff] [blame] | 173 | unsigned int add_sta_node_vendor_cmd_avail:1; |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 174 | unsigned int control_port_ap:1; |
Hai Shalom | e21d4e8 | 2020-04-29 16:34:06 -0700 | [diff] [blame] | 175 | unsigned int multicast_registrations:1; |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 176 | unsigned int no_rrm:1; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 177 | |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 178 | u64 vendor_scan_cookie; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 179 | u64 remain_on_chan_cookie; |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 180 | u64 send_frame_cookie; |
| 181 | #define MAX_SEND_FRAME_COOKIES 20 |
| 182 | u64 send_frame_cookies[MAX_SEND_FRAME_COOKIES]; |
| 183 | unsigned int num_send_frame_cookies; |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 184 | u64 eapol_tx_cookie; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 185 | |
| 186 | unsigned int last_mgmt_freq; |
| 187 | |
| 188 | struct wpa_driver_scan_filter *filter_ssids; |
| 189 | size_t num_filter_ssids; |
| 190 | |
| 191 | struct i802_bss *first_bss; |
| 192 | |
| 193 | int eapol_tx_sock; |
| 194 | |
| 195 | int eapol_sock; /* socket for EAPOL frames */ |
| 196 | |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 197 | struct nl_sock *rtnl_sk; /* nl_sock for NETLINK_ROUTE */ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 198 | |
Hai Shalom | 81f62d8 | 2019-07-22 12:10:00 -0700 | [diff] [blame] | 199 | struct drv_nl80211_if_info default_if_indices[16]; |
| 200 | struct drv_nl80211_if_info *if_indices; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 201 | int num_if_indices; |
| 202 | |
| 203 | /* From failed authentication command */ |
| 204 | int auth_freq; |
| 205 | u8 auth_bssid_[ETH_ALEN]; |
Dmitry Shmidt | 9d9e602 | 2015-04-23 10:34:55 -0700 | [diff] [blame] | 206 | u8 auth_ssid[SSID_MAX_LEN]; |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 207 | size_t auth_ssid_len; |
| 208 | int auth_alg; |
| 209 | u8 *auth_ie; |
| 210 | size_t auth_ie_len; |
| 211 | u8 auth_wep_key[4][16]; |
| 212 | size_t auth_wep_key_len[4]; |
| 213 | int auth_wep_tx_keyidx; |
| 214 | int auth_local_state_change; |
| 215 | int auth_p2p; |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 216 | |
| 217 | /* |
| 218 | * Tells whether the last scan issued from wpa_supplicant was a normal |
| 219 | * scan (NL80211_CMD_TRIGGER_SCAN) or a vendor scan |
| 220 | * (NL80211_CMD_VENDOR). 0 if no pending scan request. |
| 221 | */ |
| 222 | int last_scan_cmd; |
Mir Ali | 677e748 | 2020-11-12 19:49:02 +0530 | [diff] [blame^] | 223 | #ifdef CONFIG_DRIVER_NL80211_BRCM |
| 224 | unsigned int vendor_set_pmk:1; /* for legacy set_pmk method before NL80211_CMD_SET_PMK */ |
| 225 | #endif /* CONFIG_DRIVER_NL80211_BRCM */ |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 226 | }; |
| 227 | |
| 228 | struct nl_msg; |
| 229 | |
| 230 | void * nl80211_cmd(struct wpa_driver_nl80211_data *drv, |
| 231 | struct nl_msg *msg, int flags, uint8_t cmd); |
| 232 | struct nl_msg * nl80211_cmd_msg(struct i802_bss *bss, int flags, uint8_t cmd); |
| 233 | struct nl_msg * nl80211_drv_msg(struct wpa_driver_nl80211_data *drv, int flags, |
| 234 | uint8_t cmd); |
| 235 | struct nl_msg * nl80211_bss_msg(struct i802_bss *bss, int flags, uint8_t cmd); |
| 236 | int send_and_recv_msgs(struct wpa_driver_nl80211_data *drv, struct nl_msg *msg, |
| 237 | int (*valid_handler)(struct nl_msg *, void *), |
Hai Shalom | 899fcc7 | 2020-10-19 14:38:18 -0700 | [diff] [blame] | 238 | void *valid_data, |
| 239 | int (*ack_handler_custom)(struct nl_msg *, void *), |
| 240 | void *ack_data); |
Hai Shalom | b755a2a | 2020-04-23 21:49:02 -0700 | [diff] [blame] | 241 | struct nl_sock * get_connect_handle(struct i802_bss *bss); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 242 | int nl80211_create_iface(struct wpa_driver_nl80211_data *drv, |
| 243 | const char *ifname, enum nl80211_iftype iftype, |
| 244 | const u8 *addr, int wds, |
| 245 | int (*handler)(struct nl_msg *, void *), |
| 246 | void *arg, int use_existing); |
| 247 | void nl80211_remove_iface(struct wpa_driver_nl80211_data *drv, int ifidx); |
| 248 | unsigned int nl80211_get_assoc_freq(struct wpa_driver_nl80211_data *drv); |
Dmitry Shmidt | abb90a3 | 2016-12-05 15:34:39 -0800 | [diff] [blame] | 249 | int nl80211_get_assoc_ssid(struct wpa_driver_nl80211_data *drv, u8 *ssid); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 250 | enum chan_width convert2width(int width); |
| 251 | void nl80211_mark_disconnected(struct wpa_driver_nl80211_data *drv); |
| 252 | struct i802_bss * get_bss_ifindex(struct wpa_driver_nl80211_data *drv, |
| 253 | int ifindex); |
| 254 | int is_ap_interface(enum nl80211_iftype nlmode); |
| 255 | int is_sta_interface(enum nl80211_iftype nlmode); |
| 256 | int wpa_driver_nl80211_authenticate_retry(struct wpa_driver_nl80211_data *drv); |
| 257 | int nl80211_get_link_signal(struct wpa_driver_nl80211_data *drv, |
| 258 | struct wpa_signal_info *sig); |
| 259 | int nl80211_get_link_noise(struct wpa_driver_nl80211_data *drv, |
| 260 | struct wpa_signal_info *sig_change); |
| 261 | int nl80211_get_wiphy_index(struct i802_bss *bss); |
| 262 | int wpa_driver_nl80211_set_mode(struct i802_bss *bss, |
| 263 | enum nl80211_iftype nlmode); |
| 264 | int wpa_driver_nl80211_mlme(struct wpa_driver_nl80211_data *drv, |
| 265 | const u8 *addr, int cmd, u16 reason_code, |
Hai Shalom | 74f70d4 | 2019-02-11 14:42:39 -0800 | [diff] [blame] | 266 | int local_state_change, |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 267 | struct nl_sock *nl_connect); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 268 | |
| 269 | int nl80211_create_monitor_interface(struct wpa_driver_nl80211_data *drv); |
| 270 | void nl80211_remove_monitor_interface(struct wpa_driver_nl80211_data *drv); |
| 271 | int nl80211_send_monitor(struct wpa_driver_nl80211_data *drv, |
| 272 | const void *data, size_t len, |
| 273 | int encrypt, int noack); |
| 274 | |
| 275 | int wpa_driver_nl80211_capa(struct wpa_driver_nl80211_data *drv); |
| 276 | struct hostapd_hw_modes * |
Dmitry Shmidt | d2986c2 | 2017-10-23 14:22:09 -0700 | [diff] [blame] | 277 | nl80211_get_hw_feature_data(void *priv, u16 *num_modes, u16 *flags, |
| 278 | u8 *dfs_domain); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 279 | |
| 280 | int process_global_event(struct nl_msg *msg, void *arg); |
| 281 | int process_bss_event(struct nl_msg *msg, void *arg); |
| 282 | |
Dmitry Shmidt | d5ab1b5 | 2016-06-21 12:38:41 -0700 | [diff] [blame] | 283 | const char * nl80211_iftype_str(enum nl80211_iftype mode); |
| 284 | |
Hai Shalom | 4fbc08f | 2020-05-18 12:37:00 -0700 | [diff] [blame] | 285 | void nl80211_restore_ap_mode(struct i802_bss *bss); |
| 286 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 287 | #ifdef ANDROID |
Hai Shalom | fdcde76 | 2020-04-02 11:19:20 -0700 | [diff] [blame] | 288 | int android_nl_socket_set_nonblocking(struct nl_sock *handle); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 289 | int android_pno_start(struct i802_bss *bss, |
| 290 | struct wpa_driver_scan_params *params); |
| 291 | int android_pno_stop(struct i802_bss *bss); |
| 292 | extern int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, |
| 293 | size_t buf_len); |
| 294 | |
| 295 | #ifdef ANDROID_P2P |
| 296 | int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration); |
| 297 | int wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len); |
| 298 | int wpa_driver_set_p2p_ps(void *priv, int legacy_ps, int opp_ps, int ctwindow); |
| 299 | int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon, |
| 300 | const struct wpabuf *proberesp, |
| 301 | const struct wpabuf *assocresp); |
| 302 | #endif /* ANDROID_P2P */ |
| 303 | #endif /* ANDROID */ |
| 304 | |
| 305 | |
| 306 | /* driver_nl80211_scan.c */ |
| 307 | |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 308 | void wpa_driver_nl80211_scan_timeout(void *eloop_ctx, void *timeout_ctx); |
| 309 | int wpa_driver_nl80211_scan(struct i802_bss *bss, |
| 310 | struct wpa_driver_scan_params *params); |
| 311 | int wpa_driver_nl80211_sched_scan(void *priv, |
Dmitry Shmidt | d7ff03d | 2015-12-04 14:49:35 -0800 | [diff] [blame] | 312 | struct wpa_driver_scan_params *params); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 313 | int wpa_driver_nl80211_stop_sched_scan(void *priv); |
| 314 | struct wpa_scan_results * wpa_driver_nl80211_get_scan_results(void *priv); |
| 315 | void nl80211_dump_scan(struct wpa_driver_nl80211_data *drv); |
Dmitry Shmidt | abb90a3 | 2016-12-05 15:34:39 -0800 | [diff] [blame] | 316 | int wpa_driver_nl80211_abort_scan(void *priv, u64 scan_cookie); |
Dmitry Shmidt | d80a401 | 2015-11-05 16:35:40 -0800 | [diff] [blame] | 317 | int wpa_driver_nl80211_vendor_scan(struct i802_bss *bss, |
| 318 | struct wpa_driver_scan_params *params); |
Dmitry Shmidt | 7f2c753 | 2016-08-15 09:48:12 -0700 | [diff] [blame] | 319 | int nl80211_set_default_scan_ies(void *priv, const u8 *ies, size_t ies_len); |
Dmitry Shmidt | 6c0da2b | 2015-01-05 13:08:17 -0800 | [diff] [blame] | 320 | |
| 321 | #endif /* DRIVER_NL80211_H */ |