wpa_supplicant_i.h 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  1. /*
  2. * wpa_supplicant - Internal definitions
  3. * Copyright (c) 2003-2014, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef WPA_SUPPLICANT_I_H
  9. #define WPA_SUPPLICANT_I_H
  10. #include "utils/list.h"
  11. #include "common/defs.h"
  12. #include "common/sae.h"
  13. #include "common/wpa_ctrl.h"
  14. #include "wps/wps_defs.h"
  15. #include "config_ssid.h"
  16. #include "wmm_ac.h"
  17. extern const char *const wpa_supplicant_version;
  18. extern const char *const wpa_supplicant_license;
  19. #ifndef CONFIG_NO_STDOUT_DEBUG
  20. extern const char *const wpa_supplicant_full_license1;
  21. extern const char *const wpa_supplicant_full_license2;
  22. extern const char *const wpa_supplicant_full_license3;
  23. extern const char *const wpa_supplicant_full_license4;
  24. extern const char *const wpa_supplicant_full_license5;
  25. #endif /* CONFIG_NO_STDOUT_DEBUG */
  26. struct wpa_sm;
  27. struct wpa_supplicant;
  28. struct ibss_rsn;
  29. struct scan_info;
  30. struct wpa_bss;
  31. struct wpa_scan_results;
  32. struct hostapd_hw_modes;
  33. struct wpa_driver_associate_params;
  34. /*
  35. * Forward declarations of private structures used within the ctrl_iface
  36. * backends. Other parts of wpa_supplicant do not have access to data stored in
  37. * these structures.
  38. */
  39. struct ctrl_iface_priv;
  40. struct ctrl_iface_global_priv;
  41. struct wpas_dbus_priv;
  42. /**
  43. * struct wpa_interface - Parameters for wpa_supplicant_add_iface()
  44. */
  45. struct wpa_interface {
  46. /**
  47. * confname - Configuration name (file or profile) name
  48. *
  49. * This can also be %NULL when a configuration file is not used. In
  50. * that case, ctrl_interface must be set to allow the interface to be
  51. * configured.
  52. */
  53. const char *confname;
  54. /**
  55. * confanother - Additional configuration name (file or profile) name
  56. *
  57. * This can also be %NULL when the additional configuration file is not
  58. * used.
  59. */
  60. const char *confanother;
  61. /**
  62. * ctrl_interface - Control interface parameter
  63. *
  64. * If a configuration file is not used, this variable can be used to
  65. * set the ctrl_interface parameter that would have otherwise been read
  66. * from the configuration file. If both confname and ctrl_interface are
  67. * set, ctrl_interface is used to override the value from configuration
  68. * file.
  69. */
  70. const char *ctrl_interface;
  71. /**
  72. * driver - Driver interface name, or %NULL to use the default driver
  73. */
  74. const char *driver;
  75. /**
  76. * driver_param - Driver interface parameters
  77. *
  78. * If a configuration file is not used, this variable can be used to
  79. * set the driver_param parameters that would have otherwise been read
  80. * from the configuration file. If both confname and driver_param are
  81. * set, driver_param is used to override the value from configuration
  82. * file.
  83. */
  84. const char *driver_param;
  85. /**
  86. * ifname - Interface name
  87. */
  88. const char *ifname;
  89. /**
  90. * bridge_ifname - Optional bridge interface name
  91. *
  92. * If the driver interface (ifname) is included in a Linux bridge
  93. * device, the bridge interface may need to be used for receiving EAPOL
  94. * frames. This can be enabled by setting this variable to enable
  95. * receiving of EAPOL frames from an additional interface.
  96. */
  97. const char *bridge_ifname;
  98. /**
  99. * p2p_mgmt - Interface used for P2P management (P2P Device operations)
  100. *
  101. * Indicates whether wpas_p2p_init() must be called for this interface.
  102. * This is used only when the driver supports a dedicated P2P Device
  103. * interface that is not a network interface.
  104. */
  105. int p2p_mgmt;
  106. };
  107. /**
  108. * struct wpa_params - Parameters for wpa_supplicant_init()
  109. */
  110. struct wpa_params {
  111. /**
  112. * daemonize - Run %wpa_supplicant in the background
  113. */
  114. int daemonize;
  115. /**
  116. * wait_for_monitor - Wait for a monitor program before starting
  117. */
  118. int wait_for_monitor;
  119. /**
  120. * pid_file - Path to a PID (process ID) file
  121. *
  122. * If this and daemonize are set, process ID of the background process
  123. * will be written to the specified file.
  124. */
  125. char *pid_file;
  126. /**
  127. * wpa_debug_level - Debugging verbosity level (e.g., MSG_INFO)
  128. */
  129. int wpa_debug_level;
  130. /**
  131. * wpa_debug_show_keys - Whether keying material is included in debug
  132. *
  133. * This parameter can be used to allow keying material to be included
  134. * in debug messages. This is a security risk and this option should
  135. * not be enabled in normal configuration. If needed during
  136. * development or while troubleshooting, this option can provide more
  137. * details for figuring out what is happening.
  138. */
  139. int wpa_debug_show_keys;
  140. /**
  141. * wpa_debug_timestamp - Whether to include timestamp in debug messages
  142. */
  143. int wpa_debug_timestamp;
  144. /**
  145. * ctrl_interface - Global ctrl_iface path/parameter
  146. */
  147. char *ctrl_interface;
  148. /**
  149. * ctrl_interface_group - Global ctrl_iface group
  150. */
  151. char *ctrl_interface_group;
  152. /**
  153. * dbus_ctrl_interface - Enable the DBus control interface
  154. */
  155. int dbus_ctrl_interface;
  156. /**
  157. * wpa_debug_file_path - Path of debug file or %NULL to use stdout
  158. */
  159. const char *wpa_debug_file_path;
  160. /**
  161. * wpa_debug_syslog - Enable log output through syslog
  162. */
  163. int wpa_debug_syslog;
  164. /**
  165. * wpa_debug_tracing - Enable log output through Linux tracing
  166. */
  167. int wpa_debug_tracing;
  168. /**
  169. * override_driver - Optional driver parameter override
  170. *
  171. * This parameter can be used to override the driver parameter in
  172. * dynamic interface addition to force a specific driver wrapper to be
  173. * used instead.
  174. */
  175. char *override_driver;
  176. /**
  177. * override_ctrl_interface - Optional ctrl_interface override
  178. *
  179. * This parameter can be used to override the ctrl_interface parameter
  180. * in dynamic interface addition to force a control interface to be
  181. * created.
  182. */
  183. char *override_ctrl_interface;
  184. /**
  185. * entropy_file - Optional entropy file
  186. *
  187. * This parameter can be used to configure wpa_supplicant to maintain
  188. * its internal entropy store over restarts.
  189. */
  190. char *entropy_file;
  191. #ifdef CONFIG_P2P
  192. /**
  193. * conf_p2p_dev - Configuration file used to hold the
  194. * P2P Device configuration parameters.
  195. *
  196. * This can also be %NULL. In such a case, if a P2P Device dedicated
  197. * interfaces is created, the main configuration file will be used.
  198. */
  199. char *conf_p2p_dev;
  200. #endif /* CONFIG_P2P */
  201. };
  202. struct p2p_srv_bonjour {
  203. struct dl_list list;
  204. struct wpabuf *query;
  205. struct wpabuf *resp;
  206. };
  207. struct p2p_srv_upnp {
  208. struct dl_list list;
  209. u8 version;
  210. char *service;
  211. };
  212. /**
  213. * struct wpa_global - Internal, global data for all %wpa_supplicant interfaces
  214. *
  215. * This structure is initialized by calling wpa_supplicant_init() when starting
  216. * %wpa_supplicant.
  217. */
  218. struct wpa_global {
  219. struct wpa_supplicant *ifaces;
  220. struct wpa_params params;
  221. struct ctrl_iface_global_priv *ctrl_iface;
  222. struct wpas_dbus_priv *dbus;
  223. void **drv_priv;
  224. size_t drv_count;
  225. struct os_time suspend_time;
  226. struct p2p_data *p2p;
  227. struct wpa_supplicant *p2p_init_wpa_s;
  228. struct wpa_supplicant *p2p_group_formation;
  229. struct wpa_supplicant *p2p_invite_group;
  230. u8 p2p_dev_addr[ETH_ALEN];
  231. struct os_reltime p2p_go_wait_client;
  232. struct dl_list p2p_srv_bonjour; /* struct p2p_srv_bonjour */
  233. struct dl_list p2p_srv_upnp; /* struct p2p_srv_upnp */
  234. int p2p_disabled;
  235. int cross_connection;
  236. struct wpa_freq_range_list p2p_disallow_freq;
  237. struct wpa_freq_range_list p2p_go_avoid_freq;
  238. enum wpa_conc_pref {
  239. WPA_CONC_PREF_NOT_SET,
  240. WPA_CONC_PREF_STA,
  241. WPA_CONC_PREF_P2P
  242. } conc_pref;
  243. unsigned int p2p_per_sta_psk:1;
  244. unsigned int p2p_fail_on_wps_complete:1;
  245. unsigned int p2p_24ghz_social_channels:1;
  246. unsigned int pending_p2ps_group:1;
  247. unsigned int pending_group_iface_for_p2ps:1;
  248. #ifdef CONFIG_WIFI_DISPLAY
  249. int wifi_display;
  250. #define MAX_WFD_SUBELEMS 10
  251. struct wpabuf *wfd_subelem[MAX_WFD_SUBELEMS];
  252. #endif /* CONFIG_WIFI_DISPLAY */
  253. struct psk_list_entry *add_psk; /* From group formation */
  254. };
  255. /**
  256. * struct wpa_radio - Internal data for per-radio information
  257. *
  258. * This structure is used to share data about configured interfaces
  259. * (struct wpa_supplicant) that share the same physical radio, e.g., to allow
  260. * better coordination of offchannel operations.
  261. */
  262. struct wpa_radio {
  263. char name[16]; /* from driver_ops get_radio_name() or empty if not
  264. * available */
  265. unsigned int external_scan_running:1;
  266. struct dl_list ifaces; /* struct wpa_supplicant::radio_list entries */
  267. struct dl_list work; /* struct wpa_radio_work::list entries */
  268. };
  269. /**
  270. * struct wpa_radio_work - Radio work item
  271. */
  272. struct wpa_radio_work {
  273. struct dl_list list;
  274. unsigned int freq; /* known frequency (MHz) or 0 for multiple/unknown */
  275. const char *type;
  276. struct wpa_supplicant *wpa_s;
  277. void (*cb)(struct wpa_radio_work *work, int deinit);
  278. void *ctx;
  279. unsigned int started:1;
  280. struct os_reltime time;
  281. };
  282. int radio_add_work(struct wpa_supplicant *wpa_s, unsigned int freq,
  283. const char *type, int next,
  284. void (*cb)(struct wpa_radio_work *work, int deinit),
  285. void *ctx);
  286. void radio_work_done(struct wpa_radio_work *work);
  287. void radio_remove_works(struct wpa_supplicant *wpa_s,
  288. const char *type, int remove_all);
  289. void radio_work_check_next(struct wpa_supplicant *wpa_s);
  290. struct wpa_radio_work *
  291. radio_work_pending(struct wpa_supplicant *wpa_s, const char *type);
  292. struct wpa_connect_work {
  293. unsigned int sme:1;
  294. unsigned int bss_removed:1;
  295. struct wpa_bss *bss;
  296. struct wpa_ssid *ssid;
  297. };
  298. int wpas_valid_bss_ssid(struct wpa_supplicant *wpa_s, struct wpa_bss *test_bss,
  299. struct wpa_ssid *test_ssid);
  300. void wpas_connect_work_free(struct wpa_connect_work *cwork);
  301. void wpas_connect_work_done(struct wpa_supplicant *wpa_s);
  302. struct wpa_external_work {
  303. unsigned int id;
  304. char type[100];
  305. unsigned int timeout;
  306. };
  307. /**
  308. * offchannel_send_action_result - Result of offchannel send Action frame
  309. */
  310. enum offchannel_send_action_result {
  311. OFFCHANNEL_SEND_ACTION_SUCCESS /**< Frame was send and acknowledged */,
  312. OFFCHANNEL_SEND_ACTION_NO_ACK /**< Frame was sent, but not acknowledged
  313. */,
  314. OFFCHANNEL_SEND_ACTION_FAILED /**< Frame was not sent due to a failure
  315. */
  316. };
  317. struct wps_ap_info {
  318. u8 bssid[ETH_ALEN];
  319. enum wps_ap_info_type {
  320. WPS_AP_NOT_SEL_REG,
  321. WPS_AP_SEL_REG,
  322. WPS_AP_SEL_REG_OUR
  323. } type;
  324. unsigned int tries;
  325. struct os_reltime last_attempt;
  326. unsigned int pbc_active;
  327. u8 uuid[WPS_UUID_LEN];
  328. };
  329. struct wpa_ssid_value {
  330. u8 ssid[SSID_MAX_LEN];
  331. size_t ssid_len;
  332. };
  333. #define WPA_FREQ_USED_BY_INFRA_STATION BIT(0)
  334. #define WPA_FREQ_USED_BY_P2P_CLIENT BIT(1)
  335. struct wpa_used_freq_data {
  336. int freq;
  337. unsigned int flags;
  338. };
  339. #define RRM_NEIGHBOR_REPORT_TIMEOUT 1 /* 1 second for AP to send a report */
  340. /*
  341. * struct rrm_data - Data used for managing RRM features
  342. */
  343. struct rrm_data {
  344. /* rrm_used - indication regarding the current connection */
  345. unsigned int rrm_used:1;
  346. /*
  347. * notify_neighbor_rep - Callback for notifying report requester
  348. */
  349. void (*notify_neighbor_rep)(void *ctx, struct wpabuf *neighbor_rep);
  350. /*
  351. * neighbor_rep_cb_ctx - Callback context
  352. * Received in the callback registration, and sent to the callback
  353. * function as a parameter.
  354. */
  355. void *neighbor_rep_cb_ctx;
  356. /* next_neighbor_rep_token - Next request's dialog token */
  357. u8 next_neighbor_rep_token;
  358. };
  359. enum wpa_supplicant_test_failure {
  360. WPAS_TEST_FAILURE_NONE,
  361. WPAS_TEST_FAILURE_SCAN_TRIGGER,
  362. };
  363. /**
  364. * struct wpa_supplicant - Internal data for wpa_supplicant interface
  365. *
  366. * This structure contains the internal data for core wpa_supplicant code. This
  367. * should be only used directly from the core code. However, a pointer to this
  368. * data is used from other files as an arbitrary context pointer in calls to
  369. * core functions.
  370. */
  371. struct wpa_supplicant {
  372. struct wpa_global *global;
  373. struct wpa_radio *radio; /* shared radio context */
  374. struct dl_list radio_list; /* list head: struct wpa_radio::ifaces */
  375. struct wpa_supplicant *parent;
  376. struct wpa_supplicant *next;
  377. struct l2_packet_data *l2;
  378. struct l2_packet_data *l2_br;
  379. unsigned char own_addr[ETH_ALEN];
  380. unsigned char perm_addr[ETH_ALEN];
  381. char ifname[100];
  382. #ifdef CONFIG_CTRL_IFACE_DBUS
  383. char *dbus_path;
  384. #endif /* CONFIG_CTRL_IFACE_DBUS */
  385. #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  386. char *dbus_new_path;
  387. char *dbus_groupobj_path;
  388. #ifdef CONFIG_AP
  389. char *preq_notify_peer;
  390. #endif /* CONFIG_AP */
  391. #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
  392. char bridge_ifname[16];
  393. char *confname;
  394. char *confanother;
  395. struct wpa_config *conf;
  396. int countermeasures;
  397. struct os_reltime last_michael_mic_error;
  398. u8 bssid[ETH_ALEN];
  399. u8 pending_bssid[ETH_ALEN]; /* If wpa_state == WPA_ASSOCIATING, this
  400. * field contains the target BSSID. */
  401. int reassociate; /* reassociation requested */
  402. int reassoc_same_bss; /* reassociating to the same bss */
  403. int disconnected; /* all connections disabled; i.e., do no reassociate
  404. * before this has been cleared */
  405. struct wpa_ssid *current_ssid;
  406. struct wpa_ssid *last_ssid;
  407. struct wpa_bss *current_bss;
  408. int ap_ies_from_associnfo;
  409. unsigned int assoc_freq;
  410. /* Selected configuration (based on Beacon/ProbeResp WPA IE) */
  411. int pairwise_cipher;
  412. int group_cipher;
  413. int key_mgmt;
  414. int wpa_proto;
  415. int mgmt_group_cipher;
  416. void *drv_priv; /* private data used by driver_ops */
  417. void *global_drv_priv;
  418. u8 *bssid_filter;
  419. size_t bssid_filter_count;
  420. u8 *disallow_aps_bssid;
  421. size_t disallow_aps_bssid_count;
  422. struct wpa_ssid_value *disallow_aps_ssid;
  423. size_t disallow_aps_ssid_count;
  424. enum set_band setband;
  425. /* Preferred network for the next connection attempt */
  426. struct wpa_ssid *next_ssid;
  427. /* previous scan was wildcard when interleaving between
  428. * wildcard scans and specific SSID scan when max_ssids=1 */
  429. int prev_scan_wildcard;
  430. struct wpa_ssid *prev_scan_ssid; /* previously scanned SSID;
  431. * NULL = not yet initialized (start
  432. * with wildcard SSID)
  433. * WILDCARD_SSID_SCAN = wildcard
  434. * SSID was used in the previous scan
  435. */
  436. #define WILDCARD_SSID_SCAN ((struct wpa_ssid *) 1)
  437. struct wpa_ssid *prev_sched_ssid; /* last SSID used in sched scan */
  438. int sched_scan_timeout;
  439. int sched_scan_interval;
  440. int first_sched_scan;
  441. int sched_scan_timed_out;
  442. void (*scan_res_handler)(struct wpa_supplicant *wpa_s,
  443. struct wpa_scan_results *scan_res);
  444. struct dl_list bss; /* struct wpa_bss::list */
  445. struct dl_list bss_id; /* struct wpa_bss::list_id */
  446. size_t num_bss;
  447. unsigned int bss_update_idx;
  448. unsigned int bss_next_id;
  449. /*
  450. * Pointers to BSS entries in the order they were in the last scan
  451. * results.
  452. */
  453. struct wpa_bss **last_scan_res;
  454. unsigned int last_scan_res_used;
  455. unsigned int last_scan_res_size;
  456. struct os_reltime last_scan;
  457. const struct wpa_driver_ops *driver;
  458. int interface_removed; /* whether the network interface has been
  459. * removed */
  460. struct wpa_sm *wpa;
  461. struct eapol_sm *eapol;
  462. struct ctrl_iface_priv *ctrl_iface;
  463. enum wpa_states wpa_state;
  464. struct wpa_radio_work *scan_work;
  465. int scanning;
  466. int sched_scanning;
  467. int new_connection;
  468. int eapol_received; /* number of EAPOL packets received after the
  469. * previous association event */
  470. struct scard_data *scard;
  471. char imsi[20];
  472. int mnc_len;
  473. unsigned char last_eapol_src[ETH_ALEN];
  474. unsigned int keys_cleared; /* bitfield of key indexes that the driver is
  475. * known not to be configured with a key */
  476. struct wpa_blacklist *blacklist;
  477. /**
  478. * extra_blacklist_count - Sum of blacklist counts after last connection
  479. *
  480. * This variable is used to maintain a count of temporary blacklisting
  481. * failures (maximum number for any BSS) over blacklist clear
  482. * operations. This is needed for figuring out whether there has been
  483. * failures prior to the last blacklist clear operation which happens
  484. * whenever no other not-blacklisted BSS candidates are available. This
  485. * gets cleared whenever a connection has been established successfully.
  486. */
  487. int extra_blacklist_count;
  488. /**
  489. * scan_req - Type of the scan request
  490. */
  491. enum scan_req_type {
  492. /**
  493. * NORMAL_SCAN_REQ - Normal scan request
  494. *
  495. * This is used for scans initiated by wpa_supplicant to find an
  496. * AP for a connection.
  497. */
  498. NORMAL_SCAN_REQ,
  499. /**
  500. * INITIAL_SCAN_REQ - Initial scan request
  501. *
  502. * This is used for the first scan on an interface to force at
  503. * least one scan to be run even if the configuration does not
  504. * include any enabled networks.
  505. */
  506. INITIAL_SCAN_REQ,
  507. /**
  508. * MANUAL_SCAN_REQ - Manual scan request
  509. *
  510. * This is used for scans where the user request a scan or
  511. * a specific wpa_supplicant operation (e.g., WPS) requires scan
  512. * to be run.
  513. */
  514. MANUAL_SCAN_REQ
  515. } scan_req, last_scan_req;
  516. enum wpa_states scan_prev_wpa_state;
  517. struct os_reltime scan_trigger_time, scan_start_time;
  518. /* Minimum freshness requirement for connection purposes */
  519. struct os_reltime scan_min_time;
  520. int scan_runs; /* number of scan runs since WPS was started */
  521. int *next_scan_freqs;
  522. int *manual_scan_freqs;
  523. int *manual_sched_scan_freqs;
  524. unsigned int manual_scan_passive:1;
  525. unsigned int manual_scan_use_id:1;
  526. unsigned int manual_scan_only_new:1;
  527. unsigned int own_scan_requested:1;
  528. unsigned int own_scan_running:1;
  529. unsigned int clear_driver_scan_cache:1;
  530. unsigned int manual_scan_id;
  531. int scan_interval; /* time in sec between scans to find suitable AP */
  532. int normal_scans; /* normal scans run before sched_scan */
  533. int scan_for_connection; /* whether the scan request was triggered for
  534. * finding a connection */
  535. #define MAX_SCAN_ID 16
  536. int scan_id[MAX_SCAN_ID];
  537. unsigned int scan_id_count;
  538. struct wpa_ssid_value *ssids_from_scan_req;
  539. unsigned int num_ssids_from_scan_req;
  540. u64 drv_flags;
  541. unsigned int drv_enc;
  542. unsigned int drv_smps_modes;
  543. unsigned int drv_rrm_flags;
  544. /*
  545. * A bitmap of supported protocols for probe response offload. See
  546. * struct wpa_driver_capa in driver.h
  547. */
  548. unsigned int probe_resp_offloads;
  549. /* extended capabilities supported by the driver */
  550. const u8 *extended_capa, *extended_capa_mask;
  551. unsigned int extended_capa_len;
  552. int max_scan_ssids;
  553. int max_sched_scan_ssids;
  554. int sched_scan_supported;
  555. unsigned int max_match_sets;
  556. unsigned int max_remain_on_chan;
  557. unsigned int max_stations;
  558. int pending_mic_error_report;
  559. int pending_mic_error_pairwise;
  560. int mic_errors_seen; /* Michael MIC errors with the current PTK */
  561. struct wps_context *wps;
  562. int wps_success; /* WPS success event received */
  563. struct wps_er *wps_er;
  564. unsigned int wps_run;
  565. struct os_reltime wps_pin_start_time;
  566. int blacklist_cleared;
  567. struct wpabuf *pending_eapol_rx;
  568. struct os_reltime pending_eapol_rx_time;
  569. u8 pending_eapol_rx_src[ETH_ALEN];
  570. unsigned int last_eapol_matches_bssid:1;
  571. unsigned int eap_expected_failure:1;
  572. unsigned int reattach:1; /* reassociation to the same BSS requested */
  573. unsigned int mac_addr_changed:1;
  574. unsigned int added_vif:1;
  575. struct os_reltime last_mac_addr_change;
  576. int last_mac_addr_style;
  577. struct ibss_rsn *ibss_rsn;
  578. int set_sta_uapsd;
  579. int sta_uapsd;
  580. int set_ap_uapsd;
  581. int ap_uapsd;
  582. #ifdef CONFIG_SME
  583. struct {
  584. u8 ssid[SSID_MAX_LEN];
  585. size_t ssid_len;
  586. int freq;
  587. u8 assoc_req_ie[200];
  588. size_t assoc_req_ie_len;
  589. int mfp;
  590. int ft_used;
  591. u8 mobility_domain[2];
  592. u8 *ft_ies;
  593. size_t ft_ies_len;
  594. u8 prev_bssid[ETH_ALEN];
  595. int prev_bssid_set;
  596. int auth_alg;
  597. int proto;
  598. int sa_query_count; /* number of pending SA Query requests;
  599. * 0 = no SA Query in progress */
  600. int sa_query_timed_out;
  601. u8 *sa_query_trans_id; /* buffer of WLAN_SA_QUERY_TR_ID_LEN *
  602. * sa_query_count octets of pending
  603. * SA Query transaction identifiers */
  604. struct os_reltime sa_query_start;
  605. struct os_reltime last_unprot_disconnect;
  606. enum { HT_SEC_CHAN_UNKNOWN,
  607. HT_SEC_CHAN_ABOVE,
  608. HT_SEC_CHAN_BELOW } ht_sec_chan;
  609. u8 sched_obss_scan;
  610. u16 obss_scan_int;
  611. u16 bss_max_idle_period;
  612. #ifdef CONFIG_SAE
  613. struct sae_data sae;
  614. struct wpabuf *sae_token;
  615. int sae_group_index;
  616. unsigned int sae_pmksa_caching:1;
  617. #endif /* CONFIG_SAE */
  618. } sme;
  619. #endif /* CONFIG_SME */
  620. #ifdef CONFIG_AP
  621. struct hostapd_iface *ap_iface;
  622. void (*ap_configured_cb)(void *ctx, void *data);
  623. void *ap_configured_cb_ctx;
  624. void *ap_configured_cb_data;
  625. #endif /* CONFIG_AP */
  626. struct hostapd_iface *ifmsh;
  627. #ifdef CONFIG_MESH
  628. struct mesh_rsn *mesh_rsn;
  629. int mesh_if_idx;
  630. unsigned int mesh_if_created:1;
  631. unsigned int mesh_ht_enabled:1;
  632. int mesh_auth_block_duration; /* sec */
  633. #endif /* CONFIG_MESH */
  634. unsigned int off_channel_freq;
  635. struct wpabuf *pending_action_tx;
  636. u8 pending_action_src[ETH_ALEN];
  637. u8 pending_action_dst[ETH_ALEN];
  638. u8 pending_action_bssid[ETH_ALEN];
  639. unsigned int pending_action_freq;
  640. int pending_action_no_cck;
  641. int pending_action_without_roc;
  642. unsigned int pending_action_tx_done:1;
  643. void (*pending_action_tx_status_cb)(struct wpa_supplicant *wpa_s,
  644. unsigned int freq, const u8 *dst,
  645. const u8 *src, const u8 *bssid,
  646. const u8 *data, size_t data_len,
  647. enum offchannel_send_action_result
  648. result);
  649. unsigned int roc_waiting_drv_freq;
  650. int action_tx_wait_time;
  651. int p2p_mgmt;
  652. #ifdef CONFIG_P2P
  653. struct p2p_go_neg_results *go_params;
  654. int create_p2p_iface;
  655. u8 pending_interface_addr[ETH_ALEN];
  656. char pending_interface_name[100];
  657. int pending_interface_type;
  658. int p2p_group_idx;
  659. unsigned int pending_listen_freq;
  660. unsigned int pending_listen_duration;
  661. enum {
  662. NOT_P2P_GROUP_INTERFACE,
  663. P2P_GROUP_INTERFACE_PENDING,
  664. P2P_GROUP_INTERFACE_GO,
  665. P2P_GROUP_INTERFACE_CLIENT
  666. } p2p_group_interface;
  667. struct p2p_group *p2p_group;
  668. int p2p_long_listen; /* remaining time in long Listen state in ms */
  669. char p2p_pin[10];
  670. int p2p_wps_method;
  671. u8 p2p_auth_invite[ETH_ALEN];
  672. int p2p_sd_over_ctrl_iface;
  673. int p2p_in_provisioning;
  674. int p2p_in_invitation;
  675. int p2p_invite_go_freq;
  676. int pending_invite_ssid_id;
  677. int show_group_started;
  678. u8 go_dev_addr[ETH_ALEN];
  679. int pending_pd_before_join;
  680. u8 pending_join_iface_addr[ETH_ALEN];
  681. u8 pending_join_dev_addr[ETH_ALEN];
  682. int pending_join_wps_method;
  683. u8 p2p_join_ssid[SSID_MAX_LEN];
  684. size_t p2p_join_ssid_len;
  685. int p2p_join_scan_count;
  686. int auto_pd_scan_retry;
  687. int force_long_sd;
  688. u16 pending_pd_config_methods;
  689. enum {
  690. NORMAL_PD, AUTO_PD_GO_NEG, AUTO_PD_JOIN, AUTO_PD_ASP
  691. } pending_pd_use;
  692. /*
  693. * Whether cross connection is disallowed by the AP to which this
  694. * interface is associated (only valid if there is an association).
  695. */
  696. int cross_connect_disallowed;
  697. /*
  698. * Whether this P2P group is configured to use cross connection (only
  699. * valid if this is P2P GO interface). The actual cross connect packet
  700. * forwarding may not be configured depending on the uplink status.
  701. */
  702. int cross_connect_enabled;
  703. /* Whether cross connection forwarding is in use at the moment. */
  704. int cross_connect_in_use;
  705. /*
  706. * Uplink interface name for cross connection
  707. */
  708. char cross_connect_uplink[100];
  709. unsigned int p2p_auto_join:1;
  710. unsigned int p2p_auto_pd:1;
  711. unsigned int p2p_persistent_group:1;
  712. unsigned int p2p_fallback_to_go_neg:1;
  713. unsigned int p2p_pd_before_go_neg:1;
  714. unsigned int p2p_go_ht40:1;
  715. unsigned int p2p_go_vht:1;
  716. unsigned int user_initiated_pd:1;
  717. unsigned int p2p_go_group_formation_completed:1;
  718. unsigned int group_formation_reported:1;
  719. unsigned int waiting_presence_resp;
  720. int p2p_first_connection_timeout;
  721. unsigned int p2p_nfc_tag_enabled:1;
  722. unsigned int p2p_peer_oob_pk_hash_known:1;
  723. unsigned int p2p_disable_ip_addr_req:1;
  724. unsigned int p2ps_method_config_any:1;
  725. unsigned int p2p_cli_probe:1;
  726. int p2p_persistent_go_freq;
  727. int p2p_persistent_id;
  728. int p2p_go_intent;
  729. int p2p_connect_freq;
  730. struct os_reltime p2p_auto_started;
  731. struct wpa_ssid *p2p_last_4way_hs_fail;
  732. struct wpa_radio_work *p2p_scan_work;
  733. struct wpa_radio_work *p2p_listen_work;
  734. struct wpa_radio_work *p2p_send_action_work;
  735. u16 p2p_oob_dev_pw_id; /* OOB Device Password Id for group formation */
  736. struct wpabuf *p2p_oob_dev_pw; /* OOB Device Password for group
  737. * formation */
  738. u8 p2p_peer_oob_pubkey_hash[WPS_OOB_PUBKEY_HASH_LEN];
  739. u8 p2p_ip_addr_info[3 * 4];
  740. /* group common frequencies */
  741. int *p2p_group_common_freqs;
  742. unsigned int p2p_group_common_freqs_num;
  743. u8 p2ps_join_addr[ETH_ALEN];
  744. #endif /* CONFIG_P2P */
  745. struct wpa_ssid *bgscan_ssid;
  746. const struct bgscan_ops *bgscan;
  747. void *bgscan_priv;
  748. const struct autoscan_ops *autoscan;
  749. struct wpa_driver_scan_params *autoscan_params;
  750. void *autoscan_priv;
  751. struct wpa_ssid *connect_without_scan;
  752. struct wps_ap_info *wps_ap;
  753. size_t num_wps_ap;
  754. int wps_ap_iter;
  755. int after_wps;
  756. int known_wps_freq;
  757. unsigned int wps_freq;
  758. int wps_fragment_size;
  759. int auto_reconnect_disabled;
  760. /* Channel preferences for AP/P2P GO use */
  761. int best_24_freq;
  762. int best_5_freq;
  763. int best_overall_freq;
  764. struct gas_query *gas;
  765. #ifdef CONFIG_INTERWORKING
  766. unsigned int fetch_anqp_in_progress:1;
  767. unsigned int network_select:1;
  768. unsigned int auto_select:1;
  769. unsigned int auto_network_select:1;
  770. unsigned int interworking_fast_assoc_tried:1;
  771. unsigned int fetch_all_anqp:1;
  772. unsigned int fetch_osu_info:1;
  773. unsigned int fetch_osu_waiting_scan:1;
  774. unsigned int fetch_osu_icon_in_progress:1;
  775. struct wpa_bss *interworking_gas_bss;
  776. unsigned int osu_icon_id;
  777. struct osu_provider *osu_prov;
  778. size_t osu_prov_count;
  779. struct os_reltime osu_icon_fetch_start;
  780. unsigned int num_osu_scans;
  781. unsigned int num_prov_found;
  782. #endif /* CONFIG_INTERWORKING */
  783. unsigned int drv_capa_known;
  784. struct {
  785. struct hostapd_hw_modes *modes;
  786. u16 num_modes;
  787. u16 flags;
  788. } hw;
  789. enum local_hw_capab {
  790. CAPAB_NO_HT_VHT,
  791. CAPAB_HT,
  792. CAPAB_HT40,
  793. CAPAB_VHT,
  794. } hw_capab;
  795. #ifdef CONFIG_MACSEC
  796. struct ieee802_1x_kay *kay;
  797. #endif /* CONFIG_MACSEC */
  798. int pno;
  799. int pno_sched_pending;
  800. /* WLAN_REASON_* reason codes. Negative if locally generated. */
  801. int disconnect_reason;
  802. struct ext_password_data *ext_pw;
  803. struct wpabuf *last_gas_resp, *prev_gas_resp;
  804. u8 last_gas_addr[ETH_ALEN], prev_gas_addr[ETH_ALEN];
  805. u8 last_gas_dialog_token, prev_gas_dialog_token;
  806. unsigned int no_keep_alive:1;
  807. unsigned int ext_mgmt_frame_handling:1;
  808. unsigned int ext_eapol_frame_io:1;
  809. unsigned int wmm_ac_supported:1;
  810. unsigned int ext_work_in_progress:1;
  811. unsigned int own_disconnect_req:1;
  812. #define MAC_ADDR_RAND_SCAN BIT(0)
  813. #define MAC_ADDR_RAND_SCHED_SCAN BIT(1)
  814. #define MAC_ADDR_RAND_PNO BIT(2)
  815. #define MAC_ADDR_RAND_ALL (MAC_ADDR_RAND_SCAN | \
  816. MAC_ADDR_RAND_SCHED_SCAN | \
  817. MAC_ADDR_RAND_PNO)
  818. unsigned int mac_addr_rand_supported;
  819. unsigned int mac_addr_rand_enable;
  820. /* MAC Address followed by mask (2 * ETH_ALEN) */
  821. u8 *mac_addr_scan;
  822. u8 *mac_addr_sched_scan;
  823. u8 *mac_addr_pno;
  824. #ifdef CONFIG_WNM
  825. u8 wnm_dialog_token;
  826. u8 wnm_reply;
  827. u8 wnm_num_neighbor_report;
  828. u8 wnm_mode;
  829. u16 wnm_dissoc_timer;
  830. u8 wnm_bss_termination_duration[12];
  831. struct neighbor_report *wnm_neighbor_report_elements;
  832. struct os_reltime wnm_cand_valid_until;
  833. u8 wnm_cand_from_bss[ETH_ALEN];
  834. #endif /* CONFIG_WNM */
  835. #ifdef CONFIG_TESTING_GET_GTK
  836. u8 last_gtk[32];
  837. size_t last_gtk_len;
  838. #endif /* CONFIG_TESTING_GET_GTK */
  839. unsigned int num_multichan_concurrent;
  840. struct wpa_radio_work *connect_work;
  841. unsigned int ext_work_id;
  842. struct wpabuf *vendor_elem[NUM_VENDOR_ELEM_FRAMES];
  843. #ifdef CONFIG_TESTING_OPTIONS
  844. struct l2_packet_data *l2_test;
  845. unsigned int extra_roc_dur;
  846. enum wpa_supplicant_test_failure test_failure;
  847. #endif /* CONFIG_TESTING_OPTIONS */
  848. struct wmm_ac_assoc_data *wmm_ac_assoc_info;
  849. struct wmm_tspec_element *tspecs[WMM_AC_NUM][TS_DIR_IDX_COUNT];
  850. struct wmm_ac_addts_request *addts_request;
  851. u8 wmm_ac_last_dialog_token;
  852. struct wmm_tspec_element *last_tspecs;
  853. u8 last_tspecs_count;
  854. struct rrm_data rrm;
  855. #ifdef CONFIG_FST
  856. struct fst_iface *fst;
  857. const struct wpabuf *fst_ies;
  858. struct wpabuf *received_mb_ies;
  859. #endif /* CONFIG_FST */
  860. };
  861. /* wpa_supplicant.c */
  862. void wpa_supplicant_apply_ht_overrides(
  863. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  864. struct wpa_driver_associate_params *params);
  865. void wpa_supplicant_apply_vht_overrides(
  866. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  867. struct wpa_driver_associate_params *params);
  868. int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
  869. int wpa_supplicant_set_wpa_none_key(struct wpa_supplicant *wpa_s,
  870. struct wpa_ssid *ssid);
  871. int wpa_supplicant_reload_configuration(struct wpa_supplicant *wpa_s);
  872. const char * wpa_supplicant_state_txt(enum wpa_states state);
  873. int wpa_supplicant_update_mac_addr(struct wpa_supplicant *wpa_s);
  874. int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s);
  875. int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
  876. struct wpa_bss *bss, struct wpa_ssid *ssid,
  877. u8 *wpa_ie, size_t *wpa_ie_len);
  878. void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
  879. struct wpa_bss *bss,
  880. struct wpa_ssid *ssid);
  881. void wpa_supplicant_set_non_wpa_policy(struct wpa_supplicant *wpa_s,
  882. struct wpa_ssid *ssid);
  883. void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s);
  884. void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr);
  885. void wpa_supplicant_req_auth_timeout(struct wpa_supplicant *wpa_s,
  886. int sec, int usec);
  887. void wpa_supplicant_reinit_autoscan(struct wpa_supplicant *wpa_s);
  888. void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
  889. enum wpa_states state);
  890. struct wpa_ssid * wpa_supplicant_get_ssid(struct wpa_supplicant *wpa_s);
  891. const char * wpa_supplicant_get_eap_mode(struct wpa_supplicant *wpa_s);
  892. void wpa_supplicant_cancel_auth_timeout(struct wpa_supplicant *wpa_s);
  893. void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
  894. int reason_code);
  895. void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
  896. struct wpa_ssid *ssid);
  897. void wpa_supplicant_disable_network(struct wpa_supplicant *wpa_s,
  898. struct wpa_ssid *ssid);
  899. void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
  900. struct wpa_ssid *ssid);
  901. int wpas_set_pkcs11_engine_and_module_path(struct wpa_supplicant *wpa_s,
  902. const char *pkcs11_engine_path,
  903. const char *pkcs11_module_path);
  904. int wpa_supplicant_set_ap_scan(struct wpa_supplicant *wpa_s,
  905. int ap_scan);
  906. int wpa_supplicant_set_bss_expiration_age(struct wpa_supplicant *wpa_s,
  907. unsigned int expire_age);
  908. int wpa_supplicant_set_bss_expiration_count(struct wpa_supplicant *wpa_s,
  909. unsigned int expire_count);
  910. int wpa_supplicant_set_scan_interval(struct wpa_supplicant *wpa_s,
  911. int scan_interval);
  912. int wpa_supplicant_set_debug_params(struct wpa_global *global,
  913. int debug_level, int debug_timestamp,
  914. int debug_show_keys);
  915. void free_hw_features(struct wpa_supplicant *wpa_s);
  916. void wpa_show_license(void);
  917. struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,
  918. struct wpa_interface *iface,
  919. struct wpa_supplicant *parent);
  920. int wpa_supplicant_remove_iface(struct wpa_global *global,
  921. struct wpa_supplicant *wpa_s,
  922. int terminate);
  923. struct wpa_supplicant * wpa_supplicant_get_iface(struct wpa_global *global,
  924. const char *ifname);
  925. struct wpa_global * wpa_supplicant_init(struct wpa_params *params);
  926. int wpa_supplicant_run(struct wpa_global *global);
  927. void wpa_supplicant_deinit(struct wpa_global *global);
  928. int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s,
  929. struct wpa_ssid *ssid);
  930. void wpa_supplicant_terminate_proc(struct wpa_global *global);
  931. void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr,
  932. const u8 *buf, size_t len);
  933. void wpa_supplicant_update_config(struct wpa_supplicant *wpa_s);
  934. void wpa_supplicant_clear_status(struct wpa_supplicant *wpa_s);
  935. void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid);
  936. int wpas_driver_bss_selection(struct wpa_supplicant *wpa_s);
  937. int wpas_is_p2p_prioritized(struct wpa_supplicant *wpa_s);
  938. void wpas_auth_failed(struct wpa_supplicant *wpa_s, char *reason);
  939. void wpas_clear_temp_disabled(struct wpa_supplicant *wpa_s,
  940. struct wpa_ssid *ssid, int clear_failures);
  941. int disallowed_bssid(struct wpa_supplicant *wpa_s, const u8 *bssid);
  942. int disallowed_ssid(struct wpa_supplicant *wpa_s, const u8 *ssid,
  943. size_t ssid_len);
  944. void wpas_request_connection(struct wpa_supplicant *wpa_s);
  945. int wpas_build_ext_capab(struct wpa_supplicant *wpa_s, u8 *buf, size_t buflen);
  946. int wpas_update_random_addr(struct wpa_supplicant *wpa_s, int style);
  947. int wpas_update_random_addr_disassoc(struct wpa_supplicant *wpa_s);
  948. void add_freq(int *freqs, int *num_freqs, int freq);
  949. void wpas_rrm_reset(struct wpa_supplicant *wpa_s);
  950. void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s,
  951. const u8 *report, size_t report_len);
  952. int wpas_rrm_send_neighbor_rep_request(struct wpa_supplicant *wpa_s,
  953. const struct wpa_ssid *ssid,
  954. void (*cb)(void *ctx,
  955. struct wpabuf *neighbor_rep),
  956. void *cb_ctx);
  957. void wpas_rrm_handle_link_measurement_request(struct wpa_supplicant *wpa_s,
  958. const u8 *src,
  959. const u8 *frame, size_t len,
  960. int rssi);
  961. /**
  962. * wpa_supplicant_ctrl_iface_ctrl_rsp_handle - Handle a control response
  963. * @wpa_s: Pointer to wpa_supplicant data
  964. * @ssid: Pointer to the network block the reply is for
  965. * @field: field the response is a reply for
  966. * @value: value (ie, password, etc) for @field
  967. * Returns: 0 on success, non-zero on error
  968. *
  969. * Helper function to handle replies to control interface requests.
  970. */
  971. int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s,
  972. struct wpa_ssid *ssid,
  973. const char *field,
  974. const char *value);
  975. void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
  976. const struct wpa_ssid *ssid,
  977. struct hostapd_freq_params *freq);
  978. /* events.c */
  979. void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s);
  980. int wpa_supplicant_connect(struct wpa_supplicant *wpa_s,
  981. struct wpa_bss *selected,
  982. struct wpa_ssid *ssid);
  983. void wpa_supplicant_stop_countermeasures(void *eloop_ctx, void *sock_ctx);
  984. void wpa_supplicant_delayed_mic_error_report(void *eloop_ctx, void *sock_ctx);
  985. void wnm_bss_keep_alive_deinit(struct wpa_supplicant *wpa_s);
  986. int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s);
  987. struct wpa_bss * wpa_supplicant_pick_network(struct wpa_supplicant *wpa_s,
  988. struct wpa_ssid **selected_ssid);
  989. /* eap_register.c */
  990. int eap_register_methods(void);
  991. /**
  992. * Utility method to tell if a given network is for persistent group storage
  993. * @ssid: Network object
  994. * Returns: 1 if network is a persistent group, 0 otherwise
  995. */
  996. static inline int network_is_persistent_group(struct wpa_ssid *ssid)
  997. {
  998. return ssid->disabled == 2 && ssid->p2p_persistent_group;
  999. }
  1000. int wpas_network_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
  1001. int wpas_get_ssid_pmf(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
  1002. int wpas_init_ext_pw(struct wpa_supplicant *wpa_s);
  1003. void dump_freq_data(struct wpa_supplicant *wpa_s, const char *title,
  1004. struct wpa_used_freq_data *freqs_data,
  1005. unsigned int len);
  1006. int get_shared_radio_freqs_data(struct wpa_supplicant *wpa_s,
  1007. struct wpa_used_freq_data *freqs_data,
  1008. unsigned int len);
  1009. int get_shared_radio_freqs(struct wpa_supplicant *wpa_s,
  1010. int *freq_array, unsigned int len);
  1011. void wpas_network_reenabled(void *eloop_ctx, void *timeout_ctx);
  1012. #ifdef CONFIG_FST
  1013. struct fst_wpa_obj;
  1014. void fst_wpa_supplicant_fill_iface_obj(struct wpa_supplicant *wpa_s,
  1015. struct fst_wpa_obj *iface_obj);
  1016. #endif /* CONFIG_FST */
  1017. #endif /* WPA_SUPPLICANT_I_H */