wpa_supplicant_i.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. /*
  2. * wpa_supplicant - Internal definitions
  3. * Copyright (c) 2003-2010, Jouni Malinen <j@w1.fi>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * Alternatively, this software may be distributed under the terms of BSD
  10. * license.
  11. *
  12. * See README and COPYING for more details.
  13. */
  14. #ifndef WPA_SUPPLICANT_I_H
  15. #define WPA_SUPPLICANT_I_H
  16. #include "utils/list.h"
  17. #include "common/defs.h"
  18. #include "config_ssid.h"
  19. extern const char *wpa_supplicant_version;
  20. extern const char *wpa_supplicant_license;
  21. #ifndef CONFIG_NO_STDOUT_DEBUG
  22. extern const char *wpa_supplicant_full_license1;
  23. extern const char *wpa_supplicant_full_license2;
  24. extern const char *wpa_supplicant_full_license3;
  25. extern const char *wpa_supplicant_full_license4;
  26. extern const char *wpa_supplicant_full_license5;
  27. #endif /* CONFIG_NO_STDOUT_DEBUG */
  28. struct wpa_sm;
  29. struct wpa_supplicant;
  30. struct ibss_rsn;
  31. struct scan_info;
  32. struct wpa_bss;
  33. struct wpa_scan_results;
  34. struct hostapd_hw_modes;
  35. struct wpa_driver_associate_params;
  36. /*
  37. * Forward declarations of private structures used within the ctrl_iface
  38. * backends. Other parts of wpa_supplicant do not have access to data stored in
  39. * these structures.
  40. */
  41. struct ctrl_iface_priv;
  42. struct ctrl_iface_global_priv;
  43. struct wpas_dbus_priv;
  44. /**
  45. * struct wpa_interface - Parameters for wpa_supplicant_add_iface()
  46. */
  47. struct wpa_interface {
  48. /**
  49. * confname - Configuration name (file or profile) name
  50. *
  51. * This can also be %NULL when a configuration file is not used. In
  52. * that case, ctrl_interface must be set to allow the interface to be
  53. * configured.
  54. */
  55. const char *confname;
  56. /**
  57. * ctrl_interface - Control interface parameter
  58. *
  59. * If a configuration file is not used, this variable can be used to
  60. * set the ctrl_interface parameter that would have otherwise been read
  61. * from the configuration file. If both confname and ctrl_interface are
  62. * set, ctrl_interface is used to override the value from configuration
  63. * file.
  64. */
  65. const char *ctrl_interface;
  66. /**
  67. * driver - Driver interface name, or %NULL to use the default driver
  68. */
  69. const char *driver;
  70. /**
  71. * driver_param - Driver interface parameters
  72. *
  73. * If a configuration file is not used, this variable can be used to
  74. * set the driver_param parameters that would have otherwise been read
  75. * from the configuration file. If both confname and driver_param are
  76. * set, driver_param is used to override the value from configuration
  77. * file.
  78. */
  79. const char *driver_param;
  80. /**
  81. * ifname - Interface name
  82. */
  83. const char *ifname;
  84. /**
  85. * bridge_ifname - Optional bridge interface name
  86. *
  87. * If the driver interface (ifname) is included in a Linux bridge
  88. * device, the bridge interface may need to be used for receiving EAPOL
  89. * frames. This can be enabled by setting this variable to enable
  90. * receiving of EAPOL frames from an additional interface.
  91. */
  92. const char *bridge_ifname;
  93. };
  94. /**
  95. * struct wpa_params - Parameters for wpa_supplicant_init()
  96. */
  97. struct wpa_params {
  98. /**
  99. * daemonize - Run %wpa_supplicant in the background
  100. */
  101. int daemonize;
  102. /**
  103. * wait_for_monitor - Wait for a monitor program before starting
  104. */
  105. int wait_for_monitor;
  106. /**
  107. * pid_file - Path to a PID (process ID) file
  108. *
  109. * If this and daemonize are set, process ID of the background process
  110. * will be written to the specified file.
  111. */
  112. char *pid_file;
  113. /**
  114. * wpa_debug_level - Debugging verbosity level (e.g., MSG_INFO)
  115. */
  116. int wpa_debug_level;
  117. /**
  118. * wpa_debug_show_keys - Whether keying material is included in debug
  119. *
  120. * This parameter can be used to allow keying material to be included
  121. * in debug messages. This is a security risk and this option should
  122. * not be enabled in normal configuration. If needed during
  123. * development or while troubleshooting, this option can provide more
  124. * details for figuring out what is happening.
  125. */
  126. int wpa_debug_show_keys;
  127. /**
  128. * wpa_debug_timestamp - Whether to include timestamp in debug messages
  129. */
  130. int wpa_debug_timestamp;
  131. /**
  132. * ctrl_interface - Global ctrl_iface path/parameter
  133. */
  134. char *ctrl_interface;
  135. /**
  136. * dbus_ctrl_interface - Enable the DBus control interface
  137. */
  138. int dbus_ctrl_interface;
  139. /**
  140. * wpa_debug_file_path - Path of debug file or %NULL to use stdout
  141. */
  142. const char *wpa_debug_file_path;
  143. /**
  144. * wpa_debug_syslog - Enable log output through syslog
  145. */
  146. int wpa_debug_syslog;
  147. /**
  148. * override_driver - Optional driver parameter override
  149. *
  150. * This parameter can be used to override the driver parameter in
  151. * dynamic interface addition to force a specific driver wrapper to be
  152. * used instead.
  153. */
  154. char *override_driver;
  155. /**
  156. * override_ctrl_interface - Optional ctrl_interface override
  157. *
  158. * This parameter can be used to override the ctrl_interface parameter
  159. * in dynamic interface addition to force a control interface to be
  160. * created.
  161. */
  162. char *override_ctrl_interface;
  163. /**
  164. * entropy_file - Optional entropy file
  165. *
  166. * This parameter can be used to configure wpa_supplicant to maintain
  167. * its internal entropy store over restarts.
  168. */
  169. char *entropy_file;
  170. };
  171. struct p2p_srv_bonjour {
  172. struct dl_list list;
  173. struct wpabuf *query;
  174. struct wpabuf *resp;
  175. };
  176. struct p2p_srv_upnp {
  177. struct dl_list list;
  178. u8 version;
  179. char *service;
  180. };
  181. /**
  182. * struct wpa_global - Internal, global data for all %wpa_supplicant interfaces
  183. *
  184. * This structure is initialized by calling wpa_supplicant_init() when starting
  185. * %wpa_supplicant.
  186. */
  187. struct wpa_global {
  188. struct wpa_supplicant *ifaces;
  189. struct wpa_params params;
  190. struct ctrl_iface_global_priv *ctrl_iface;
  191. struct wpas_dbus_priv *dbus;
  192. void **drv_priv;
  193. size_t drv_count;
  194. struct os_time suspend_time;
  195. struct p2p_data *p2p;
  196. struct wpa_supplicant *p2p_group_formation;
  197. u8 p2p_dev_addr[ETH_ALEN];
  198. struct dl_list p2p_srv_bonjour; /* struct p2p_srv_bonjour */
  199. struct dl_list p2p_srv_upnp; /* struct p2p_srv_upnp */
  200. int p2p_disabled;
  201. int cross_connection;
  202. };
  203. enum offchannel_send_action_result {
  204. OFFCHANNEL_SEND_ACTION_SUCCESS /* Frame was send and acknowledged */,
  205. OFFCHANNEL_SEND_ACTION_NO_ACK /* Frame was sent, but not acknowledged
  206. */,
  207. OFFCHANNEL_SEND_ACTION_FAILED /* Frame was not sent due to a failure */
  208. };
  209. /**
  210. * struct wpa_supplicant - Internal data for wpa_supplicant interface
  211. *
  212. * This structure contains the internal data for core wpa_supplicant code. This
  213. * should be only used directly from the core code. However, a pointer to this
  214. * data is used from other files as an arbitrary context pointer in calls to
  215. * core functions.
  216. */
  217. struct wpa_supplicant {
  218. struct wpa_global *global;
  219. struct wpa_supplicant *parent;
  220. struct wpa_supplicant *next;
  221. struct l2_packet_data *l2;
  222. struct l2_packet_data *l2_br;
  223. unsigned char own_addr[ETH_ALEN];
  224. char ifname[100];
  225. #ifdef CONFIG_CTRL_IFACE_DBUS
  226. char *dbus_path;
  227. #endif /* CONFIG_CTRL_IFACE_DBUS */
  228. #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
  229. char *dbus_new_path;
  230. char *dbus_groupobj_path;
  231. #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
  232. char bridge_ifname[16];
  233. char *confname;
  234. struct wpa_config *conf;
  235. int countermeasures;
  236. os_time_t last_michael_mic_error;
  237. u8 bssid[ETH_ALEN];
  238. u8 pending_bssid[ETH_ALEN]; /* If wpa_state == WPA_ASSOCIATING, this
  239. * field contains the target BSSID. */
  240. int reassociate; /* reassociation requested */
  241. int disconnected; /* all connections disabled; i.e., do no reassociate
  242. * before this has been cleared */
  243. struct wpa_ssid *current_ssid;
  244. struct wpa_bss *current_bss;
  245. int ap_ies_from_associnfo;
  246. unsigned int assoc_freq;
  247. /* Selected configuration (based on Beacon/ProbeResp WPA IE) */
  248. int pairwise_cipher;
  249. int group_cipher;
  250. int key_mgmt;
  251. int wpa_proto;
  252. int mgmt_group_cipher;
  253. void *drv_priv; /* private data used by driver_ops */
  254. void *global_drv_priv;
  255. /* previous scan was wildcard when interleaving between
  256. * wildcard scans and specific SSID scan when max_ssids=1 */
  257. int prev_scan_wildcard;
  258. struct wpa_ssid *prev_scan_ssid; /* previously scanned SSID;
  259. * NULL = not yet initialized (start
  260. * with wildcard SSID)
  261. * WILDCARD_SSID_SCAN = wildcard
  262. * SSID was used in the previous scan
  263. */
  264. #define WILDCARD_SSID_SCAN ((struct wpa_ssid *) 1)
  265. struct wpa_ssid *prev_sched_ssid; /* last SSID used in sched scan */
  266. int sched_scan_timeout;
  267. int sched_scan_interval;
  268. int first_sched_scan;
  269. int sched_scan_timed_out;
  270. void (*scan_res_handler)(struct wpa_supplicant *wpa_s,
  271. struct wpa_scan_results *scan_res);
  272. struct dl_list bss; /* struct wpa_bss::list */
  273. struct dl_list bss_id; /* struct wpa_bss::list_id */
  274. size_t num_bss;
  275. unsigned int bss_update_idx;
  276. unsigned int bss_next_id;
  277. struct wpa_driver_ops *driver;
  278. int interface_removed; /* whether the network interface has been
  279. * removed */
  280. struct wpa_sm *wpa;
  281. struct eapol_sm *eapol;
  282. struct ctrl_iface_priv *ctrl_iface;
  283. enum wpa_states wpa_state;
  284. int scanning;
  285. int sched_scanning;
  286. int new_connection;
  287. int reassociated_connection;
  288. int eapol_received; /* number of EAPOL packets received after the
  289. * previous association event */
  290. struct scard_data *scard;
  291. unsigned char last_eapol_src[ETH_ALEN];
  292. int keys_cleared;
  293. struct wpa_blacklist *blacklist;
  294. int scan_req; /* manual scan request; this forces a scan even if there
  295. * are no enabled networks in the configuration */
  296. int scan_runs; /* number of scan runs since WPS was started */
  297. int *next_scan_freqs;
  298. int scan_interval; /* time in sec between scans to find suitable AP */
  299. int normal_scans; /* normal scans run before sched_scan */
  300. unsigned int drv_flags;
  301. /*
  302. * A bitmap of supported protocols for probe response offload. See
  303. * struct wpa_driver_capa in driver.h
  304. */
  305. unsigned int probe_resp_offloads;
  306. int max_scan_ssids;
  307. int max_sched_scan_ssids;
  308. int sched_scan_supported;
  309. unsigned int max_match_sets;
  310. unsigned int max_remain_on_chan;
  311. unsigned int max_stations;
  312. int pending_mic_error_report;
  313. int pending_mic_error_pairwise;
  314. int mic_errors_seen; /* Michael MIC errors with the current PTK */
  315. struct wps_context *wps;
  316. int wps_success; /* WPS success event received */
  317. struct wps_er *wps_er;
  318. int blacklist_cleared;
  319. struct wpabuf *pending_eapol_rx;
  320. struct os_time pending_eapol_rx_time;
  321. u8 pending_eapol_rx_src[ETH_ALEN];
  322. struct ibss_rsn *ibss_rsn;
  323. int set_sta_uapsd;
  324. int sta_uapsd;
  325. int set_ap_uapsd;
  326. int ap_uapsd;
  327. #ifdef CONFIG_SME
  328. struct {
  329. u8 ssid[32];
  330. size_t ssid_len;
  331. int freq;
  332. u8 assoc_req_ie[200];
  333. size_t assoc_req_ie_len;
  334. int mfp;
  335. int ft_used;
  336. u8 mobility_domain[2];
  337. u8 *ft_ies;
  338. size_t ft_ies_len;
  339. u8 prev_bssid[ETH_ALEN];
  340. int prev_bssid_set;
  341. int auth_alg;
  342. int proto;
  343. int sa_query_count; /* number of pending SA Query requests;
  344. * 0 = no SA Query in progress */
  345. int sa_query_timed_out;
  346. u8 *sa_query_trans_id; /* buffer of WLAN_SA_QUERY_TR_ID_LEN *
  347. * sa_query_count octets of pending
  348. * SA Query transaction identifiers */
  349. struct os_time sa_query_start;
  350. } sme;
  351. #endif /* CONFIG_SME */
  352. #ifdef CONFIG_AP
  353. struct hostapd_iface *ap_iface;
  354. void (*ap_configured_cb)(void *ctx, void *data);
  355. void *ap_configured_cb_ctx;
  356. void *ap_configured_cb_data;
  357. #endif /* CONFIG_AP */
  358. unsigned int off_channel_freq;
  359. struct wpabuf *pending_action_tx;
  360. u8 pending_action_src[ETH_ALEN];
  361. u8 pending_action_dst[ETH_ALEN];
  362. u8 pending_action_bssid[ETH_ALEN];
  363. unsigned int pending_action_freq;
  364. int pending_action_no_cck;
  365. int pending_action_without_roc;
  366. void (*pending_action_tx_status_cb)(struct wpa_supplicant *wpa_s,
  367. unsigned int freq, const u8 *dst,
  368. const u8 *src, const u8 *bssid,
  369. const u8 *data, size_t data_len,
  370. enum offchannel_send_action_result
  371. result);
  372. unsigned int roc_waiting_drv_freq;
  373. int action_tx_wait_time;
  374. #ifdef CONFIG_P2P
  375. struct p2p_go_neg_results *go_params;
  376. int create_p2p_iface;
  377. u8 pending_interface_addr[ETH_ALEN];
  378. char pending_interface_name[100];
  379. int pending_interface_type;
  380. int p2p_group_idx;
  381. unsigned int pending_listen_freq;
  382. unsigned int pending_listen_duration;
  383. enum {
  384. NOT_P2P_GROUP_INTERFACE,
  385. P2P_GROUP_INTERFACE_PENDING,
  386. P2P_GROUP_INTERFACE_GO,
  387. P2P_GROUP_INTERFACE_CLIENT
  388. } p2p_group_interface;
  389. struct p2p_group *p2p_group;
  390. int p2p_long_listen; /* remaining time in long Listen state in ms */
  391. char p2p_pin[10];
  392. int p2p_wps_method;
  393. u8 p2p_auth_invite[ETH_ALEN];
  394. int p2p_sd_over_ctrl_iface;
  395. int p2p_in_provisioning;
  396. int pending_invite_ssid_id;
  397. int show_group_started;
  398. u8 go_dev_addr[ETH_ALEN];
  399. int pending_pd_before_join;
  400. u8 pending_join_iface_addr[ETH_ALEN];
  401. u8 pending_join_dev_addr[ETH_ALEN];
  402. int pending_join_wps_method;
  403. int p2p_join_scan_count;
  404. int force_long_sd;
  405. /*
  406. * Whether cross connection is disallowed by the AP to which this
  407. * interface is associated (only valid if there is an association).
  408. */
  409. int cross_connect_disallowed;
  410. /*
  411. * Whether this P2P group is configured to use cross connection (only
  412. * valid if this is P2P GO interface). The actual cross connect packet
  413. * forwarding may not be configured depending on the uplink status.
  414. */
  415. int cross_connect_enabled;
  416. /* Whether cross connection forwarding is in use at the moment. */
  417. int cross_connect_in_use;
  418. /*
  419. * Uplink interface name for cross connection
  420. */
  421. char cross_connect_uplink[100];
  422. enum {
  423. P2P_GROUP_REMOVAL_UNKNOWN,
  424. P2P_GROUP_REMOVAL_REQUESTED,
  425. P2P_GROUP_REMOVAL_IDLE_TIMEOUT,
  426. P2P_GROUP_REMOVAL_UNAVAILABLE
  427. } removal_reason;
  428. unsigned int p2p_cb_on_scan_complete:1;
  429. #endif /* CONFIG_P2P */
  430. struct wpa_ssid *bgscan_ssid;
  431. const struct bgscan_ops *bgscan;
  432. void *bgscan_priv;
  433. struct wpa_ssid *connect_without_scan;
  434. int after_wps;
  435. int known_wps_freq;
  436. unsigned int wps_freq;
  437. int wps_fragment_size;
  438. int auto_reconnect_disabled;
  439. /* Channel preferences for AP/P2P GO use */
  440. int best_24_freq;
  441. int best_5_freq;
  442. int best_overall_freq;
  443. struct gas_query *gas;
  444. #ifdef CONFIG_INTERWORKING
  445. unsigned int fetch_anqp_in_progress:1;
  446. unsigned int network_select:1;
  447. unsigned int auto_select:1;
  448. #endif /* CONFIG_INTERWORKING */
  449. unsigned int drv_capa_known;
  450. struct {
  451. struct hostapd_hw_modes *modes;
  452. u16 num_modes;
  453. u16 flags;
  454. } hw;
  455. int pno;
  456. };
  457. /* wpa_supplicant.c */
  458. void wpa_supplicant_apply_ht_overrides(
  459. struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
  460. struct wpa_driver_associate_params *params);
  461. int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
  462. int wpa_supplicant_reload_configuration(struct wpa_supplicant *wpa_s);
  463. const char * wpa_supplicant_state_txt(enum wpa_states state);
  464. int wpa_supplicant_update_mac_addr(struct wpa_supplicant *wpa_s);
  465. int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s);
  466. int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
  467. struct wpa_bss *bss, struct wpa_ssid *ssid,
  468. u8 *wpa_ie, size_t *wpa_ie_len);
  469. void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
  470. struct wpa_bss *bss,
  471. struct wpa_ssid *ssid);
  472. void wpa_supplicant_set_non_wpa_policy(struct wpa_supplicant *wpa_s,
  473. struct wpa_ssid *ssid);
  474. void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s);
  475. void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr);
  476. void wpa_supplicant_req_auth_timeout(struct wpa_supplicant *wpa_s,
  477. int sec, int usec);
  478. void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
  479. enum wpa_states state);
  480. struct wpa_ssid * wpa_supplicant_get_ssid(struct wpa_supplicant *wpa_s);
  481. const char * wpa_supplicant_get_eap_mode(struct wpa_supplicant *wpa_s);
  482. void wpa_supplicant_cancel_auth_timeout(struct wpa_supplicant *wpa_s);
  483. void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
  484. int reason_code);
  485. void wpa_supplicant_disassociate(struct wpa_supplicant *wpa_s,
  486. int reason_code);
  487. void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
  488. struct wpa_ssid *ssid);
  489. void wpa_supplicant_disable_network(struct wpa_supplicant *wpa_s,
  490. struct wpa_ssid *ssid);
  491. void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
  492. struct wpa_ssid *ssid);
  493. int wpa_supplicant_set_ap_scan(struct wpa_supplicant *wpa_s,
  494. int ap_scan);
  495. int wpa_supplicant_set_bss_expiration_age(struct wpa_supplicant *wpa_s,
  496. unsigned int expire_age);
  497. int wpa_supplicant_set_bss_expiration_count(struct wpa_supplicant *wpa_s,
  498. unsigned int expire_count);
  499. int wpa_supplicant_set_debug_params(struct wpa_global *global,
  500. int debug_level, int debug_timestamp,
  501. int debug_show_keys);
  502. void wpa_show_license(void);
  503. struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,
  504. struct wpa_interface *iface);
  505. int wpa_supplicant_remove_iface(struct wpa_global *global,
  506. struct wpa_supplicant *wpa_s,
  507. int terminate);
  508. struct wpa_supplicant * wpa_supplicant_get_iface(struct wpa_global *global,
  509. const char *ifname);
  510. struct wpa_global * wpa_supplicant_init(struct wpa_params *params);
  511. int wpa_supplicant_run(struct wpa_global *global);
  512. void wpa_supplicant_deinit(struct wpa_global *global);
  513. int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s,
  514. struct wpa_ssid *ssid);
  515. void wpa_supplicant_terminate_proc(struct wpa_global *global);
  516. void wpa_supplicant_rx_eapol(void *ctx, const u8 *src_addr,
  517. const u8 *buf, size_t len);
  518. enum wpa_key_mgmt key_mgmt2driver(int key_mgmt);
  519. enum wpa_cipher cipher_suite2driver(int cipher);
  520. void wpa_supplicant_update_config(struct wpa_supplicant *wpa_s);
  521. void wpa_supplicant_clear_status(struct wpa_supplicant *wpa_s);
  522. void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid);
  523. int wpas_driver_bss_selection(struct wpa_supplicant *wpa_s);
  524. /* events.c */
  525. void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s);
  526. int wpa_supplicant_connect(struct wpa_supplicant *wpa_s,
  527. struct wpa_bss *selected,
  528. struct wpa_ssid *ssid);
  529. void wpa_supplicant_stop_countermeasures(void *eloop_ctx, void *sock_ctx);
  530. void wpa_supplicant_delayed_mic_error_report(void *eloop_ctx, void *sock_ctx);
  531. /* eap_register.c */
  532. int eap_register_methods(void);
  533. /**
  534. * Utility method to tell if a given network is a persistent group
  535. * @ssid: Network object
  536. * Returns: 1 if network is a persistent group, 0 otherwise
  537. */
  538. static inline int network_is_persistent_group(struct wpa_ssid *ssid)
  539. {
  540. return ((ssid->disabled == 2) || ssid->p2p_persistent_group);
  541. }
  542. #endif /* WPA_SUPPLICANT_I_H */