Home | History | Annotate | Line # | Download | only in wpa_supplicant
      1  1.1  christos /*
      2  1.1  christos  * wpa_supplicant - Internal definitions
      3  1.7  christos  * Copyright (c) 2003-2024, Jouni Malinen <j (at) w1.fi>
      4  1.1  christos  *
      5  1.2       roy  * This software may be distributed under the terms of the BSD license.
      6  1.2       roy  * See README for more details.
      7  1.1  christos  */
      8  1.1  christos 
      9  1.1  christos #ifndef WPA_SUPPLICANT_I_H
     10  1.1  christos #define WPA_SUPPLICANT_I_H
     11  1.1  christos 
     12  1.4  christos #include "utils/bitfield.h"
     13  1.1  christos #include "utils/list.h"
     14  1.1  christos #include "common/defs.h"
     15  1.2       roy #include "common/sae.h"
     16  1.2       roy #include "common/wpa_ctrl.h"
     17  1.7  christos #include "common/dpp.h"
     18  1.7  christos #include "crypto/sha384.h"
     19  1.7  christos #include "eapol_supp/eapol_supp_sm.h"
     20  1.2       roy #include "wps/wps_defs.h"
     21  1.2       roy #include "config_ssid.h"
     22  1.2       roy #include "wmm_ac.h"
     23  1.7  christos #include "pasn/pasn_common.h"
     24  1.1  christos 
     25  1.3  christos extern const char *const wpa_supplicant_version;
     26  1.3  christos extern const char *const wpa_supplicant_license;
     27  1.1  christos #ifndef CONFIG_NO_STDOUT_DEBUG
     28  1.3  christos extern const char *const wpa_supplicant_full_license1;
     29  1.3  christos extern const char *const wpa_supplicant_full_license2;
     30  1.3  christos extern const char *const wpa_supplicant_full_license3;
     31  1.3  christos extern const char *const wpa_supplicant_full_license4;
     32  1.3  christos extern const char *const wpa_supplicant_full_license5;
     33  1.1  christos #endif /* CONFIG_NO_STDOUT_DEBUG */
     34  1.1  christos 
     35  1.1  christos struct wpa_sm;
     36  1.1  christos struct wpa_supplicant;
     37  1.1  christos struct ibss_rsn;
     38  1.1  christos struct scan_info;
     39  1.1  christos struct wpa_bss;
     40  1.1  christos struct wpa_scan_results;
     41  1.2       roy struct hostapd_hw_modes;
     42  1.2       roy struct wpa_driver_associate_params;
     43  1.7  christos struct wpa_cred;
     44  1.1  christos 
     45  1.1  christos /*
     46  1.1  christos  * Forward declarations of private structures used within the ctrl_iface
     47  1.1  christos  * backends. Other parts of wpa_supplicant do not have access to data stored in
     48  1.1  christos  * these structures.
     49  1.1  christos  */
     50  1.1  christos struct ctrl_iface_priv;
     51  1.1  christos struct ctrl_iface_global_priv;
     52  1.1  christos struct wpas_dbus_priv;
     53  1.3  christos struct wpas_binder_priv;
     54  1.1  christos 
     55  1.1  christos /**
     56  1.1  christos  * struct wpa_interface - Parameters for wpa_supplicant_add_iface()
     57  1.1  christos  */
     58  1.1  christos struct wpa_interface {
     59  1.1  christos 	/**
     60  1.1  christos 	 * confname - Configuration name (file or profile) name
     61  1.1  christos 	 *
     62  1.1  christos 	 * This can also be %NULL when a configuration file is not used. In
     63  1.1  christos 	 * that case, ctrl_interface must be set to allow the interface to be
     64  1.1  christos 	 * configured.
     65  1.1  christos 	 */
     66  1.1  christos 	const char *confname;
     67  1.1  christos 
     68  1.1  christos 	/**
     69  1.2       roy 	 * confanother - Additional configuration name (file or profile) name
     70  1.2       roy 	 *
     71  1.2       roy 	 * This can also be %NULL when the additional configuration file is not
     72  1.2       roy 	 * used.
     73  1.2       roy 	 */
     74  1.2       roy 	const char *confanother;
     75  1.2       roy 
     76  1.2       roy 	/**
     77  1.1  christos 	 * ctrl_interface - Control interface parameter
     78  1.1  christos 	 *
     79  1.1  christos 	 * If a configuration file is not used, this variable can be used to
     80  1.1  christos 	 * set the ctrl_interface parameter that would have otherwise been read
     81  1.1  christos 	 * from the configuration file. If both confname and ctrl_interface are
     82  1.1  christos 	 * set, ctrl_interface is used to override the value from configuration
     83  1.1  christos 	 * file.
     84  1.1  christos 	 */
     85  1.1  christos 	const char *ctrl_interface;
     86  1.1  christos 
     87  1.1  christos 	/**
     88  1.1  christos 	 * driver - Driver interface name, or %NULL to use the default driver
     89  1.1  christos 	 */
     90  1.1  christos 	const char *driver;
     91  1.1  christos 
     92  1.1  christos 	/**
     93  1.1  christos 	 * driver_param - Driver interface parameters
     94  1.1  christos 	 *
     95  1.1  christos 	 * If a configuration file is not used, this variable can be used to
     96  1.1  christos 	 * set the driver_param parameters that would have otherwise been read
     97  1.1  christos 	 * from the configuration file. If both confname and driver_param are
     98  1.1  christos 	 * set, driver_param is used to override the value from configuration
     99  1.1  christos 	 * file.
    100  1.1  christos 	 */
    101  1.1  christos 	const char *driver_param;
    102  1.1  christos 
    103  1.1  christos 	/**
    104  1.1  christos 	 * ifname - Interface name
    105  1.1  christos 	 */
    106  1.1  christos 	const char *ifname;
    107  1.1  christos 
    108  1.1  christos 	/**
    109  1.1  christos 	 * bridge_ifname - Optional bridge interface name
    110  1.1  christos 	 *
    111  1.1  christos 	 * If the driver interface (ifname) is included in a Linux bridge
    112  1.1  christos 	 * device, the bridge interface may need to be used for receiving EAPOL
    113  1.1  christos 	 * frames. This can be enabled by setting this variable to enable
    114  1.1  christos 	 * receiving of EAPOL frames from an additional interface.
    115  1.1  christos 	 */
    116  1.1  christos 	const char *bridge_ifname;
    117  1.2       roy 
    118  1.2       roy 	/**
    119  1.2       roy 	 * p2p_mgmt - Interface used for P2P management (P2P Device operations)
    120  1.2       roy 	 *
    121  1.2       roy 	 * Indicates whether wpas_p2p_init() must be called for this interface.
    122  1.2       roy 	 * This is used only when the driver supports a dedicated P2P Device
    123  1.2       roy 	 * interface that is not a network interface.
    124  1.2       roy 	 */
    125  1.2       roy 	int p2p_mgmt;
    126  1.5       roy 
    127  1.5       roy #ifdef CONFIG_MATCH_IFACE
    128  1.5       roy 	/**
    129  1.5       roy 	 * matched - Interface was matched rather than specified
    130  1.5       roy 	 *
    131  1.5       roy 	 */
    132  1.7  christos 	enum {
    133  1.7  christos 		WPA_IFACE_NOT_MATCHED,
    134  1.7  christos 		WPA_IFACE_MATCHED_NULL,
    135  1.7  christos 		WPA_IFACE_MATCHED
    136  1.7  christos 	} matched;
    137  1.5       roy #endif /* CONFIG_MATCH_IFACE */
    138  1.1  christos };
    139  1.1  christos 
    140  1.1  christos /**
    141  1.1  christos  * struct wpa_params - Parameters for wpa_supplicant_init()
    142  1.1  christos  */
    143  1.1  christos struct wpa_params {
    144  1.1  christos 	/**
    145  1.1  christos 	 * daemonize - Run %wpa_supplicant in the background
    146  1.1  christos 	 */
    147  1.1  christos 	int daemonize;
    148  1.1  christos 
    149  1.1  christos 	/**
    150  1.1  christos 	 * wait_for_monitor - Wait for a monitor program before starting
    151  1.1  christos 	 */
    152  1.1  christos 	int wait_for_monitor;
    153  1.1  christos 
    154  1.1  christos 	/**
    155  1.1  christos 	 * pid_file - Path to a PID (process ID) file
    156  1.1  christos 	 *
    157  1.1  christos 	 * If this and daemonize are set, process ID of the background process
    158  1.1  christos 	 * will be written to the specified file.
    159  1.1  christos 	 */
    160  1.1  christos 	char *pid_file;
    161  1.1  christos 
    162  1.1  christos 	/**
    163  1.1  christos 	 * wpa_debug_level - Debugging verbosity level (e.g., MSG_INFO)
    164  1.1  christos 	 */
    165  1.1  christos 	int wpa_debug_level;
    166  1.1  christos 
    167  1.1  christos 	/**
    168  1.1  christos 	 * wpa_debug_show_keys - Whether keying material is included in debug
    169  1.1  christos 	 *
    170  1.1  christos 	 * This parameter can be used to allow keying material to be included
    171  1.1  christos 	 * in debug messages. This is a security risk and this option should
    172  1.1  christos 	 * not be enabled in normal configuration. If needed during
    173  1.1  christos 	 * development or while troubleshooting, this option can provide more
    174  1.1  christos 	 * details for figuring out what is happening.
    175  1.1  christos 	 */
    176  1.1  christos 	int wpa_debug_show_keys;
    177  1.1  christos 
    178  1.1  christos 	/**
    179  1.1  christos 	 * wpa_debug_timestamp - Whether to include timestamp in debug messages
    180  1.1  christos 	 */
    181  1.1  christos 	int wpa_debug_timestamp;
    182  1.1  christos 
    183  1.1  christos 	/**
    184  1.1  christos 	 * ctrl_interface - Global ctrl_iface path/parameter
    185  1.1  christos 	 */
    186  1.1  christos 	char *ctrl_interface;
    187  1.1  christos 
    188  1.1  christos 	/**
    189  1.2       roy 	 * ctrl_interface_group - Global ctrl_iface group
    190  1.2       roy 	 */
    191  1.2       roy 	char *ctrl_interface_group;
    192  1.2       roy 
    193  1.2       roy 	/**
    194  1.1  christos 	 * dbus_ctrl_interface - Enable the DBus control interface
    195  1.1  christos 	 */
    196  1.1  christos 	int dbus_ctrl_interface;
    197  1.1  christos 
    198  1.1  christos 	/**
    199  1.1  christos 	 * wpa_debug_file_path - Path of debug file or %NULL to use stdout
    200  1.1  christos 	 */
    201  1.1  christos 	const char *wpa_debug_file_path;
    202  1.1  christos 
    203  1.1  christos 	/**
    204  1.1  christos 	 * wpa_debug_syslog - Enable log output through syslog
    205  1.1  christos 	 */
    206  1.1  christos 	int wpa_debug_syslog;
    207  1.1  christos 
    208  1.1  christos 	/**
    209  1.2       roy 	 * wpa_debug_tracing - Enable log output through Linux tracing
    210  1.2       roy 	 */
    211  1.2       roy 	int wpa_debug_tracing;
    212  1.2       roy 
    213  1.2       roy 	/**
    214  1.1  christos 	 * override_driver - Optional driver parameter override
    215  1.1  christos 	 *
    216  1.1  christos 	 * This parameter can be used to override the driver parameter in
    217  1.1  christos 	 * dynamic interface addition to force a specific driver wrapper to be
    218  1.1  christos 	 * used instead.
    219  1.1  christos 	 */
    220  1.1  christos 	char *override_driver;
    221  1.1  christos 
    222  1.1  christos 	/**
    223  1.1  christos 	 * override_ctrl_interface - Optional ctrl_interface override
    224  1.1  christos 	 *
    225  1.1  christos 	 * This parameter can be used to override the ctrl_interface parameter
    226  1.1  christos 	 * in dynamic interface addition to force a control interface to be
    227  1.1  christos 	 * created.
    228  1.1  christos 	 */
    229  1.1  christos 	char *override_ctrl_interface;
    230  1.2       roy 
    231  1.2       roy 	/**
    232  1.2       roy 	 * entropy_file - Optional entropy file
    233  1.2       roy 	 *
    234  1.2       roy 	 * This parameter can be used to configure wpa_supplicant to maintain
    235  1.2       roy 	 * its internal entropy store over restarts.
    236  1.2       roy 	 */
    237  1.2       roy 	char *entropy_file;
    238  1.2       roy 
    239  1.3  christos #ifdef CONFIG_P2P
    240  1.3  christos 	/**
    241  1.3  christos 	 * conf_p2p_dev - Configuration file used to hold the
    242  1.3  christos 	 * P2P Device configuration parameters.
    243  1.3  christos 	 *
    244  1.3  christos 	 * This can also be %NULL. In such a case, if a P2P Device dedicated
    245  1.3  christos 	 * interfaces is created, the main configuration file will be used.
    246  1.3  christos 	 */
    247  1.3  christos 	char *conf_p2p_dev;
    248  1.3  christos #endif /* CONFIG_P2P */
    249  1.3  christos 
    250  1.2       roy #ifdef CONFIG_MATCH_IFACE
    251  1.2       roy 	/**
    252  1.2       roy 	 * match_ifaces - Interface descriptions to match
    253  1.2       roy 	 */
    254  1.2       roy 	struct wpa_interface *match_ifaces;
    255  1.2       roy 
    256  1.2       roy 	/**
    257  1.2       roy 	 * match_iface_count - Number of defined matching interfaces
    258  1.2       roy 	 */
    259  1.2       roy 	int match_iface_count;
    260  1.2       roy #endif /* CONFIG_MATCH_IFACE */
    261  1.2       roy };
    262  1.2       roy 
    263  1.2       roy struct p2p_srv_bonjour {
    264  1.2       roy 	struct dl_list list;
    265  1.2       roy 	struct wpabuf *query;
    266  1.2       roy 	struct wpabuf *resp;
    267  1.2       roy };
    268  1.2       roy 
    269  1.2       roy struct p2p_srv_upnp {
    270  1.2       roy 	struct dl_list list;
    271  1.2       roy 	u8 version;
    272  1.2       roy 	char *service;
    273  1.1  christos };
    274  1.1  christos 
    275  1.1  christos /**
    276  1.1  christos  * struct wpa_global - Internal, global data for all %wpa_supplicant interfaces
    277  1.1  christos  *
    278  1.1  christos  * This structure is initialized by calling wpa_supplicant_init() when starting
    279  1.1  christos  * %wpa_supplicant.
    280  1.1  christos  */
    281  1.1  christos struct wpa_global {
    282  1.1  christos 	struct wpa_supplicant *ifaces;
    283  1.1  christos 	struct wpa_params params;
    284  1.1  christos 	struct ctrl_iface_global_priv *ctrl_iface;
    285  1.1  christos 	struct wpas_dbus_priv *dbus;
    286  1.3  christos 	struct wpas_binder_priv *binder;
    287  1.1  christos 	void **drv_priv;
    288  1.1  christos 	size_t drv_count;
    289  1.1  christos 	struct os_time suspend_time;
    290  1.2       roy 	struct p2p_data *p2p;
    291  1.2       roy 	struct wpa_supplicant *p2p_init_wpa_s;
    292  1.2       roy 	struct wpa_supplicant *p2p_group_formation;
    293  1.2       roy 	struct wpa_supplicant *p2p_invite_group;
    294  1.2       roy 	u8 p2p_dev_addr[ETH_ALEN];
    295  1.2       roy 	struct os_reltime p2p_go_wait_client;
    296  1.2       roy 	struct dl_list p2p_srv_bonjour; /* struct p2p_srv_bonjour */
    297  1.2       roy 	struct dl_list p2p_srv_upnp; /* struct p2p_srv_upnp */
    298  1.2       roy 	int p2p_disabled;
    299  1.2       roy 	int cross_connection;
    300  1.7  christos 	int p2p_long_listen; /* remaining time in long Listen state in ms */
    301  1.2       roy 	struct wpa_freq_range_list p2p_disallow_freq;
    302  1.2       roy 	struct wpa_freq_range_list p2p_go_avoid_freq;
    303  1.2       roy 	enum wpa_conc_pref {
    304  1.2       roy 		WPA_CONC_PREF_NOT_SET,
    305  1.2       roy 		WPA_CONC_PREF_STA,
    306  1.2       roy 		WPA_CONC_PREF_P2P
    307  1.2       roy 	} conc_pref;
    308  1.2       roy 	unsigned int p2p_per_sta_psk:1;
    309  1.2       roy 	unsigned int p2p_fail_on_wps_complete:1;
    310  1.2       roy 	unsigned int p2p_24ghz_social_channels:1;
    311  1.2       roy 	unsigned int pending_p2ps_group:1;
    312  1.2       roy 	unsigned int pending_group_iface_for_p2ps:1;
    313  1.3  christos 	unsigned int pending_p2ps_group_freq;
    314  1.2       roy 
    315  1.2       roy #ifdef CONFIG_WIFI_DISPLAY
    316  1.2       roy 	int wifi_display;
    317  1.4  christos #define MAX_WFD_SUBELEMS 12
    318  1.2       roy 	struct wpabuf *wfd_subelem[MAX_WFD_SUBELEMS];
    319  1.2       roy #endif /* CONFIG_WIFI_DISPLAY */
    320  1.2       roy 
    321  1.2       roy 	struct psk_list_entry *add_psk; /* From group formation */
    322  1.2       roy };
    323  1.2       roy 
    324  1.2       roy 
    325  1.2       roy /**
    326  1.2       roy  * struct wpa_radio - Internal data for per-radio information
    327  1.2       roy  *
    328  1.2       roy  * This structure is used to share data about configured interfaces
    329  1.2       roy  * (struct wpa_supplicant) that share the same physical radio, e.g., to allow
    330  1.2       roy  * better coordination of offchannel operations.
    331  1.2       roy  */
    332  1.2       roy struct wpa_radio {
    333  1.2       roy 	char name[16]; /* from driver_ops get_radio_name() or empty if not
    334  1.2       roy 			* available */
    335  1.7  christos 	/** NULL if no external scan running. */
    336  1.7  christos 	struct wpa_supplicant *external_scan_req_interface;
    337  1.3  christos 	unsigned int num_active_works;
    338  1.2       roy 	struct dl_list ifaces; /* struct wpa_supplicant::radio_list entries */
    339  1.2       roy 	struct dl_list work; /* struct wpa_radio_work::list entries */
    340  1.2       roy };
    341  1.2       roy 
    342  1.7  christos /**
    343  1.7  christos  * Checks whether an external scan is running on a given radio.
    344  1.7  christos  * @radio: Pointer to radio struct
    345  1.7  christos  * Returns: true if an external scan is running, false otherwise.
    346  1.7  christos  */
    347  1.7  christos static inline bool external_scan_running(struct wpa_radio *radio)
    348  1.7  christos {
    349  1.7  christos 	return radio && radio->external_scan_req_interface;
    350  1.7  christos }
    351  1.7  christos 
    352  1.3  christos #define MAX_ACTIVE_WORKS 2
    353  1.3  christos 
    354  1.3  christos 
    355  1.2       roy /**
    356  1.2       roy  * struct wpa_radio_work - Radio work item
    357  1.2       roy  */
    358  1.2       roy struct wpa_radio_work {
    359  1.2       roy 	struct dl_list list;
    360  1.2       roy 	unsigned int freq; /* known frequency (MHz) or 0 for multiple/unknown */
    361  1.2       roy 	const char *type;
    362  1.2       roy 	struct wpa_supplicant *wpa_s;
    363  1.2       roy 	void (*cb)(struct wpa_radio_work *work, int deinit);
    364  1.2       roy 	void *ctx;
    365  1.2       roy 	unsigned int started:1;
    366  1.2       roy 	struct os_reltime time;
    367  1.3  christos 	unsigned int bands;
    368  1.2       roy };
    369  1.2       roy 
    370  1.2       roy int radio_add_work(struct wpa_supplicant *wpa_s, unsigned int freq,
    371  1.2       roy 		   const char *type, int next,
    372  1.2       roy 		   void (*cb)(struct wpa_radio_work *work, int deinit),
    373  1.2       roy 		   void *ctx);
    374  1.2       roy void radio_work_done(struct wpa_radio_work *work);
    375  1.2       roy void radio_remove_works(struct wpa_supplicant *wpa_s,
    376  1.2       roy 			const char *type, int remove_all);
    377  1.4  christos void radio_remove_pending_work(struct wpa_supplicant *wpa_s, void *ctx);
    378  1.2       roy void radio_work_check_next(struct wpa_supplicant *wpa_s);
    379  1.2       roy struct wpa_radio_work *
    380  1.2       roy radio_work_pending(struct wpa_supplicant *wpa_s, const char *type);
    381  1.2       roy 
    382  1.2       roy struct wpa_connect_work {
    383  1.2       roy 	unsigned int sme:1;
    384  1.2       roy 	unsigned int bss_removed:1;
    385  1.2       roy 	struct wpa_bss *bss;
    386  1.2       roy 	struct wpa_ssid *ssid;
    387  1.2       roy };
    388  1.2       roy 
    389  1.2       roy int wpas_valid_bss_ssid(struct wpa_supplicant *wpa_s, struct wpa_bss *test_bss,
    390  1.2       roy 			struct wpa_ssid *test_ssid);
    391  1.2       roy void wpas_connect_work_free(struct wpa_connect_work *cwork);
    392  1.2       roy void wpas_connect_work_done(struct wpa_supplicant *wpa_s);
    393  1.2       roy 
    394  1.2       roy struct wpa_external_work {
    395  1.2       roy 	unsigned int id;
    396  1.2       roy 	char type[100];
    397  1.2       roy 	unsigned int timeout;
    398  1.1  christos };
    399  1.1  christos 
    400  1.3  christos enum wpa_radio_work_band wpas_freq_to_band(int freq);
    401  1.3  christos unsigned int wpas_get_bands(struct wpa_supplicant *wpa_s, const int *freqs);
    402  1.3  christos 
    403  1.2       roy /**
    404  1.2       roy  * offchannel_send_action_result - Result of offchannel send Action frame
    405  1.2       roy  */
    406  1.2       roy enum offchannel_send_action_result {
    407  1.2       roy 	OFFCHANNEL_SEND_ACTION_SUCCESS /**< Frame was send and acknowledged */,
    408  1.2       roy 	OFFCHANNEL_SEND_ACTION_NO_ACK /**< Frame was sent, but not acknowledged
    409  1.2       roy 				       */,
    410  1.2       roy 	OFFCHANNEL_SEND_ACTION_FAILED /**< Frame was not sent due to a failure
    411  1.2       roy 				       */
    412  1.2       roy };
    413  1.1  christos 
    414  1.2       roy struct wps_ap_info {
    415  1.2       roy 	u8 bssid[ETH_ALEN];
    416  1.2       roy 	enum wps_ap_info_type {
    417  1.2       roy 		WPS_AP_NOT_SEL_REG,
    418  1.2       roy 		WPS_AP_SEL_REG,
    419  1.2       roy 		WPS_AP_SEL_REG_OUR
    420  1.2       roy 	} type;
    421  1.2       roy 	unsigned int tries;
    422  1.2       roy 	struct os_reltime last_attempt;
    423  1.3  christos 	unsigned int pbc_active;
    424  1.3  christos 	u8 uuid[WPS_UUID_LEN];
    425  1.2       roy };
    426  1.2       roy 
    427  1.2       roy #define WPA_FREQ_USED_BY_INFRA_STATION BIT(0)
    428  1.2       roy #define WPA_FREQ_USED_BY_P2P_CLIENT BIT(1)
    429  1.2       roy 
    430  1.2       roy struct wpa_used_freq_data {
    431  1.2       roy 	int freq;
    432  1.2       roy 	unsigned int flags;
    433  1.2       roy };
    434  1.2       roy 
    435  1.2       roy #define RRM_NEIGHBOR_REPORT_TIMEOUT 1 /* 1 second for AP to send a report */
    436  1.2       roy 
    437  1.2       roy /*
    438  1.2       roy  * struct rrm_data - Data used for managing RRM features
    439  1.2       roy  */
    440  1.2       roy struct rrm_data {
    441  1.2       roy 	/* rrm_used - indication regarding the current connection */
    442  1.2       roy 	unsigned int rrm_used:1;
    443  1.2       roy 
    444  1.2       roy 	/*
    445  1.2       roy 	 * notify_neighbor_rep - Callback for notifying report requester
    446  1.2       roy 	 */
    447  1.2       roy 	void (*notify_neighbor_rep)(void *ctx, struct wpabuf *neighbor_rep);
    448  1.2       roy 
    449  1.2       roy 	/*
    450  1.2       roy 	 * neighbor_rep_cb_ctx - Callback context
    451  1.2       roy 	 * Received in the callback registration, and sent to the callback
    452  1.2       roy 	 * function as a parameter.
    453  1.2       roy 	 */
    454  1.2       roy 	void *neighbor_rep_cb_ctx;
    455  1.2       roy 
    456  1.2       roy 	/* next_neighbor_rep_token - Next request's dialog token */
    457  1.2       roy 	u8 next_neighbor_rep_token;
    458  1.4  christos 
    459  1.4  christos 	/* token - Dialog token of the current radio measurement */
    460  1.4  christos 	u8 token;
    461  1.4  christos 
    462  1.4  christos 	/* destination address of the current radio measurement request */
    463  1.4  christos 	u8 dst_addr[ETH_ALEN];
    464  1.2       roy };
    465  1.2       roy 
    466  1.2       roy enum wpa_supplicant_test_failure {
    467  1.2       roy 	WPAS_TEST_FAILURE_NONE,
    468  1.2       roy 	WPAS_TEST_FAILURE_SCAN_TRIGGER,
    469  1.1  christos };
    470  1.1  christos 
    471  1.3  christos struct icon_entry {
    472  1.3  christos 	struct dl_list list;
    473  1.3  christos 	u8 bssid[ETH_ALEN];
    474  1.3  christos 	u8 dialog_token;
    475  1.3  christos 	char *file_name;
    476  1.3  christos 	u8 *image;
    477  1.3  christos 	size_t image_len;
    478  1.3  christos };
    479  1.3  christos 
    480  1.3  christos struct wpa_bss_tmp_disallowed {
    481  1.3  christos 	struct dl_list list;
    482  1.3  christos 	u8 bssid[ETH_ALEN];
    483  1.6  christos 	int rssi_threshold;
    484  1.4  christos };
    485  1.4  christos 
    486  1.4  christos struct beacon_rep_data {
    487  1.4  christos 	u8 token;
    488  1.6  christos 	u8 last_indication;
    489  1.4  christos 	struct wpa_driver_scan_params scan_params;
    490  1.4  christos 	u8 ssid[SSID_MAX_LEN];
    491  1.4  christos 	size_t ssid_len;
    492  1.4  christos 	u8 bssid[ETH_ALEN];
    493  1.4  christos 	enum beacon_report_detail report_detail;
    494  1.4  christos 	struct bitfield *eids;
    495  1.7  christos 	struct bitfield *ext_eids;
    496  1.4  christos };
    497  1.4  christos 
    498  1.4  christos 
    499  1.4  christos struct external_pmksa_cache {
    500  1.4  christos 	struct dl_list list;
    501  1.4  christos 	void *pmksa_cache;
    502  1.4  christos };
    503  1.4  christos 
    504  1.4  christos struct fils_hlp_req {
    505  1.4  christos 	struct dl_list list;
    506  1.4  christos 	u8 dst[ETH_ALEN];
    507  1.4  christos 	struct wpabuf *pkt;
    508  1.3  christos };
    509  1.3  christos 
    510  1.7  christos struct driver_signal_override {
    511  1.7  christos 	struct dl_list list;
    512  1.7  christos 	u8 bssid[ETH_ALEN];
    513  1.7  christos 	int si_current_signal;
    514  1.7  christos 	int si_avg_signal;
    515  1.7  christos 	int si_avg_beacon_signal;
    516  1.7  christos 	int si_current_noise;
    517  1.7  christos 	int scan_level;
    518  1.7  christos };
    519  1.7  christos 
    520  1.7  christos struct robust_av_data {
    521  1.7  christos 	u8 dialog_token;
    522  1.7  christos 	enum scs_request_type request_type;
    523  1.7  christos 	u8 up_bitmap;
    524  1.7  christos 	u8 up_limit;
    525  1.7  christos 	u32 stream_timeout;
    526  1.7  christos 	u8 frame_classifier[48];
    527  1.7  christos 	size_t frame_classifier_len;
    528  1.7  christos 	bool valid_config;
    529  1.7  christos };
    530  1.7  christos 
    531  1.7  christos struct dscp_policy_status {
    532  1.7  christos 	u8 id;
    533  1.7  christos 	u8 status;
    534  1.7  christos };
    535  1.7  christos 
    536  1.7  christos struct dscp_resp_data {
    537  1.7  christos 	bool more;
    538  1.7  christos 	bool reset;
    539  1.7  christos 	bool solicited;
    540  1.7  christos 	struct dscp_policy_status *policy;
    541  1.7  christos 	int num_policies;
    542  1.7  christos };
    543  1.7  christos 
    544  1.7  christos enum ip_version {
    545  1.7  christos 	IPV4 = 4,
    546  1.7  christos 	IPV6 = 6,
    547  1.7  christos };
    548  1.7  christos 
    549  1.7  christos 
    550  1.7  christos struct ipv4_params {
    551  1.7  christos 	struct in_addr src_ip;
    552  1.7  christos 	struct in_addr dst_ip;
    553  1.7  christos 	u16 src_port;
    554  1.7  christos 	u16 dst_port;
    555  1.7  christos 	u8 dscp;
    556  1.7  christos 	u8 protocol;
    557  1.7  christos };
    558  1.7  christos 
    559  1.7  christos 
    560  1.7  christos struct ipv6_params {
    561  1.7  christos 	struct in6_addr src_ip;
    562  1.7  christos 	struct in6_addr dst_ip;
    563  1.7  christos 	u16 src_port;
    564  1.7  christos 	u16 dst_port;
    565  1.7  christos 	u8 dscp;
    566  1.7  christos 	u8 next_header;
    567  1.7  christos 	u8 flow_label[3];
    568  1.7  christos };
    569  1.7  christos 
    570  1.7  christos 
    571  1.7  christos struct type4_params {
    572  1.7  christos 	u8 classifier_mask;
    573  1.7  christos 	enum ip_version ip_version;
    574  1.7  christos 	union {
    575  1.7  christos 		struct ipv4_params v4;
    576  1.7  christos 		struct ipv6_params v6;
    577  1.7  christos 	} ip_params;
    578  1.7  christos };
    579  1.7  christos 
    580  1.7  christos 
    581  1.7  christos struct type10_params {
    582  1.7  christos 	u8 prot_instance;
    583  1.7  christos 	u8 prot_number;
    584  1.7  christos 	u8 *filter_value;
    585  1.7  christos 	u8 *filter_mask;
    586  1.7  christos 	size_t filter_len;
    587  1.7  christos };
    588  1.7  christos 
    589  1.7  christos 
    590  1.7  christos struct tclas_element {
    591  1.7  christos 	u8 user_priority;
    592  1.7  christos 	u8 classifier_type;
    593  1.7  christos 	union {
    594  1.7  christos 		struct type4_params type4_param;
    595  1.7  christos 		struct type10_params type10_param;
    596  1.7  christos 	} frame_classifier;
    597  1.7  christos };
    598  1.7  christos 
    599  1.7  christos 
    600  1.7  christos struct qos_characteristics {
    601  1.7  christos 	bool available;
    602  1.7  christos 
    603  1.7  christos 	/* Control Info Direction */
    604  1.7  christos 	u8 direction;
    605  1.7  christos 	/* Presence Bitmap Of Additional Parameters */
    606  1.7  christos 	u16 mask;
    607  1.7  christos 	/* Minimum Service Interval */
    608  1.7  christos 	u32 min_si;
    609  1.7  christos 	/* Maximum Service Interval */
    610  1.7  christos 	u32 max_si;
    611  1.7  christos 	/* Minimum Data Rate */
    612  1.7  christos 	u32 min_data_rate;
    613  1.7  christos 	/* Delay Bound */
    614  1.7  christos 	u32 delay_bound;
    615  1.7  christos 	/* Maximum MSDU Size */
    616  1.7  christos 	u16 max_msdu_size;
    617  1.7  christos 	/* Service Start Time */
    618  1.7  christos 	u32 service_start_time;
    619  1.7  christos 	/* Service Start Time LinkID */
    620  1.7  christos 	u8 service_start_time_link_id;
    621  1.7  christos 	/* Mean Data Rate */
    622  1.7  christos 	u32 mean_data_rate;
    623  1.7  christos 	/* Delayed Bounded Burst Size */
    624  1.7  christos 	u32 burst_size;
    625  1.7  christos 	/* MSDU Lifetime */
    626  1.7  christos 	u16 msdu_lifetime;
    627  1.7  christos 	/* MSDU Delivery Info */
    628  1.7  christos 	u8 msdu_delivery_info;
    629  1.7  christos 	/* Medium Time */
    630  1.7  christos 	u16 medium_time;
    631  1.7  christos };
    632  1.7  christos 
    633  1.7  christos 
    634  1.7  christos struct scs_desc_elem {
    635  1.7  christos 	u8 scs_id;
    636  1.7  christos 	enum scs_request_type request_type;
    637  1.7  christos 	u8 intra_access_priority;
    638  1.7  christos 	bool scs_up_avail;
    639  1.7  christos 	struct tclas_element *tclas_elems;
    640  1.7  christos 	unsigned int num_tclas_elem;
    641  1.7  christos 	u8 tclas_processing;
    642  1.7  christos 	struct qos_characteristics qos_char_elem;
    643  1.7  christos };
    644  1.7  christos 
    645  1.7  christos 
    646  1.7  christos struct scs_robust_av_data {
    647  1.7  christos 	struct scs_desc_elem *scs_desc_elems;
    648  1.7  christos 	unsigned int num_scs_desc;
    649  1.7  christos };
    650  1.7  christos 
    651  1.7  christos 
    652  1.7  christos enum scs_response_status {
    653  1.7  christos 	SCS_DESC_SENT = 0,
    654  1.7  christos 	SCS_DESC_SUCCESS = 1,
    655  1.7  christos };
    656  1.7  christos 
    657  1.7  christos 
    658  1.7  christos struct active_scs_elem {
    659  1.7  christos 	struct dl_list list;
    660  1.7  christos 	u8 scs_id;
    661  1.7  christos 	enum scs_response_status status;
    662  1.7  christos };
    663  1.7  christos 
    664  1.7  christos 
    665  1.7  christos struct ml_sta_link_info {
    666  1.7  christos 	u8 link_id;
    667  1.7  christos 	u8 bssid[ETH_ALEN];
    668  1.7  christos 	u16 status;
    669  1.7  christos };
    670  1.7  christos 
    671  1.7  christos 
    672  1.1  christos /**
    673  1.1  christos  * struct wpa_supplicant - Internal data for wpa_supplicant interface
    674  1.1  christos  *
    675  1.1  christos  * This structure contains the internal data for core wpa_supplicant code. This
    676  1.1  christos  * should be only used directly from the core code. However, a pointer to this
    677  1.1  christos  * data is used from other files as an arbitrary context pointer in calls to
    678  1.1  christos  * core functions.
    679  1.1  christos  */
    680  1.1  christos struct wpa_supplicant {
    681  1.1  christos 	struct wpa_global *global;
    682  1.2       roy 	struct wpa_radio *radio; /* shared radio context */
    683  1.2       roy 	struct dl_list radio_list; /* list head: struct wpa_radio::ifaces */
    684  1.2       roy 	struct wpa_supplicant *parent;
    685  1.3  christos 	struct wpa_supplicant *p2pdev;
    686  1.1  christos 	struct wpa_supplicant *next;
    687  1.1  christos 	struct l2_packet_data *l2;
    688  1.1  christos 	struct l2_packet_data *l2_br;
    689  1.6  christos 	struct os_reltime roam_start;
    690  1.6  christos 	struct os_reltime roam_time;
    691  1.6  christos 	struct os_reltime session_start;
    692  1.6  christos 	struct os_reltime session_length;
    693  1.1  christos 	unsigned char own_addr[ETH_ALEN];
    694  1.2       roy 	unsigned char perm_addr[ETH_ALEN];
    695  1.1  christos 	char ifname[100];
    696  1.2       roy #ifdef CONFIG_MATCH_IFACE
    697  1.2       roy 	int matched;
    698  1.2       roy #endif /* CONFIG_MATCH_IFACE */
    699  1.1  christos #ifdef CONFIG_CTRL_IFACE_DBUS_NEW
    700  1.1  christos 	char *dbus_new_path;
    701  1.2       roy 	char *dbus_groupobj_path;
    702  1.2       roy #ifdef CONFIG_AP
    703  1.2       roy 	char *preq_notify_peer;
    704  1.2       roy #endif /* CONFIG_AP */
    705  1.1  christos #endif /* CONFIG_CTRL_IFACE_DBUS_NEW */
    706  1.3  christos #ifdef CONFIG_CTRL_IFACE_BINDER
    707  1.3  christos 	const void *binder_object_key;
    708  1.3  christos #endif /* CONFIG_CTRL_IFACE_BINDER */
    709  1.1  christos 	char bridge_ifname[16];
    710  1.1  christos 
    711  1.1  christos 	char *confname;
    712  1.2       roy 	char *confanother;
    713  1.2       roy 
    714  1.1  christos 	struct wpa_config *conf;
    715  1.1  christos 	int countermeasures;
    716  1.2       roy 	struct os_reltime last_michael_mic_error;
    717  1.1  christos 	u8 bssid[ETH_ALEN];
    718  1.1  christos 	u8 pending_bssid[ETH_ALEN]; /* If wpa_state == WPA_ASSOCIATING, this
    719  1.2       roy 				     * field contains the target BSSID. */
    720  1.1  christos 	int reassociate; /* reassociation requested */
    721  1.7  christos 	bool roam_in_progress; /* roam in progress */
    722  1.3  christos 	unsigned int reassoc_same_bss:1; /* reassociating to the same BSS */
    723  1.3  christos 	unsigned int reassoc_same_ess:1; /* reassociating to the same ESS */
    724  1.1  christos 	int disconnected; /* all connections disabled; i.e., do no reassociate
    725  1.1  christos 			   * before this has been cleared */
    726  1.1  christos 	struct wpa_ssid *current_ssid;
    727  1.2       roy 	struct wpa_ssid *last_ssid;
    728  1.1  christos 	struct wpa_bss *current_bss;
    729  1.1  christos 	int ap_ies_from_associnfo;
    730  1.1  christos 	unsigned int assoc_freq;
    731  1.7  christos 	u8 ap_mld_addr[ETH_ALEN];
    732  1.7  christos 	u8 mlo_assoc_link_id;
    733  1.7  christos 	u16 valid_links; /* bitmap of valid MLO link IDs */
    734  1.7  christos 	struct {
    735  1.7  christos 		u8 addr[ETH_ALEN];
    736  1.7  christos 		u8 bssid[ETH_ALEN];
    737  1.7  christos 		unsigned int freq;
    738  1.7  christos 		struct wpa_bss *bss;
    739  1.7  christos 		bool disabled;
    740  1.7  christos 	} links[MAX_NUM_MLD_LINKS];
    741  1.4  christos 	u8 *last_con_fail_realm;
    742  1.4  christos 	size_t last_con_fail_realm_len;
    743  1.1  christos 
    744  1.1  christos 	/* Selected configuration (based on Beacon/ProbeResp WPA IE) */
    745  1.1  christos 	int pairwise_cipher;
    746  1.7  christos 	int deny_ptk0_rekey;
    747  1.1  christos 	int group_cipher;
    748  1.1  christos 	int key_mgmt;
    749  1.2       roy 	int wpa_proto;
    750  1.1  christos 	int mgmt_group_cipher;
    751  1.7  christos 	/*
    752  1.7  christos 	 * Allowed key management suites for roaming/initial connection
    753  1.7  christos 	 * when the driver's SME is in use.
    754  1.7  christos 	 */
    755  1.7  christos 	int allowed_key_mgmts;
    756  1.1  christos 
    757  1.1  christos 	void *drv_priv; /* private data used by driver_ops */
    758  1.1  christos 	void *global_drv_priv;
    759  1.1  christos 
    760  1.2       roy 	u8 *bssid_filter;
    761  1.2       roy 	size_t bssid_filter_count;
    762  1.2       roy 
    763  1.2       roy 	u8 *disallow_aps_bssid;
    764  1.2       roy 	size_t disallow_aps_bssid_count;
    765  1.2       roy 	struct wpa_ssid_value *disallow_aps_ssid;
    766  1.2       roy 	size_t disallow_aps_ssid_count;
    767  1.2       roy 
    768  1.7  christos 	u32 setband_mask;
    769  1.2       roy 
    770  1.2       roy 	/* Preferred network for the next connection attempt */
    771  1.2       roy 	struct wpa_ssid *next_ssid;
    772  1.2       roy 
    773  1.2       roy 	/* previous scan was wildcard when interleaving between
    774  1.2       roy 	 * wildcard scans and specific SSID scan when max_ssids=1 */
    775  1.2       roy 	int prev_scan_wildcard;
    776  1.1  christos 	struct wpa_ssid *prev_scan_ssid; /* previously scanned SSID;
    777  1.1  christos 					  * NULL = not yet initialized (start
    778  1.1  christos 					  * with wildcard SSID)
    779  1.1  christos 					  * WILDCARD_SSID_SCAN = wildcard
    780  1.1  christos 					  * SSID was used in the previous scan
    781  1.1  christos 					  */
    782  1.1  christos #define WILDCARD_SSID_SCAN ((struct wpa_ssid *) 1)
    783  1.1  christos 
    784  1.2       roy 	struct wpa_ssid *prev_sched_ssid; /* last SSID used in sched scan */
    785  1.2       roy 	int sched_scan_timeout;
    786  1.2       roy 	int first_sched_scan;
    787  1.2       roy 	int sched_scan_timed_out;
    788  1.3  christos 	struct sched_scan_plan *sched_scan_plans;
    789  1.3  christos 	size_t sched_scan_plans_num;
    790  1.2       roy 
    791  1.1  christos 	void (*scan_res_handler)(struct wpa_supplicant *wpa_s,
    792  1.1  christos 				 struct wpa_scan_results *scan_res);
    793  1.7  christos 	void (*scan_res_fail_handler)(struct wpa_supplicant *wpa_s);
    794  1.1  christos 	struct dl_list bss; /* struct wpa_bss::list */
    795  1.1  christos 	struct dl_list bss_id; /* struct wpa_bss::list_id */
    796  1.1  christos 	size_t num_bss;
    797  1.1  christos 	unsigned int bss_update_idx;
    798  1.1  christos 	unsigned int bss_next_id;
    799  1.1  christos 
    800  1.2       roy 	 /*
    801  1.2       roy 	  * Pointers to BSS entries in the order they were in the last scan
    802  1.2       roy 	  * results.
    803  1.2       roy 	  */
    804  1.2       roy 	struct wpa_bss **last_scan_res;
    805  1.7  christos 	size_t last_scan_res_used;
    806  1.7  christos 	size_t last_scan_res_size;
    807  1.2       roy 	struct os_reltime last_scan;
    808  1.2       roy 
    809  1.3  christos 	const struct wpa_driver_ops *driver;
    810  1.1  christos 	int interface_removed; /* whether the network interface has been
    811  1.1  christos 				* removed */
    812  1.1  christos 	struct wpa_sm *wpa;
    813  1.7  christos 	struct ptksa_cache *ptksa;
    814  1.7  christos 
    815  1.1  christos 	struct eapol_sm *eapol;
    816  1.1  christos 
    817  1.1  christos 	struct ctrl_iface_priv *ctrl_iface;
    818  1.1  christos 
    819  1.1  christos 	enum wpa_states wpa_state;
    820  1.2       roy 	struct wpa_radio_work *scan_work;
    821  1.1  christos 	int scanning;
    822  1.2       roy 	int sched_scanning;
    823  1.3  christos 	unsigned int sched_scan_stop_req:1;
    824  1.1  christos 	int new_connection;
    825  1.1  christos 
    826  1.1  christos 	int eapol_received; /* number of EAPOL packets received after the
    827  1.1  christos 			     * previous association event */
    828  1.1  christos 
    829  1.7  christos 	u8 rsnxe[20];
    830  1.7  christos 	size_t rsnxe_len;
    831  1.7  christos 
    832  1.1  christos 	struct scard_data *scard;
    833  1.2       roy 	char imsi[20];
    834  1.2       roy 	int mnc_len;
    835  1.1  christos 
    836  1.1  christos 	unsigned char last_eapol_src[ETH_ALEN];
    837  1.1  christos 
    838  1.2       roy 	unsigned int keys_cleared; /* bitfield of key indexes that the driver is
    839  1.2       roy 				    * known not to be configured with a key */
    840  1.1  christos 
    841  1.7  christos 	struct wpa_bssid_ignore *bssid_ignore;
    842  1.1  christos 
    843  1.7  christos 	/* Number of connection failures since last successful connection */
    844  1.7  christos 	unsigned int consecutive_conn_failures;
    845  1.2       roy 
    846  1.2       roy 	/**
    847  1.2       roy 	 * scan_req - Type of the scan request
    848  1.2       roy 	 */
    849  1.2       roy 	enum scan_req_type {
    850  1.2       roy 		/**
    851  1.2       roy 		 * NORMAL_SCAN_REQ - Normal scan request
    852  1.2       roy 		 *
    853  1.2       roy 		 * This is used for scans initiated by wpa_supplicant to find an
    854  1.2       roy 		 * AP for a connection.
    855  1.2       roy 		 */
    856  1.2       roy 		NORMAL_SCAN_REQ,
    857  1.2       roy 
    858  1.2       roy 		/**
    859  1.2       roy 		 * INITIAL_SCAN_REQ - Initial scan request
    860  1.2       roy 		 *
    861  1.2       roy 		 * This is used for the first scan on an interface to force at
    862  1.2       roy 		 * least one scan to be run even if the configuration does not
    863  1.2       roy 		 * include any enabled networks.
    864  1.2       roy 		 */
    865  1.2       roy 		INITIAL_SCAN_REQ,
    866  1.2       roy 
    867  1.2       roy 		/**
    868  1.2       roy 		 * MANUAL_SCAN_REQ - Manual scan request
    869  1.2       roy 		 *
    870  1.2       roy 		 * This is used for scans where the user request a scan or
    871  1.2       roy 		 * a specific wpa_supplicant operation (e.g., WPS) requires scan
    872  1.2       roy 		 * to be run.
    873  1.2       roy 		 */
    874  1.2       roy 		MANUAL_SCAN_REQ
    875  1.2       roy 	} scan_req, last_scan_req;
    876  1.2       roy 	enum wpa_states scan_prev_wpa_state;
    877  1.2       roy 	struct os_reltime scan_trigger_time, scan_start_time;
    878  1.3  christos 	/* Minimum freshness requirement for connection purposes */
    879  1.3  christos 	struct os_reltime scan_min_time;
    880  1.1  christos 	int scan_runs; /* number of scan runs since WPS was started */
    881  1.2       roy 	int *next_scan_freqs;
    882  1.4  christos 	int *select_network_scan_freqs;
    883  1.2       roy 	int *manual_scan_freqs;
    884  1.2       roy 	int *manual_sched_scan_freqs;
    885  1.2       roy 	unsigned int manual_scan_passive:1;
    886  1.2       roy 	unsigned int manual_scan_use_id:1;
    887  1.2       roy 	unsigned int manual_scan_only_new:1;
    888  1.2       roy 	unsigned int own_scan_requested:1;
    889  1.2       roy 	unsigned int own_scan_running:1;
    890  1.2       roy 	unsigned int clear_driver_scan_cache:1;
    891  1.7  christos 	unsigned int manual_non_coloc_6ghz:1;
    892  1.2       roy 	unsigned int manual_scan_id;
    893  1.2       roy 	int scan_interval; /* time in sec between scans to find suitable AP */
    894  1.2       roy 	int normal_scans; /* normal scans run before sched_scan */
    895  1.2       roy 	int scan_for_connection; /* whether the scan request was triggered for
    896  1.2       roy 				  * finding a connection */
    897  1.4  christos 	/*
    898  1.4  christos 	 * A unique cookie representing the vendor scan request. This cookie is
    899  1.4  christos 	 * returned from the driver interface. 0 indicates that there is no
    900  1.4  christos 	 * pending vendor scan request.
    901  1.4  christos 	 */
    902  1.4  christos 	u64 curr_scan_cookie;
    903  1.2       roy #define MAX_SCAN_ID 16
    904  1.2       roy 	int scan_id[MAX_SCAN_ID];
    905  1.2       roy 	unsigned int scan_id_count;
    906  1.3  christos 	u8 next_scan_bssid[ETH_ALEN];
    907  1.7  christos 	unsigned int next_scan_bssid_wildcard_ssid:1;
    908  1.3  christos 
    909  1.3  christos 	struct wpa_ssid_value *ssids_from_scan_req;
    910  1.3  christos 	unsigned int num_ssids_from_scan_req;
    911  1.7  christos 	int *last_scan_freqs;
    912  1.7  christos 	unsigned int num_last_scan_freqs;
    913  1.7  christos 	unsigned int suitable_network;
    914  1.7  christos 	unsigned int no_suitable_network;
    915  1.7  christos 
    916  1.7  christos 	u8 ml_probe_bssid[ETH_ALEN];
    917  1.7  christos 	int ml_probe_mld_id;
    918  1.7  christos 	u16 ml_probe_links;
    919  1.2       roy 
    920  1.2       roy 	u64 drv_flags;
    921  1.7  christos 	u64 drv_flags2;
    922  1.2       roy 	unsigned int drv_enc;
    923  1.2       roy 	unsigned int drv_rrm_flags;
    924  1.7  christos 	unsigned int drv_max_acl_mac_addrs;
    925  1.2       roy 
    926  1.2       roy 	/*
    927  1.2       roy 	 * A bitmap of supported protocols for probe response offload. See
    928  1.2       roy 	 * struct wpa_driver_capa in driver.h
    929  1.2       roy 	 */
    930  1.2       roy 	unsigned int probe_resp_offloads;
    931  1.2       roy 
    932  1.2       roy 	/* extended capabilities supported by the driver */
    933  1.2       roy 	const u8 *extended_capa, *extended_capa_mask;
    934  1.2       roy 	unsigned int extended_capa_len;
    935  1.1  christos 
    936  1.1  christos 	int max_scan_ssids;
    937  1.2       roy 	int max_sched_scan_ssids;
    938  1.3  christos 	unsigned int max_sched_scan_plans;
    939  1.3  christos 	unsigned int max_sched_scan_plan_interval;
    940  1.3  christos 	unsigned int max_sched_scan_plan_iterations;
    941  1.2       roy 	int sched_scan_supported;
    942  1.2       roy 	unsigned int max_match_sets;
    943  1.1  christos 	unsigned int max_remain_on_chan;
    944  1.2       roy 	unsigned int max_stations;
    945  1.7  christos 	unsigned int max_num_akms;
    946  1.1  christos 
    947  1.1  christos 	int pending_mic_error_report;
    948  1.1  christos 	int pending_mic_error_pairwise;
    949  1.1  christos 	int mic_errors_seen; /* Michael MIC errors with the current PTK */
    950  1.1  christos 
    951  1.1  christos 	struct wps_context *wps;
    952  1.1  christos 	int wps_success; /* WPS success event received */
    953  1.1  christos 	struct wps_er *wps_er;
    954  1.2       roy 	unsigned int wps_run;
    955  1.3  christos 	struct os_reltime wps_pin_start_time;
    956  1.7  christos 	bool bssid_ignore_cleared;
    957  1.1  christos 
    958  1.1  christos 	struct wpabuf *pending_eapol_rx;
    959  1.2       roy 	struct os_reltime pending_eapol_rx_time;
    960  1.1  christos 	u8 pending_eapol_rx_src[ETH_ALEN];
    961  1.7  christos 	enum frame_encryption pending_eapol_encrypted;
    962  1.2       roy 	unsigned int last_eapol_matches_bssid:1;
    963  1.7  christos 	unsigned int eapol_failed:1;
    964  1.2       roy 	unsigned int eap_expected_failure:1;
    965  1.2       roy 	unsigned int reattach:1; /* reassociation to the same BSS requested */
    966  1.2       roy 	unsigned int mac_addr_changed:1;
    967  1.3  christos 	unsigned int added_vif:1;
    968  1.3  christos 	unsigned int wnmsleep_used:1;
    969  1.4  christos 	unsigned int owe_transition_select:1;
    970  1.4  christos 	unsigned int owe_transition_search:1;
    971  1.6  christos 	unsigned int connection_set:1;
    972  1.6  christos 	unsigned int connection_ht:1;
    973  1.6  christos 	unsigned int connection_vht:1;
    974  1.6  christos 	unsigned int connection_he:1;
    975  1.7  christos 	unsigned int connection_eht:1;
    976  1.7  christos 	unsigned int disable_mbo_oce:1;
    977  1.2       roy 
    978  1.2       roy 	struct os_reltime last_mac_addr_change;
    979  1.7  christos 	enum wpas_mac_addr_style last_mac_addr_style;
    980  1.1  christos 
    981  1.1  christos 	struct ibss_rsn *ibss_rsn;
    982  1.1  christos 
    983  1.2       roy 	int set_sta_uapsd;
    984  1.2       roy 	int sta_uapsd;
    985  1.2       roy 	int set_ap_uapsd;
    986  1.2       roy 	int ap_uapsd;
    987  1.4  christos 	int auth_alg;
    988  1.4  christos 	u16 last_owe_group;
    989  1.2       roy 
    990  1.1  christos #ifdef CONFIG_SME
    991  1.1  christos 	struct {
    992  1.3  christos 		u8 ssid[SSID_MAX_LEN];
    993  1.1  christos 		size_t ssid_len;
    994  1.1  christos 		int freq;
    995  1.4  christos 		u8 assoc_req_ie[1500];
    996  1.1  christos 		size_t assoc_req_ie_len;
    997  1.1  christos 		int mfp;
    998  1.1  christos 		int ft_used;
    999  1.1  christos 		u8 mobility_domain[2];
   1000  1.1  christos 		u8 *ft_ies;
   1001  1.1  christos 		size_t ft_ies_len;
   1002  1.1  christos 		u8 prev_bssid[ETH_ALEN];
   1003  1.1  christos 		int prev_bssid_set;
   1004  1.1  christos 		int auth_alg;
   1005  1.2       roy 		int proto;
   1006  1.2       roy 
   1007  1.2       roy 		int sa_query_count; /* number of pending SA Query requests;
   1008  1.2       roy 				     * 0 = no SA Query in progress */
   1009  1.2       roy 		int sa_query_timed_out;
   1010  1.2       roy 		u8 *sa_query_trans_id; /* buffer of WLAN_SA_QUERY_TR_ID_LEN *
   1011  1.2       roy 					* sa_query_count octets of pending
   1012  1.2       roy 					* SA Query transaction identifiers */
   1013  1.2       roy 		struct os_reltime sa_query_start;
   1014  1.2       roy 		struct os_reltime last_unprot_disconnect;
   1015  1.2       roy 		enum { HT_SEC_CHAN_UNKNOWN,
   1016  1.2       roy 		       HT_SEC_CHAN_ABOVE,
   1017  1.2       roy 		       HT_SEC_CHAN_BELOW } ht_sec_chan;
   1018  1.2       roy 		u8 sched_obss_scan;
   1019  1.2       roy 		u16 obss_scan_int;
   1020  1.2       roy 		u16 bss_max_idle_period;
   1021  1.2       roy #ifdef CONFIG_SAE
   1022  1.2       roy 		struct sae_data sae;
   1023  1.2       roy 		struct wpabuf *sae_token;
   1024  1.2       roy 		int sae_group_index;
   1025  1.2       roy 		unsigned int sae_pmksa_caching:1;
   1026  1.4  christos 		u16 seq_num;
   1027  1.6  christos 		u8 ext_auth_bssid[ETH_ALEN];
   1028  1.7  christos 		struct wpa_ssid *ext_auth_wpa_ssid;
   1029  1.6  christos 		u8 ext_auth_ssid[SSID_MAX_LEN];
   1030  1.6  christos 		size_t ext_auth_ssid_len;
   1031  1.7  christos 		int ext_auth_key_mgmt;
   1032  1.7  christos 		u8 ext_auth_ap_mld_addr[ETH_ALEN];
   1033  1.7  christos 		bool ext_ml_auth;
   1034  1.7  christos 		int *sae_rejected_groups;
   1035  1.2       roy #endif /* CONFIG_SAE */
   1036  1.7  christos 		u16 assoc_auth_type;
   1037  1.1  christos 	} sme;
   1038  1.1  christos #endif /* CONFIG_SME */
   1039  1.1  christos 
   1040  1.1  christos #ifdef CONFIG_AP
   1041  1.1  christos 	struct hostapd_iface *ap_iface;
   1042  1.1  christos 	void (*ap_configured_cb)(void *ctx, void *data);
   1043  1.1  christos 	void *ap_configured_cb_ctx;
   1044  1.1  christos 	void *ap_configured_cb_data;
   1045  1.1  christos #endif /* CONFIG_AP */
   1046  1.1  christos 
   1047  1.2       roy 	struct hostapd_iface *ifmsh;
   1048  1.2       roy #ifdef CONFIG_MESH
   1049  1.2       roy 	struct mesh_rsn *mesh_rsn;
   1050  1.2       roy 	int mesh_if_idx;
   1051  1.2       roy 	unsigned int mesh_if_created:1;
   1052  1.2       roy 	unsigned int mesh_ht_enabled:1;
   1053  1.3  christos 	unsigned int mesh_vht_enabled:1;
   1054  1.6  christos 	unsigned int mesh_he_enabled:1;
   1055  1.7  christos 	unsigned int mesh_eht_enabled:1;
   1056  1.6  christos 	struct wpa_driver_mesh_join_params *mesh_params;
   1057  1.4  christos #ifdef CONFIG_PMKSA_CACHE_EXTERNAL
   1058  1.4  christos 	/* struct external_pmksa_cache::list */
   1059  1.4  christos 	struct dl_list mesh_external_pmksa_cache;
   1060  1.4  christos #endif /* CONFIG_PMKSA_CACHE_EXTERNAL */
   1061  1.2       roy #endif /* CONFIG_MESH */
   1062  1.2       roy 
   1063  1.2       roy 	unsigned int off_channel_freq;
   1064  1.2       roy 	struct wpabuf *pending_action_tx;
   1065  1.2       roy 	u8 pending_action_src[ETH_ALEN];
   1066  1.2       roy 	u8 pending_action_dst[ETH_ALEN];
   1067  1.2       roy 	u8 pending_action_bssid[ETH_ALEN];
   1068  1.2       roy 	unsigned int pending_action_freq;
   1069  1.2       roy 	int pending_action_no_cck;
   1070  1.2       roy 	int pending_action_without_roc;
   1071  1.2       roy 	unsigned int pending_action_tx_done:1;
   1072  1.2       roy 	void (*pending_action_tx_status_cb)(struct wpa_supplicant *wpa_s,
   1073  1.2       roy 					    unsigned int freq, const u8 *dst,
   1074  1.2       roy 					    const u8 *src, const u8 *bssid,
   1075  1.2       roy 					    const u8 *data, size_t data_len,
   1076  1.2       roy 					    enum offchannel_send_action_result
   1077  1.2       roy 					    result);
   1078  1.2       roy 	unsigned int roc_waiting_drv_freq;
   1079  1.2       roy 	int action_tx_wait_time;
   1080  1.4  christos 	int action_tx_wait_time_used;
   1081  1.2       roy 
   1082  1.2       roy 	int p2p_mgmt;
   1083  1.2       roy 
   1084  1.2       roy #ifdef CONFIG_P2P
   1085  1.2       roy 	struct p2p_go_neg_results *go_params;
   1086  1.2       roy 	int create_p2p_iface;
   1087  1.2       roy 	u8 pending_interface_addr[ETH_ALEN];
   1088  1.2       roy 	char pending_interface_name[100];
   1089  1.2       roy 	int pending_interface_type;
   1090  1.2       roy 	int p2p_group_idx;
   1091  1.2       roy 	unsigned int pending_listen_freq;
   1092  1.2       roy 	unsigned int pending_listen_duration;
   1093  1.2       roy 	enum {
   1094  1.2       roy 		NOT_P2P_GROUP_INTERFACE,
   1095  1.2       roy 		P2P_GROUP_INTERFACE_PENDING,
   1096  1.2       roy 		P2P_GROUP_INTERFACE_GO,
   1097  1.2       roy 		P2P_GROUP_INTERFACE_CLIENT
   1098  1.2       roy 	} p2p_group_interface;
   1099  1.2       roy 	struct p2p_group *p2p_group;
   1100  1.2       roy 	char p2p_pin[10];
   1101  1.2       roy 	int p2p_wps_method;
   1102  1.2       roy 	u8 p2p_auth_invite[ETH_ALEN];
   1103  1.2       roy 	int p2p_sd_over_ctrl_iface;
   1104  1.2       roy 	int p2p_in_provisioning;
   1105  1.2       roy 	int p2p_in_invitation;
   1106  1.7  christos 	int p2p_retry_limit;
   1107  1.2       roy 	int p2p_invite_go_freq;
   1108  1.2       roy 	int pending_invite_ssid_id;
   1109  1.2       roy 	int show_group_started;
   1110  1.2       roy 	u8 go_dev_addr[ETH_ALEN];
   1111  1.2       roy 	int pending_pd_before_join;
   1112  1.2       roy 	u8 pending_join_iface_addr[ETH_ALEN];
   1113  1.2       roy 	u8 pending_join_dev_addr[ETH_ALEN];
   1114  1.2       roy 	int pending_join_wps_method;
   1115  1.3  christos 	u8 p2p_join_ssid[SSID_MAX_LEN];
   1116  1.2       roy 	size_t p2p_join_ssid_len;
   1117  1.2       roy 	int p2p_join_scan_count;
   1118  1.2       roy 	int auto_pd_scan_retry;
   1119  1.2       roy 	int force_long_sd;
   1120  1.2       roy 	u16 pending_pd_config_methods;
   1121  1.2       roy 	enum {
   1122  1.2       roy 		NORMAL_PD, AUTO_PD_GO_NEG, AUTO_PD_JOIN, AUTO_PD_ASP
   1123  1.2       roy 	} pending_pd_use;
   1124  1.2       roy 
   1125  1.2       roy 	/*
   1126  1.2       roy 	 * Whether cross connection is disallowed by the AP to which this
   1127  1.2       roy 	 * interface is associated (only valid if there is an association).
   1128  1.2       roy 	 */
   1129  1.2       roy 	int cross_connect_disallowed;
   1130  1.2       roy 
   1131  1.2       roy 	/*
   1132  1.2       roy 	 * Whether this P2P group is configured to use cross connection (only
   1133  1.2       roy 	 * valid if this is P2P GO interface). The actual cross connect packet
   1134  1.2       roy 	 * forwarding may not be configured depending on the uplink status.
   1135  1.2       roy 	 */
   1136  1.2       roy 	int cross_connect_enabled;
   1137  1.2       roy 
   1138  1.2       roy 	/* Whether cross connection forwarding is in use at the moment. */
   1139  1.2       roy 	int cross_connect_in_use;
   1140  1.2       roy 
   1141  1.2       roy 	/*
   1142  1.2       roy 	 * Uplink interface name for cross connection
   1143  1.2       roy 	 */
   1144  1.2       roy 	char cross_connect_uplink[100];
   1145  1.2       roy 
   1146  1.2       roy 	unsigned int p2p_auto_join:1;
   1147  1.2       roy 	unsigned int p2p_auto_pd:1;
   1148  1.4  christos 	unsigned int p2p_go_do_acs:1;
   1149  1.2       roy 	unsigned int p2p_persistent_group:1;
   1150  1.2       roy 	unsigned int p2p_fallback_to_go_neg:1;
   1151  1.2       roy 	unsigned int p2p_pd_before_go_neg:1;
   1152  1.2       roy 	unsigned int p2p_go_ht40:1;
   1153  1.2       roy 	unsigned int p2p_go_vht:1;
   1154  1.7  christos 	unsigned int p2p_go_edmg:1;
   1155  1.6  christos 	unsigned int p2p_go_he:1;
   1156  1.2       roy 	unsigned int user_initiated_pd:1;
   1157  1.2       roy 	unsigned int p2p_go_group_formation_completed:1;
   1158  1.2       roy 	unsigned int group_formation_reported:1;
   1159  1.7  christos 	unsigned int p2p_go_no_pri_sec_switch:1;
   1160  1.2       roy 	unsigned int waiting_presence_resp;
   1161  1.2       roy 	int p2p_first_connection_timeout;
   1162  1.2       roy 	unsigned int p2p_nfc_tag_enabled:1;
   1163  1.2       roy 	unsigned int p2p_peer_oob_pk_hash_known:1;
   1164  1.2       roy 	unsigned int p2p_disable_ip_addr_req:1;
   1165  1.3  christos 	unsigned int p2ps_method_config_any:1;
   1166  1.3  christos 	unsigned int p2p_cli_probe:1;
   1167  1.7  christos 	unsigned int p2p_go_allow_dfs:1;
   1168  1.4  christos 	enum hostapd_hw_mode p2p_go_acs_band;
   1169  1.2       roy 	int p2p_persistent_go_freq;
   1170  1.2       roy 	int p2p_persistent_id;
   1171  1.2       roy 	int p2p_go_intent;
   1172  1.2       roy 	int p2p_connect_freq;
   1173  1.2       roy 	struct os_reltime p2p_auto_started;
   1174  1.2       roy 	struct wpa_ssid *p2p_last_4way_hs_fail;
   1175  1.2       roy 	struct wpa_radio_work *p2p_scan_work;
   1176  1.2       roy 	struct wpa_radio_work *p2p_listen_work;
   1177  1.2       roy 	struct wpa_radio_work *p2p_send_action_work;
   1178  1.2       roy 
   1179  1.2       roy 	u16 p2p_oob_dev_pw_id; /* OOB Device Password Id for group formation */
   1180  1.2       roy 	struct wpabuf *p2p_oob_dev_pw; /* OOB Device Password for group
   1181  1.2       roy 					* formation */
   1182  1.2       roy 	u8 p2p_peer_oob_pubkey_hash[WPS_OOB_PUBKEY_HASH_LEN];
   1183  1.2       roy 	u8 p2p_ip_addr_info[3 * 4];
   1184  1.2       roy 
   1185  1.2       roy 	/* group common frequencies */
   1186  1.2       roy 	int *p2p_group_common_freqs;
   1187  1.2       roy 	unsigned int p2p_group_common_freqs_num;
   1188  1.2       roy 	u8 p2ps_join_addr[ETH_ALEN];
   1189  1.3  christos 
   1190  1.3  christos 	unsigned int p2p_go_max_oper_chwidth;
   1191  1.3  christos 	unsigned int p2p_go_vht_center_freq2;
   1192  1.3  christos 	int p2p_lo_started;
   1193  1.2       roy #endif /* CONFIG_P2P */
   1194  1.2       roy 
   1195  1.1  christos 	struct wpa_ssid *bgscan_ssid;
   1196  1.1  christos 	const struct bgscan_ops *bgscan;
   1197  1.1  christos 	void *bgscan_priv;
   1198  1.7  christos 	int signal_threshold;
   1199  1.1  christos 
   1200  1.2       roy 	const struct autoscan_ops *autoscan;
   1201  1.2       roy 	struct wpa_driver_scan_params *autoscan_params;
   1202  1.2       roy 	void *autoscan_priv;
   1203  1.2       roy 
   1204  1.2       roy 	struct wpa_ssid *connect_without_scan;
   1205  1.2       roy 
   1206  1.2       roy 	struct wps_ap_info *wps_ap;
   1207  1.2       roy 	size_t num_wps_ap;
   1208  1.2       roy 	int wps_ap_iter;
   1209  1.1  christos 
   1210  1.1  christos 	int after_wps;
   1211  1.2       roy 	int known_wps_freq;
   1212  1.1  christos 	unsigned int wps_freq;
   1213  1.2       roy 	int wps_fragment_size;
   1214  1.2       roy 	int auto_reconnect_disabled;
   1215  1.2       roy 
   1216  1.2       roy 	 /* Channel preferences for AP/P2P GO use */
   1217  1.2       roy 	int best_24_freq;
   1218  1.2       roy 	int best_5_freq;
   1219  1.2       roy 	int best_overall_freq;
   1220  1.2       roy 
   1221  1.2       roy 	struct gas_query *gas;
   1222  1.4  christos 	struct gas_server *gas_server;
   1223  1.2       roy 
   1224  1.2       roy #ifdef CONFIG_INTERWORKING
   1225  1.2       roy 	unsigned int fetch_anqp_in_progress:1;
   1226  1.2       roy 	unsigned int network_select:1;
   1227  1.2       roy 	unsigned int auto_select:1;
   1228  1.2       roy 	unsigned int auto_network_select:1;
   1229  1.2       roy 	unsigned int interworking_fast_assoc_tried:1;
   1230  1.2       roy 	unsigned int fetch_all_anqp:1;
   1231  1.2       roy 	unsigned int fetch_osu_info:1;
   1232  1.2       roy 	unsigned int fetch_osu_waiting_scan:1;
   1233  1.2       roy 	unsigned int fetch_osu_icon_in_progress:1;
   1234  1.2       roy 	struct wpa_bss *interworking_gas_bss;
   1235  1.2       roy 	unsigned int osu_icon_id;
   1236  1.3  christos 	struct dl_list icon_head; /* struct icon_entry */
   1237  1.2       roy 	struct osu_provider *osu_prov;
   1238  1.2       roy 	size_t osu_prov_count;
   1239  1.2       roy 	struct os_reltime osu_icon_fetch_start;
   1240  1.2       roy 	unsigned int num_osu_scans;
   1241  1.2       roy 	unsigned int num_prov_found;
   1242  1.2       roy #endif /* CONFIG_INTERWORKING */
   1243  1.2       roy 	unsigned int drv_capa_known;
   1244  1.2       roy 
   1245  1.2       roy 	struct {
   1246  1.2       roy 		struct hostapd_hw_modes *modes;
   1247  1.2       roy 		u16 num_modes;
   1248  1.2       roy 		u16 flags;
   1249  1.2       roy 	} hw;
   1250  1.2       roy 	enum local_hw_capab {
   1251  1.2       roy 		CAPAB_NO_HT_VHT,
   1252  1.2       roy 		CAPAB_HT,
   1253  1.2       roy 		CAPAB_HT40,
   1254  1.2       roy 		CAPAB_VHT,
   1255  1.2       roy 	} hw_capab;
   1256  1.2       roy #ifdef CONFIG_MACSEC
   1257  1.2       roy 	struct ieee802_1x_kay *kay;
   1258  1.2       roy #endif /* CONFIG_MACSEC */
   1259  1.2       roy 
   1260  1.2       roy 	int pno;
   1261  1.2       roy 	int pno_sched_pending;
   1262  1.2       roy 
   1263  1.2       roy 	/* WLAN_REASON_* reason codes. Negative if locally generated. */
   1264  1.2       roy 	int disconnect_reason;
   1265  1.2       roy 
   1266  1.6  christos 	/* WLAN_STATUS_* status codes from last received Authentication frame
   1267  1.6  christos 	 * from the AP. */
   1268  1.6  christos 	u16 auth_status_code;
   1269  1.6  christos 
   1270  1.3  christos 	/* WLAN_STATUS_* status codes from (Re)Association Response frame. */
   1271  1.3  christos 	u16 assoc_status_code;
   1272  1.3  christos 
   1273  1.2       roy 	struct ext_password_data *ext_pw;
   1274  1.2       roy 
   1275  1.2       roy 	struct wpabuf *last_gas_resp, *prev_gas_resp;
   1276  1.2       roy 	u8 last_gas_addr[ETH_ALEN], prev_gas_addr[ETH_ALEN];
   1277  1.2       roy 	u8 last_gas_dialog_token, prev_gas_dialog_token;
   1278  1.2       roy 
   1279  1.2       roy 	unsigned int no_keep_alive:1;
   1280  1.2       roy 	unsigned int ext_mgmt_frame_handling:1;
   1281  1.2       roy 	unsigned int ext_eapol_frame_io:1;
   1282  1.2       roy 	unsigned int wmm_ac_supported:1;
   1283  1.2       roy 	unsigned int ext_work_in_progress:1;
   1284  1.2       roy 	unsigned int own_disconnect_req:1;
   1285  1.7  christos 	unsigned int own_reconnect_req:1;
   1286  1.4  christos 	unsigned int ignore_post_flush_scan_res:1;
   1287  1.2       roy 
   1288  1.2       roy #define MAC_ADDR_RAND_SCAN       BIT(0)
   1289  1.2       roy #define MAC_ADDR_RAND_SCHED_SCAN BIT(1)
   1290  1.2       roy #define MAC_ADDR_RAND_PNO        BIT(2)
   1291  1.2       roy #define MAC_ADDR_RAND_ALL        (MAC_ADDR_RAND_SCAN | \
   1292  1.2       roy 				  MAC_ADDR_RAND_SCHED_SCAN | \
   1293  1.2       roy 				  MAC_ADDR_RAND_PNO)
   1294  1.2       roy 	unsigned int mac_addr_rand_supported;
   1295  1.2       roy 	unsigned int mac_addr_rand_enable;
   1296  1.2       roy 
   1297  1.2       roy 	/* MAC Address followed by mask (2 * ETH_ALEN) */
   1298  1.2       roy 	u8 *mac_addr_scan;
   1299  1.2       roy 	u8 *mac_addr_sched_scan;
   1300  1.2       roy 	u8 *mac_addr_pno;
   1301  1.2       roy 
   1302  1.2       roy #ifdef CONFIG_WNM
   1303  1.2       roy 	u8 wnm_dialog_token;
   1304  1.2       roy 	u8 wnm_reply;
   1305  1.2       roy 	u8 wnm_num_neighbor_report;
   1306  1.2       roy 	u8 wnm_mode;
   1307  1.7  christos 	bool wnm_link_removal;
   1308  1.7  christos 	u8 wnm_dissoc_addr[ETH_ALEN];
   1309  1.2       roy 	u16 wnm_dissoc_timer;
   1310  1.2       roy 	u8 wnm_bss_termination_duration[12];
   1311  1.2       roy 	struct neighbor_report *wnm_neighbor_report_elements;
   1312  1.2       roy 	struct os_reltime wnm_cand_valid_until;
   1313  1.7  christos 	struct wpa_bss *wnm_target_bss;
   1314  1.6  christos 	enum bss_trans_mgmt_status_code bss_tm_status;
   1315  1.7  christos 	bool bss_trans_mgmt_in_progress;
   1316  1.4  christos 	u8 coloc_intf_dialog_token;
   1317  1.4  christos 	u8 coloc_intf_auto_report;
   1318  1.4  christos 	u8 coloc_intf_timeout;
   1319  1.4  christos #ifdef CONFIG_MBO
   1320  1.4  christos 	unsigned int wnm_mbo_trans_reason_present:1;
   1321  1.4  christos 	u8 wnm_mbo_transition_reason;
   1322  1.4  christos #endif /* CONFIG_MBO */
   1323  1.2       roy #endif /* CONFIG_WNM */
   1324  1.2       roy 
   1325  1.2       roy #ifdef CONFIG_TESTING_GET_GTK
   1326  1.2       roy 	u8 last_gtk[32];
   1327  1.2       roy 	size_t last_gtk_len;
   1328  1.2       roy #endif /* CONFIG_TESTING_GET_GTK */
   1329  1.2       roy 
   1330  1.2       roy 	unsigned int num_multichan_concurrent;
   1331  1.2       roy 	struct wpa_radio_work *connect_work;
   1332  1.2       roy 
   1333  1.2       roy 	unsigned int ext_work_id;
   1334  1.2       roy 
   1335  1.2       roy 	struct wpabuf *vendor_elem[NUM_VENDOR_ELEM_FRAMES];
   1336  1.2       roy 
   1337  1.2       roy #ifdef CONFIG_TESTING_OPTIONS
   1338  1.2       roy 	struct l2_packet_data *l2_test;
   1339  1.2       roy 	unsigned int extra_roc_dur;
   1340  1.2       roy 	enum wpa_supplicant_test_failure test_failure;
   1341  1.4  christos 	char *get_pref_freq_list_override;
   1342  1.3  christos 	unsigned int reject_btm_req_reason;
   1343  1.3  christos 	unsigned int p2p_go_csa_on_inv:1;
   1344  1.3  christos 	unsigned int ignore_auth_resp:1;
   1345  1.3  christos 	unsigned int ignore_assoc_disallow:1;
   1346  1.7  christos 	unsigned int disable_sa_query:1;
   1347  1.4  christos 	unsigned int testing_resend_assoc:1;
   1348  1.7  christos 	unsigned int ignore_sae_h2e_only:1;
   1349  1.7  christos 	int ft_rsnxe_used;
   1350  1.4  christos 	struct wpabuf *sae_commit_override;
   1351  1.4  christos 	enum wpa_alg last_tk_alg;
   1352  1.4  christos 	u8 last_tk_addr[ETH_ALEN];
   1353  1.4  christos 	int last_tk_key_idx;
   1354  1.4  christos 	u8 last_tk[WPA_TK_MAX_LEN];
   1355  1.4  christos 	size_t last_tk_len;
   1356  1.4  christos 	struct wpabuf *last_assoc_req_wpa_ie;
   1357  1.7  christos 	int *extra_sae_rejected_groups;
   1358  1.7  christos 	struct wpabuf *rsne_override_eapol;
   1359  1.7  christos 	struct wpabuf *rsnxe_override_assoc;
   1360  1.7  christos 	struct wpabuf *rsnxe_override_eapol;
   1361  1.7  christos 	struct dl_list drv_signal_override;
   1362  1.7  christos 	unsigned int oci_freq_override_eapol;
   1363  1.7  christos 	unsigned int oci_freq_override_saquery_req;
   1364  1.7  christos 	unsigned int oci_freq_override_saquery_resp;
   1365  1.7  christos 	unsigned int oci_freq_override_eapol_g2;
   1366  1.7  christos 	unsigned int oci_freq_override_ft_assoc;
   1367  1.7  christos 	unsigned int oci_freq_override_fils_assoc;
   1368  1.7  christos 	unsigned int oci_freq_override_wnm_sleep;
   1369  1.7  christos 	unsigned int disable_eapol_g2_tx;
   1370  1.7  christos 	int test_assoc_comeback_type;
   1371  1.2       roy #endif /* CONFIG_TESTING_OPTIONS */
   1372  1.2       roy 
   1373  1.2       roy 	struct wmm_ac_assoc_data *wmm_ac_assoc_info;
   1374  1.2       roy 	struct wmm_tspec_element *tspecs[WMM_AC_NUM][TS_DIR_IDX_COUNT];
   1375  1.2       roy 	struct wmm_ac_addts_request *addts_request;
   1376  1.2       roy 	u8 wmm_ac_last_dialog_token;
   1377  1.2       roy 	struct wmm_tspec_element *last_tspecs;
   1378  1.2       roy 	u8 last_tspecs_count;
   1379  1.2       roy 
   1380  1.2       roy 	struct rrm_data rrm;
   1381  1.4  christos 	struct beacon_rep_data beacon_rep_data;
   1382  1.3  christos 
   1383  1.3  christos #ifdef CONFIG_FST
   1384  1.3  christos 	struct fst_iface *fst;
   1385  1.3  christos 	const struct wpabuf *fst_ies;
   1386  1.3  christos 	struct wpabuf *received_mb_ies;
   1387  1.3  christos #endif /* CONFIG_FST */
   1388  1.3  christos 
   1389  1.3  christos #ifdef CONFIG_MBO
   1390  1.3  christos 	/* Multiband operation non-preferred channel */
   1391  1.3  christos 	struct wpa_mbo_non_pref_channel {
   1392  1.3  christos 		enum mbo_non_pref_chan_reason reason;
   1393  1.3  christos 		u8 oper_class;
   1394  1.3  christos 		u8 chan;
   1395  1.3  christos 		u8 preference;
   1396  1.3  christos 	} *non_pref_chan;
   1397  1.3  christos 	size_t non_pref_chan_num;
   1398  1.3  christos 	u8 mbo_wnm_token;
   1399  1.4  christos 	/**
   1400  1.4  christos 	 * enable_oce - Enable OCE if it is enabled by user and device also
   1401  1.4  christos 	 *		supports OCE.
   1402  1.4  christos 	 * User can enable OCE with wpa_config's 'oce' parameter as follows -
   1403  1.4  christos 	 *  - Set BIT(0) to enable OCE in non-AP STA mode.
   1404  1.4  christos 	 *  - Set BIT(1) to enable OCE in STA-CFON mode.
   1405  1.4  christos 	 */
   1406  1.4  christos 	u8 enable_oce;
   1407  1.3  christos #endif /* CONFIG_MBO */
   1408  1.3  christos 
   1409  1.3  christos 	/*
   1410  1.3  christos 	 * This should be under CONFIG_MBO, but it is left out to allow using
   1411  1.3  christos 	 * the bss_temp_disallowed list for other purposes as well.
   1412  1.3  christos 	 */
   1413  1.3  christos 	struct dl_list bss_tmp_disallowed;
   1414  1.3  christos 
   1415  1.3  christos 	/*
   1416  1.3  christos 	 * Content of a measurement report element with type 8 (LCI),
   1417  1.3  christos 	 * own location.
   1418  1.3  christos 	 */
   1419  1.3  christos 	struct wpabuf *lci;
   1420  1.3  christos 	struct os_reltime lci_time;
   1421  1.4  christos 
   1422  1.4  christos 	struct os_reltime beacon_rep_scan;
   1423  1.4  christos 
   1424  1.4  christos 	/* FILS HLP requests (struct fils_hlp_req) */
   1425  1.4  christos 	struct dl_list fils_hlp_req;
   1426  1.4  christos 
   1427  1.4  christos 	struct sched_scan_relative_params {
   1428  1.4  christos 		/**
   1429  1.4  christos 		 * relative_rssi_set - Enable relatively preferred BSS reporting
   1430  1.4  christos 		 *
   1431  1.4  christos 		 * 0 = Disable reporting relatively preferred BSSs
   1432  1.4  christos 		 * 1 = Enable reporting relatively preferred BSSs
   1433  1.4  christos 		 */
   1434  1.4  christos 		int relative_rssi_set;
   1435  1.4  christos 
   1436  1.4  christos 		/**
   1437  1.4  christos 		 * relative_rssi - Relative RSSI for reporting better BSSs
   1438  1.4  christos 		 *
   1439  1.4  christos 		 * Amount of RSSI by which a BSS should be better than the
   1440  1.4  christos 		 * current connected BSS so that the new BSS can be reported
   1441  1.4  christos 		 * to user space. This applies to sched_scan operations.
   1442  1.4  christos 		 */
   1443  1.4  christos 		int relative_rssi;
   1444  1.4  christos 
   1445  1.4  christos 		/**
   1446  1.4  christos 		 * relative_adjust_band - Band in which RSSI is to be adjusted
   1447  1.4  christos 		 */
   1448  1.4  christos 		enum set_band relative_adjust_band;
   1449  1.4  christos 
   1450  1.4  christos 		/**
   1451  1.4  christos 		 * relative_adjust_rssi - RSSI adjustment
   1452  1.4  christos 		 *
   1453  1.4  christos 		 * An amount of relative_adjust_rssi should be added to the
   1454  1.4  christos 		 * BSSs that belong to the relative_adjust_band while comparing
   1455  1.4  christos 		 * with other bands for BSS reporting.
   1456  1.4  christos 		 */
   1457  1.4  christos 		int relative_adjust_rssi;
   1458  1.4  christos 	} srp;
   1459  1.4  christos 
   1460  1.4  christos 	/* RIC elements for FT protocol */
   1461  1.4  christos 	struct wpabuf *ric_ies;
   1462  1.4  christos 
   1463  1.4  christos 	int last_auth_timeout_sec;
   1464  1.4  christos 
   1465  1.4  christos #ifdef CONFIG_DPP
   1466  1.6  christos 	struct dpp_global *dpp;
   1467  1.4  christos 	struct dpp_authentication *dpp_auth;
   1468  1.4  christos 	struct wpa_radio_work *dpp_listen_work;
   1469  1.4  christos 	unsigned int dpp_pending_listen_freq;
   1470  1.4  christos 	unsigned int dpp_listen_freq;
   1471  1.7  christos 	struct os_reltime dpp_listen_end;
   1472  1.4  christos 	u8 dpp_allowed_roles;
   1473  1.4  christos 	int dpp_qr_mutual;
   1474  1.7  christos 	int dpp_netrole;
   1475  1.4  christos 	int dpp_auth_ok_on_ack;
   1476  1.4  christos 	int dpp_in_response_listen;
   1477  1.7  christos 	bool dpp_tx_auth_resp_on_roc_stop;
   1478  1.7  christos 	bool dpp_tx_chan_change;
   1479  1.7  christos 	bool dpp_listen_on_tx_expire;
   1480  1.4  christos 	int dpp_gas_client;
   1481  1.7  christos 	int dpp_gas_server;
   1482  1.4  christos 	int dpp_gas_dialog_token;
   1483  1.4  christos 	u8 dpp_intro_bssid[ETH_ALEN];
   1484  1.4  christos 	void *dpp_intro_network;
   1485  1.7  christos 	u8 dpp_intro_peer_version;
   1486  1.4  christos 	struct dpp_pkex *dpp_pkex;
   1487  1.4  christos 	struct dpp_bootstrap_info *dpp_pkex_bi;
   1488  1.4  christos 	char *dpp_pkex_code;
   1489  1.7  christos 	size_t dpp_pkex_code_len;
   1490  1.4  christos 	char *dpp_pkex_identifier;
   1491  1.7  christos 	enum dpp_pkex_ver dpp_pkex_ver;
   1492  1.4  christos 	char *dpp_pkex_auth_cmd;
   1493  1.4  christos 	char *dpp_configurator_params;
   1494  1.4  christos 	struct os_reltime dpp_last_init;
   1495  1.4  christos 	struct os_reltime dpp_init_iter_start;
   1496  1.4  christos 	unsigned int dpp_init_max_tries;
   1497  1.4  christos 	unsigned int dpp_init_retry_time;
   1498  1.4  christos 	unsigned int dpp_resp_wait_time;
   1499  1.4  christos 	unsigned int dpp_resp_max_tries;
   1500  1.4  christos 	unsigned int dpp_resp_retry_time;
   1501  1.7  christos 	u8 dpp_last_ssid[SSID_MAX_LEN];
   1502  1.7  christos 	size_t dpp_last_ssid_len;
   1503  1.7  christos 	bool dpp_conf_backup_received;
   1504  1.7  christos 	bool dpp_pkex_wait_auth_req;
   1505  1.6  christos #ifdef CONFIG_DPP2
   1506  1.6  christos 	struct dpp_pfs *dpp_pfs;
   1507  1.7  christos 	int dpp_pfs_fallback;
   1508  1.7  christos 	struct wpabuf *dpp_presence_announcement;
   1509  1.7  christos 	struct dpp_bootstrap_info *dpp_chirp_bi;
   1510  1.7  christos 	int dpp_chirp_freq;
   1511  1.7  christos 	int *dpp_chirp_freqs;
   1512  1.7  christos 	int dpp_chirp_iter;
   1513  1.7  christos 	int dpp_chirp_round;
   1514  1.7  christos 	int dpp_chirp_scan_done;
   1515  1.7  christos 	int dpp_chirp_listen;
   1516  1.7  christos 	struct wpa_ssid *dpp_reconfig_ssid;
   1517  1.7  christos 	int dpp_reconfig_ssid_id;
   1518  1.7  christos 	struct dpp_reconfig_id *dpp_reconfig_id;
   1519  1.6  christos #endif /* CONFIG_DPP2 */
   1520  1.7  christos #ifdef CONFIG_DPP3
   1521  1.7  christos 	struct os_reltime dpp_pb_time;
   1522  1.7  christos 	bool dpp_pb_configurator;
   1523  1.7  christos 	int *dpp_pb_freqs;
   1524  1.7  christos 	unsigned int dpp_pb_freq_idx;
   1525  1.7  christos 	unsigned int dpp_pb_announce_count;
   1526  1.7  christos 	struct wpabuf *dpp_pb_announcement;
   1527  1.7  christos 	struct dpp_bootstrap_info *dpp_pb_bi;
   1528  1.7  christos 	unsigned int dpp_pb_resp_freq;
   1529  1.7  christos 	u8 dpp_pb_init_hash[SHA256_MAC_LEN];
   1530  1.7  christos 	int dpp_pb_stop_iter;
   1531  1.7  christos 	bool dpp_pb_discovery_done;
   1532  1.7  christos 	u8 dpp_pb_c_nonce[DPP_MAX_NONCE_LEN];
   1533  1.7  christos 	size_t dpp_pb_c_nonce_len;
   1534  1.7  christos 	bool dpp_pb_result_indicated;
   1535  1.7  christos 	struct os_reltime dpp_pb_announce_time;
   1536  1.7  christos 	struct dpp_pb_info dpp_pb[DPP_PB_INFO_COUNT];
   1537  1.7  christos 	u8 dpp_pb_resp_hash[SHA256_MAC_LEN];
   1538  1.7  christos 	struct os_reltime dpp_pb_last_resp;
   1539  1.7  christos 	char *dpp_pb_cmd;
   1540  1.7  christos #endif /* CONFIG_DPP3 */
   1541  1.4  christos #ifdef CONFIG_TESTING_OPTIONS
   1542  1.4  christos 	char *dpp_config_obj_override;
   1543  1.4  christos 	char *dpp_discovery_override;
   1544  1.4  christos 	char *dpp_groups_override;
   1545  1.4  christos 	unsigned int dpp_ignore_netaccesskey_mismatch:1;
   1546  1.7  christos 	unsigned int dpp_discard_public_action:1;
   1547  1.4  christos #endif /* CONFIG_TESTING_OPTIONS */
   1548  1.4  christos #endif /* CONFIG_DPP */
   1549  1.4  christos 
   1550  1.4  christos #ifdef CONFIG_FILS
   1551  1.4  christos 	unsigned int disable_fils:1;
   1552  1.4  christos #endif /* CONFIG_FILS */
   1553  1.4  christos 	unsigned int ieee80211ac:1;
   1554  1.6  christos 	unsigned int enabled_4addr_mode:1;
   1555  1.6  christos 	unsigned int multi_bss_support:1;
   1556  1.7  christos 	unsigned int drv_authorized_port:1;
   1557  1.7  christos 	unsigned int multi_ap_ie:1;
   1558  1.7  christos 	unsigned int multi_ap_backhaul:1;
   1559  1.7  christos 	unsigned int multi_ap_fronthaul:1;
   1560  1.7  christos 
   1561  1.7  christos #ifndef CONFIG_NO_ROBUST_AV
   1562  1.7  christos 	struct robust_av_data robust_av;
   1563  1.7  christos 	bool mscs_setup_done;
   1564  1.7  christos 	struct scs_robust_av_data scs_robust_av_req;
   1565  1.7  christos 	u8 scs_dialog_token;
   1566  1.7  christos 	struct dl_list active_scs_ids;
   1567  1.7  christos 	bool ongoing_scs_req;
   1568  1.7  christos 	u8 dscp_req_dialog_token;
   1569  1.7  christos 	u8 dscp_query_dialog_token;
   1570  1.7  christos 	unsigned int enable_dscp_policy_capa:1;
   1571  1.7  christos 	unsigned int connection_dscp:1;
   1572  1.7  christos 	unsigned int wait_for_dscp_req:1;
   1573  1.7  christos #ifdef CONFIG_TESTING_OPTIONS
   1574  1.7  christos 	unsigned int disable_scs_support:1;
   1575  1.7  christos 	unsigned int disable_mscs_support:1;
   1576  1.7  christos #endif /* CONFIG_TESTING_OPTIONS */
   1577  1.7  christos #endif /* CONFIG_NO_ROBUST_AV */
   1578  1.7  christos 
   1579  1.7  christos 	bool wps_scan_done; /* Set upon receiving scan results event */
   1580  1.7  christos 	bool supp_pbc_active; /* Set for interface when PBC is triggered */
   1581  1.7  christos 	bool wps_overlap;
   1582  1.7  christos 
   1583  1.7  christos #ifdef CONFIG_PASN
   1584  1.7  christos 	struct pasn_data pasn;
   1585  1.7  christos 	struct wpa_radio_work *pasn_auth_work;
   1586  1.7  christos 	unsigned int pasn_count;
   1587  1.7  christos 	struct pasn_auth *pasn_params;
   1588  1.7  christos #endif /* CONFIG_PASN */
   1589  1.7  christos 
   1590  1.7  christos 	bool is_6ghz_enabled;
   1591  1.7  christos 	bool crossed_6ghz_dom;
   1592  1.7  christos 	bool last_scan_all_chan;
   1593  1.7  christos 	bool last_scan_non_coloc_6ghz;
   1594  1.7  christos 	bool support_6ghz;
   1595  1.7  christos 
   1596  1.7  christos 	struct wpa_signal_info last_signal_info;
   1597  1.7  christos 
   1598  1.7  christos 	struct wpa_ssid *ml_connect_probe_ssid;
   1599  1.7  christos 	struct wpa_bss *ml_connect_probe_bss;
   1600  1.7  christos 
   1601  1.7  christos #ifdef CONFIG_OWE
   1602  1.7  christos 	/* An array of frequencies to scan for OWE transition mode BSSs when
   1603  1.7  christos 	 * owe_transition_search == 1 */
   1604  1.7  christos 	int *owe_trans_scan_freq;
   1605  1.7  christos #endif /* CONFIG_OWE */
   1606  1.7  christos 
   1607  1.7  christos #ifdef CONFIG_NAN_USD
   1608  1.7  christos 	struct nan_de *nan_de;
   1609  1.7  christos 	struct wpa_radio_work *nan_usd_listen_work;
   1610  1.7  christos 	struct wpa_radio_work *nan_usd_tx_work;
   1611  1.7  christos #endif /* CONFIG_NAN_USD */
   1612  1.7  christos 
   1613  1.7  christos 	bool ssid_verified;
   1614  1.7  christos 	bool bigtk_set;
   1615  1.7  christos 	u64 first_beacon_tsf;
   1616  1.7  christos 	unsigned int beacons_checked;
   1617  1.7  christos 	unsigned int next_beacon_check;
   1618  1.1  christos };
   1619  1.1  christos 
   1620  1.1  christos 
   1621  1.1  christos /* wpa_supplicant.c */
   1622  1.2       roy void wpa_supplicant_apply_ht_overrides(
   1623  1.2       roy 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
   1624  1.2       roy 	struct wpa_driver_associate_params *params);
   1625  1.2       roy void wpa_supplicant_apply_vht_overrides(
   1626  1.2       roy 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
   1627  1.2       roy 	struct wpa_driver_associate_params *params);
   1628  1.7  christos void wpa_supplicant_apply_he_overrides(
   1629  1.7  christos 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
   1630  1.7  christos 	struct wpa_driver_associate_params *params);
   1631  1.7  christos void wpa_supplicant_apply_eht_overrides(
   1632  1.7  christos 	struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
   1633  1.7  christos 	struct wpa_driver_associate_params *params);
   1634  1.2       roy 
   1635  1.1  christos int wpa_set_wep_keys(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
   1636  1.2       roy int wpa_supplicant_set_wpa_none_key(struct wpa_supplicant *wpa_s,
   1637  1.2       roy 				    struct wpa_ssid *ssid);
   1638  1.1  christos 
   1639  1.1  christos int wpa_supplicant_reload_configuration(struct wpa_supplicant *wpa_s);
   1640  1.1  christos 
   1641  1.1  christos const char * wpa_supplicant_state_txt(enum wpa_states state);
   1642  1.2       roy int wpa_supplicant_update_mac_addr(struct wpa_supplicant *wpa_s);
   1643  1.1  christos int wpa_supplicant_driver_init(struct wpa_supplicant *wpa_s);
   1644  1.7  christos int wpa_supplicant_update_bridge_ifname(struct wpa_supplicant *wpa_s,
   1645  1.7  christos 					const char *bridge_ifname);
   1646  1.7  christos void wpas_set_mgmt_group_cipher(struct wpa_supplicant *wpa_s,
   1647  1.7  christos 				struct wpa_ssid *ssid, struct wpa_ie_data *ie);
   1648  1.1  christos int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
   1649  1.1  christos 			      struct wpa_bss *bss, struct wpa_ssid *ssid,
   1650  1.7  christos 			      u8 *wpa_ie, size_t *wpa_ie_len,
   1651  1.7  christos 			      bool skip_default_rsne);
   1652  1.7  christos int wpas_restore_permanent_mac_addr(struct wpa_supplicant *wpa_s);
   1653  1.1  christos void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
   1654  1.1  christos 			      struct wpa_bss *bss,
   1655  1.1  christos 			      struct wpa_ssid *ssid);
   1656  1.1  christos void wpa_supplicant_set_non_wpa_policy(struct wpa_supplicant *wpa_s,
   1657  1.1  christos 				       struct wpa_ssid *ssid);
   1658  1.1  christos void wpa_supplicant_initiate_eapol(struct wpa_supplicant *wpa_s);
   1659  1.1  christos void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr);
   1660  1.1  christos void wpa_supplicant_req_auth_timeout(struct wpa_supplicant *wpa_s,
   1661  1.1  christos 				     int sec, int usec);
   1662  1.4  christos void wpas_auth_timeout_restart(struct wpa_supplicant *wpa_s, int sec_diff);
   1663  1.2       roy void wpa_supplicant_reinit_autoscan(struct wpa_supplicant *wpa_s);
   1664  1.1  christos void wpa_supplicant_set_state(struct wpa_supplicant *wpa_s,
   1665  1.1  christos 			      enum wpa_states state);
   1666  1.1  christos struct wpa_ssid * wpa_supplicant_get_ssid(struct wpa_supplicant *wpa_s);
   1667  1.2       roy const char * wpa_supplicant_get_eap_mode(struct wpa_supplicant *wpa_s);
   1668  1.1  christos void wpa_supplicant_cancel_auth_timeout(struct wpa_supplicant *wpa_s);
   1669  1.1  christos void wpa_supplicant_deauthenticate(struct wpa_supplicant *wpa_s,
   1670  1.6  christos 				   u16 reason_code);
   1671  1.7  christos void wpa_supplicant_reconnect(struct wpa_supplicant *wpa_s);
   1672  1.1  christos 
   1673  1.3  christos struct wpa_ssid * wpa_supplicant_add_network(struct wpa_supplicant *wpa_s);
   1674  1.3  christos int wpa_supplicant_remove_network(struct wpa_supplicant *wpa_s, int id);
   1675  1.7  christos int wpa_supplicant_remove_all_networks(struct wpa_supplicant *wpa_s);
   1676  1.1  christos void wpa_supplicant_enable_network(struct wpa_supplicant *wpa_s,
   1677  1.1  christos 				   struct wpa_ssid *ssid);
   1678  1.1  christos void wpa_supplicant_disable_network(struct wpa_supplicant *wpa_s,
   1679  1.1  christos 				    struct wpa_ssid *ssid);
   1680  1.1  christos void wpa_supplicant_select_network(struct wpa_supplicant *wpa_s,
   1681  1.1  christos 				   struct wpa_ssid *ssid);
   1682  1.7  christos int wpas_remove_cred(struct wpa_supplicant *wpa_s, struct wpa_cred *cred);
   1683  1.7  christos int wpas_remove_all_creds(struct wpa_supplicant *wpa_s);
   1684  1.2       roy int wpas_set_pkcs11_engine_and_module_path(struct wpa_supplicant *wpa_s,
   1685  1.2       roy 					   const char *pkcs11_engine_path,
   1686  1.2       roy 					   const char *pkcs11_module_path);
   1687  1.1  christos int wpa_supplicant_set_ap_scan(struct wpa_supplicant *wpa_s,
   1688  1.1  christos 			       int ap_scan);
   1689  1.2       roy int wpa_supplicant_set_bss_expiration_age(struct wpa_supplicant *wpa_s,
   1690  1.2       roy 					  unsigned int expire_age);
   1691  1.2       roy int wpa_supplicant_set_bss_expiration_count(struct wpa_supplicant *wpa_s,
   1692  1.2       roy 					    unsigned int expire_count);
   1693  1.2       roy int wpa_supplicant_set_scan_interval(struct wpa_supplicant *wpa_s,
   1694  1.2       roy 				     int scan_interval);
   1695  1.1  christos int wpa_supplicant_set_debug_params(struct wpa_global *global,
   1696  1.1  christos 				    int debug_level, int debug_timestamp,
   1697  1.1  christos 				    int debug_show_keys);
   1698  1.2       roy void free_hw_features(struct wpa_supplicant *wpa_s);
   1699  1.1  christos 
   1700  1.1  christos void wpa_show_license(void);
   1701  1.1  christos 
   1702  1.2       roy struct wpa_interface * wpa_supplicant_match_iface(struct wpa_global *global,
   1703  1.2       roy 						  const char *ifname);
   1704  1.1  christos struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,
   1705  1.2       roy 						 struct wpa_interface *iface,
   1706  1.2       roy 						 struct wpa_supplicant *parent);
   1707  1.1  christos int wpa_supplicant_remove_iface(struct wpa_global *global,
   1708  1.2       roy 				struct wpa_supplicant *wpa_s,
   1709  1.2       roy 				int terminate);
   1710  1.1  christos struct wpa_supplicant * wpa_supplicant_get_iface(struct wpa_global *global,
   1711  1.1  christos 						 const char *ifname);
   1712  1.1  christos struct wpa_global * wpa_supplicant_init(struct wpa_params *params);
   1713  1.1  christos int wpa_supplicant_run(struct wpa_global *global);
   1714  1.1  christos void wpa_supplicant_deinit(struct wpa_global *global);
   1715  1.1  christos 
   1716  1.1  christos int wpa_supplicant_scard_init(struct wpa_supplicant *wpa_s,
   1717  1.1  christos 			      struct wpa_ssid *ssid);
   1718  1.1  christos void wpa_supplicant_terminate_proc(struct wpa_global *global);
   1719  1.7  christos void wpa_supplicant_rx_eapol(void *ctx, const u8 *own_addr,
   1720  1.7  christos 			     const u8 *buf, size_t len,
   1721  1.7  christos 			     enum frame_encryption encrypted);
   1722  1.2       roy void wpa_supplicant_update_config(struct wpa_supplicant *wpa_s);
   1723  1.2       roy void wpa_supplicant_clear_status(struct wpa_supplicant *wpa_s);
   1724  1.7  christos void wpas_connection_failed(struct wpa_supplicant *wpa_s, const u8 *bssid,
   1725  1.7  christos 			    const u8 **link_bssids);
   1726  1.4  christos void fils_connection_failure(struct wpa_supplicant *wpa_s);
   1727  1.7  christos void fils_pmksa_cache_flush(struct wpa_supplicant *wpa_s);
   1728  1.2       roy int wpas_driver_bss_selection(struct wpa_supplicant *wpa_s);
   1729  1.2       roy int wpas_is_p2p_prioritized(struct wpa_supplicant *wpa_s);
   1730  1.7  christos void wpas_auth_failed(struct wpa_supplicant *wpa_s, const char *reason,
   1731  1.7  christos 		      const u8 *bssid);
   1732  1.2       roy void wpas_clear_temp_disabled(struct wpa_supplicant *wpa_s,
   1733  1.2       roy 			      struct wpa_ssid *ssid, int clear_failures);
   1734  1.2       roy int disallowed_bssid(struct wpa_supplicant *wpa_s, const u8 *bssid);
   1735  1.2       roy int disallowed_ssid(struct wpa_supplicant *wpa_s, const u8 *ssid,
   1736  1.2       roy 		    size_t ssid_len);
   1737  1.2       roy void wpas_request_connection(struct wpa_supplicant *wpa_s);
   1738  1.3  christos void wpas_request_disconnection(struct wpa_supplicant *wpa_s);
   1739  1.7  christos int wpas_build_ext_capab(struct wpa_supplicant *wpa_s, u8 *buf, size_t buflen,
   1740  1.7  christos 			 struct wpa_bss *bss);
   1741  1.7  christos int wpas_update_random_addr(struct wpa_supplicant *wpa_s,
   1742  1.7  christos 			    enum wpas_mac_addr_style style,
   1743  1.7  christos 			    struct wpa_ssid *ssid);
   1744  1.2       roy int wpas_update_random_addr_disassoc(struct wpa_supplicant *wpa_s);
   1745  1.2       roy void add_freq(int *freqs, int *num_freqs, int freq);
   1746  1.2       roy 
   1747  1.7  christos int wpas_get_op_chan_phy(int freq, const u8 *ies, size_t ies_len,
   1748  1.7  christos 			 u8 *op_class, u8 *chan, u8 *phy_type);
   1749  1.7  christos 
   1750  1.7  christos int wpas_twt_send_setup(struct wpa_supplicant *wpa_s, u8 dtok, int exponent,
   1751  1.7  christos 			int mantissa, u8 min_twt, int setup_cmd, u64 twt,
   1752  1.7  christos 			bool requestor, bool trigger, bool implicit,
   1753  1.7  christos 			bool flow_type, u8 flow_id, bool protection,
   1754  1.7  christos 			u8 twt_channel, u8 control);
   1755  1.7  christos int wpas_twt_send_teardown(struct wpa_supplicant *wpa_s, u8 flags);
   1756  1.7  christos 
   1757  1.2       roy void wpas_rrm_reset(struct wpa_supplicant *wpa_s);
   1758  1.2       roy void wpas_rrm_process_neighbor_rep(struct wpa_supplicant *wpa_s,
   1759  1.2       roy 				   const u8 *report, size_t report_len);
   1760  1.2       roy int wpas_rrm_send_neighbor_rep_request(struct wpa_supplicant *wpa_s,
   1761  1.3  christos 				       const struct wpa_ssid_value *ssid,
   1762  1.3  christos 				       int lci, int civic,
   1763  1.2       roy 				       void (*cb)(void *ctx,
   1764  1.2       roy 						  struct wpabuf *neighbor_rep),
   1765  1.2       roy 				       void *cb_ctx);
   1766  1.3  christos void wpas_rrm_handle_radio_measurement_request(struct wpa_supplicant *wpa_s,
   1767  1.4  christos 					       const u8 *src, const u8 *dst,
   1768  1.3  christos 					       const u8 *frame, size_t len);
   1769  1.2       roy void wpas_rrm_handle_link_measurement_request(struct wpa_supplicant *wpa_s,
   1770  1.2       roy 					      const u8 *src,
   1771  1.2       roy 					      const u8 *frame, size_t len,
   1772  1.2       roy 					      int rssi);
   1773  1.4  christos void wpas_rrm_refuse_request(struct wpa_supplicant *wpa_s);
   1774  1.4  christos int wpas_beacon_rep_scan_process(struct wpa_supplicant *wpa_s,
   1775  1.4  christos 				 struct wpa_scan_results *scan_res,
   1776  1.4  christos 				 struct scan_info *info);
   1777  1.4  christos void wpas_clear_beacon_rep_data(struct wpa_supplicant *wpa_s);
   1778  1.4  christos void wpas_flush_fils_hlp_req(struct wpa_supplicant *wpa_s);
   1779  1.7  christos void wpas_clear_disabled_interface(void *eloop_ctx, void *timeout_ctx);
   1780  1.7  christos void wpa_supplicant_reset_bgscan(struct wpa_supplicant *wpa_s);
   1781  1.2       roy 
   1782  1.3  christos 
   1783  1.3  christos /* MBO functions */
   1784  1.4  christos int wpas_mbo_ie(struct wpa_supplicant *wpa_s, u8 *buf, size_t len,
   1785  1.4  christos 		int add_oce_capa);
   1786  1.4  christos const u8 * mbo_attr_from_mbo_ie(const u8 *mbo_ie, enum mbo_attr_id attr);
   1787  1.7  christos const u8 * wpas_mbo_check_assoc_disallow(struct wpa_bss *bss);
   1788  1.7  christos void wpas_mbo_check_pmf(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
   1789  1.7  christos 			struct wpa_ssid *ssid);
   1790  1.6  christos const u8 * mbo_get_attr_from_ies(const u8 *ies, size_t ies_len,
   1791  1.6  christos 				 enum mbo_attr_id attr);
   1792  1.3  christos int wpas_mbo_update_non_pref_chan(struct wpa_supplicant *wpa_s,
   1793  1.3  christos 				  const char *non_pref_chan);
   1794  1.3  christos void wpas_mbo_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ie);
   1795  1.3  christos void wpas_mbo_ie_trans_req(struct wpa_supplicant *wpa_s, const u8 *ie,
   1796  1.3  christos 			   size_t len);
   1797  1.3  christos size_t wpas_mbo_ie_bss_trans_reject(struct wpa_supplicant *wpa_s, u8 *pos,
   1798  1.3  christos 				    size_t len,
   1799  1.3  christos 				    enum mbo_transition_reject_reason reason);
   1800  1.3  christos void wpas_mbo_update_cell_capa(struct wpa_supplicant *wpa_s, u8 mbo_cell_capa);
   1801  1.3  christos struct wpabuf * mbo_build_anqp_buf(struct wpa_supplicant *wpa_s,
   1802  1.4  christos 				   struct wpa_bss *bss, u32 mbo_subtypes);
   1803  1.4  christos void mbo_parse_rx_anqp_resp(struct wpa_supplicant *wpa_s,
   1804  1.4  christos 			    struct wpa_bss *bss, const u8 *sa,
   1805  1.4  christos 			    const u8 *data, size_t slen);
   1806  1.6  christos void wpas_update_mbo_connect_params(struct wpa_supplicant *wpa_s);
   1807  1.4  christos 
   1808  1.4  christos /* op_classes.c */
   1809  1.4  christos enum chan_allowed {
   1810  1.7  christos 	NOT_ALLOWED, NO_IR, RADAR, ALLOWED
   1811  1.4  christos };
   1812  1.4  christos 
   1813  1.7  christos enum chan_allowed verify_channel(struct hostapd_hw_modes *mode, u8 op_class,
   1814  1.7  christos 				 u8 channel, u8 bw);
   1815  1.6  christos size_t wpas_supp_op_class_ie(struct wpa_supplicant *wpa_s,
   1816  1.6  christos 			     struct wpa_ssid *ssid,
   1817  1.7  christos 			     struct wpa_bss *bss, u8 *pos, size_t len);
   1818  1.7  christos int * wpas_supp_op_classes(struct wpa_supplicant *wpa_s);
   1819  1.6  christos 
   1820  1.6  christos int wpas_enable_mac_addr_randomization(struct wpa_supplicant *wpa_s,
   1821  1.6  christos 				       unsigned int type, const u8 *addr,
   1822  1.6  christos 				       const u8 *mask);
   1823  1.6  christos int wpas_disable_mac_addr_randomization(struct wpa_supplicant *wpa_s,
   1824  1.6  christos 					unsigned int type);
   1825  1.3  christos 
   1826  1.2       roy /**
   1827  1.2       roy  * wpa_supplicant_ctrl_iface_ctrl_rsp_handle - Handle a control response
   1828  1.2       roy  * @wpa_s: Pointer to wpa_supplicant data
   1829  1.2       roy  * @ssid: Pointer to the network block the reply is for
   1830  1.2       roy  * @field: field the response is a reply for
   1831  1.2       roy  * @value: value (ie, password, etc) for @field
   1832  1.2       roy  * Returns: 0 on success, non-zero on error
   1833  1.2       roy  *
   1834  1.2       roy  * Helper function to handle replies to control interface requests.
   1835  1.2       roy  */
   1836  1.2       roy int wpa_supplicant_ctrl_iface_ctrl_rsp_handle(struct wpa_supplicant *wpa_s,
   1837  1.2       roy 					      struct wpa_ssid *ssid,
   1838  1.2       roy 					      const char *field,
   1839  1.2       roy 					      const char *value);
   1840  1.2       roy 
   1841  1.2       roy void ibss_mesh_setup_freq(struct wpa_supplicant *wpa_s,
   1842  1.2       roy 			  const struct wpa_ssid *ssid,
   1843  1.2       roy 			  struct hostapd_freq_params *freq);
   1844  1.1  christos 
   1845  1.1  christos /* events.c */
   1846  1.1  christos void wpa_supplicant_mark_disassoc(struct wpa_supplicant *wpa_s);
   1847  1.2       roy int wpa_supplicant_connect(struct wpa_supplicant *wpa_s,
   1848  1.2       roy 			   struct wpa_bss *selected,
   1849  1.2       roy 			   struct wpa_ssid *ssid);
   1850  1.2       roy void wpa_supplicant_stop_countermeasures(void *eloop_ctx, void *sock_ctx);
   1851  1.2       roy void wpa_supplicant_delayed_mic_error_report(void *eloop_ctx, void *sock_ctx);
   1852  1.2       roy void wnm_bss_keep_alive_deinit(struct wpa_supplicant *wpa_s);
   1853  1.2       roy int wpa_supplicant_fast_associate(struct wpa_supplicant *wpa_s);
   1854  1.7  christos int wpa_wps_supplicant_fast_associate(struct wpa_supplicant *wpa_s);
   1855  1.2       roy struct wpa_bss * wpa_supplicant_pick_network(struct wpa_supplicant *wpa_s,
   1856  1.2       roy 					     struct wpa_ssid **selected_ssid);
   1857  1.4  christos int wpas_temp_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
   1858  1.6  christos void wpa_supplicant_update_channel_list(struct wpa_supplicant *wpa_s,
   1859  1.6  christos 					struct channel_list_changed *info);
   1860  1.7  christos int wpa_supplicant_need_to_roam_within_ess(struct wpa_supplicant *wpa_s,
   1861  1.7  christos 					   struct wpa_bss *current_bss,
   1862  1.7  christos 					   struct wpa_bss *seleceted);
   1863  1.7  christos void wpas_reset_mlo_info(struct wpa_supplicant *wpa_s);
   1864  1.1  christos 
   1865  1.1  christos /* eap_register.c */
   1866  1.1  christos int eap_register_methods(void);
   1867  1.1  christos 
   1868  1.2       roy /**
   1869  1.3  christos  * Utility method to tell if a given network is for persistent group storage
   1870  1.2       roy  * @ssid: Network object
   1871  1.2       roy  * Returns: 1 if network is a persistent group, 0 otherwise
   1872  1.2       roy  */
   1873  1.2       roy static inline int network_is_persistent_group(struct wpa_ssid *ssid)
   1874  1.2       roy {
   1875  1.3  christos 	return ssid->disabled == 2 && ssid->p2p_persistent_group;
   1876  1.2       roy }
   1877  1.2       roy 
   1878  1.6  christos 
   1879  1.6  christos static inline int wpas_mode_to_ieee80211_mode(enum wpas_mode mode)
   1880  1.6  christos {
   1881  1.6  christos 	switch (mode) {
   1882  1.6  christos 	default:
   1883  1.6  christos 	case WPAS_MODE_INFRA:
   1884  1.6  christos 		return IEEE80211_MODE_INFRA;
   1885  1.6  christos 	case WPAS_MODE_IBSS:
   1886  1.6  christos 		return IEEE80211_MODE_IBSS;
   1887  1.6  christos 	case WPAS_MODE_AP:
   1888  1.6  christos 	case WPAS_MODE_P2P_GO:
   1889  1.6  christos 	case WPAS_MODE_P2P_GROUP_FORMATION:
   1890  1.6  christos 		return IEEE80211_MODE_AP;
   1891  1.6  christos 	case WPAS_MODE_MESH:
   1892  1.6  christos 		return IEEE80211_MODE_MESH;
   1893  1.6  christos 	}
   1894  1.6  christos }
   1895  1.6  christos 
   1896  1.6  christos 
   1897  1.2       roy int wpas_network_disabled(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
   1898  1.2       roy int wpas_get_ssid_pmf(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid);
   1899  1.7  christos int pmf_in_use(struct wpa_supplicant *wpa_s, const u8 *addr);
   1900  1.7  christos void wpa_s_setup_sae_pt(struct wpa_config *conf, struct wpa_ssid *ssid,
   1901  1.7  christos 			bool force);
   1902  1.7  christos void wpa_s_clear_sae_rejected(struct wpa_supplicant *wpa_s);
   1903  1.7  christos 
   1904  1.7  christos bool wpas_is_sae_avoided(struct wpa_supplicant *wpa_s,
   1905  1.7  christos 			struct wpa_ssid *ssid,
   1906  1.7  christos 			const struct wpa_ie_data *ie);
   1907  1.2       roy 
   1908  1.2       roy int wpas_init_ext_pw(struct wpa_supplicant *wpa_s);
   1909  1.2       roy 
   1910  1.2       roy void dump_freq_data(struct wpa_supplicant *wpa_s, const char *title,
   1911  1.2       roy 		    struct wpa_used_freq_data *freqs_data,
   1912  1.2       roy 		    unsigned int len);
   1913  1.2       roy 
   1914  1.2       roy int get_shared_radio_freqs_data(struct wpa_supplicant *wpa_s,
   1915  1.2       roy 				struct wpa_used_freq_data *freqs_data,
   1916  1.7  christos 				unsigned int len, bool exclude_current);
   1917  1.2       roy int get_shared_radio_freqs(struct wpa_supplicant *wpa_s,
   1918  1.7  christos 			   int *freq_array, unsigned int len,
   1919  1.7  christos 			   bool exclude_current);
   1920  1.7  christos int disabled_freq(struct wpa_supplicant *wpa_s, int freq);
   1921  1.2       roy 
   1922  1.3  christos void wpas_network_reenabled(void *eloop_ctx, void *timeout_ctx);
   1923  1.3  christos 
   1924  1.3  christos void wpas_vendor_elem_update(struct wpa_supplicant *wpa_s);
   1925  1.3  christos struct wpa_supplicant * wpas_vendor_elem(struct wpa_supplicant *wpa_s,
   1926  1.3  christos 					 enum wpa_vendor_elem_frame frame);
   1927  1.3  christos int wpas_vendor_elem_remove(struct wpa_supplicant *wpa_s, int frame,
   1928  1.3  christos 			    const u8 *elem, size_t len);
   1929  1.3  christos 
   1930  1.3  christos #ifdef CONFIG_FST
   1931  1.3  christos 
   1932  1.3  christos struct fst_wpa_obj;
   1933  1.3  christos 
   1934  1.3  christos void fst_wpa_supplicant_fill_iface_obj(struct wpa_supplicant *wpa_s,
   1935  1.3  christos 				       struct fst_wpa_obj *iface_obj);
   1936  1.3  christos 
   1937  1.3  christos #endif /* CONFIG_FST */
   1938  1.3  christos 
   1939  1.3  christos int wpas_sched_scan_plans_set(struct wpa_supplicant *wpa_s, const char *cmd);
   1940  1.3  christos 
   1941  1.3  christos struct hostapd_hw_modes * get_mode(struct hostapd_hw_modes *modes,
   1942  1.7  christos 				   u16 num_modes, enum hostapd_hw_mode mode,
   1943  1.7  christos 				   bool is_6ghz);
   1944  1.7  christos struct hostapd_hw_modes * get_mode_with_freq(struct hostapd_hw_modes *modes,
   1945  1.7  christos 					     u16 num_modes, int freq);
   1946  1.3  christos 
   1947  1.3  christos void wpa_bss_tmp_disallow(struct wpa_supplicant *wpa_s, const u8 *bssid,
   1948  1.6  christos 			  unsigned int sec, int rssi_threshold);
   1949  1.6  christos int wpa_is_bss_tmp_disallowed(struct wpa_supplicant *wpa_s,
   1950  1.6  christos 			      struct wpa_bss *bss);
   1951  1.6  christos void free_bss_tmp_disallowed(struct wpa_supplicant *wpa_s);
   1952  1.3  christos 
   1953  1.3  christos struct wpa_ssid * wpa_scan_res_match(struct wpa_supplicant *wpa_s,
   1954  1.3  christos 				     int i, struct wpa_bss *bss,
   1955  1.3  christos 				     struct wpa_ssid *group,
   1956  1.4  christos 				     int only_first_ssid, int debug_print);
   1957  1.4  christos 
   1958  1.4  christos int wpas_ctrl_iface_get_pref_freq_list_override(struct wpa_supplicant *wpa_s,
   1959  1.4  christos 						enum wpa_driver_if_type xif_type,
   1960  1.4  christos 						unsigned int *num,
   1961  1.7  christos 						struct weighted_pcl *freq_list);
   1962  1.4  christos 
   1963  1.4  christos int wpa_is_fils_supported(struct wpa_supplicant *wpa_s);
   1964  1.4  christos int wpa_is_fils_sk_pfs_supported(struct wpa_supplicant *wpa_s);
   1965  1.3  christos 
   1966  1.7  christos void wpas_clear_driver_signal_override(struct wpa_supplicant *wpa_s);
   1967  1.7  christos 
   1968  1.7  christos int wpas_send_mscs_req(struct wpa_supplicant *wpa_s);
   1969  1.7  christos void wpas_populate_mscs_descriptor_ie(struct robust_av_data *robust_av,
   1970  1.7  christos 				      struct wpabuf *buf);
   1971  1.7  christos void wpas_handle_robust_av_recv_action(struct wpa_supplicant *wpa_s,
   1972  1.7  christos 				       const u8 *src, const u8 *buf,
   1973  1.7  christos 				       size_t len);
   1974  1.7  christos void wpas_handle_assoc_resp_mscs(struct wpa_supplicant *wpa_s, const u8 *bssid,
   1975  1.7  christos 				 const u8 *ies, size_t ies_len);
   1976  1.7  christos int wpas_send_scs_req(struct wpa_supplicant *wpa_s);
   1977  1.7  christos void free_up_tclas_elem(struct scs_desc_elem *elem);
   1978  1.7  christos void free_up_scs_desc(struct scs_robust_av_data *data);
   1979  1.7  christos void wpas_handle_robust_av_scs_recv_action(struct wpa_supplicant *wpa_s,
   1980  1.7  christos 					   const u8 *src, const u8 *buf,
   1981  1.7  christos 					   size_t len);
   1982  1.7  christos void wpas_scs_deinit(struct wpa_supplicant *wpa_s);
   1983  1.7  christos void wpas_handle_qos_mgmt_recv_action(struct wpa_supplicant *wpa_s,
   1984  1.7  christos 				      const u8 *src,
   1985  1.7  christos 				      const u8 *buf, size_t len);
   1986  1.7  christos void wpas_dscp_deinit(struct wpa_supplicant *wpa_s);
   1987  1.7  christos int wpas_send_dscp_response(struct wpa_supplicant *wpa_s,
   1988  1.7  christos 			    struct dscp_resp_data *resp_data);
   1989  1.7  christos void wpas_handle_assoc_resp_qos_mgmt(struct wpa_supplicant *wpa_s,
   1990  1.7  christos 				     const u8 *ies, size_t ies_len);
   1991  1.7  christos int wpas_send_dscp_query(struct wpa_supplicant *wpa_s, const char *domain_name,
   1992  1.7  christos 			 size_t domain_name_length);
   1993  1.7  christos 
   1994  1.7  christos int wpas_pasn_auth_start(struct wpa_supplicant *wpa_s, const u8 *own_addr,
   1995  1.7  christos 			 const u8 *bssid, int akmp, int cipher,
   1996  1.7  christos 			 u16 group, int network_id,
   1997  1.7  christos 			 const u8 *comeback, size_t comeback_len);
   1998  1.7  christos void wpas_pasn_auth_stop(struct wpa_supplicant *wpa_s);
   1999  1.7  christos int wpas_pasn_auth_tx_status(struct wpa_supplicant *wpa_s,
   2000  1.7  christos 			     const u8 *data, size_t data_len, u8 acked);
   2001  1.7  christos int wpas_pasn_auth_rx(struct wpa_supplicant *wpa_s,
   2002  1.7  christos 		      const struct ieee80211_mgmt *mgmt, size_t len);
   2003  1.7  christos 
   2004  1.7  christos int wpas_pasn_deauthenticate(struct wpa_supplicant *wpa_s, const u8 *own_addr,
   2005  1.7  christos 			     const u8 *bssid);
   2006  1.7  christos void wpas_pasn_auth_trigger(struct wpa_supplicant *wpa_s,
   2007  1.7  christos 			    struct pasn_auth *pasn_auth);
   2008  1.7  christos void wpas_pasn_auth_work_done(struct wpa_supplicant *wpa_s, int status);
   2009  1.7  christos bool wpas_is_6ghz_supported(struct wpa_supplicant *wpa_s, bool only_enabled);
   2010  1.7  christos 
   2011  1.7  christos bool wpa_is_non_eht_scs_traffic_desc_supported(struct wpa_bss *bss);
   2012  1.7  christos bool wpas_ap_link_address(struct wpa_supplicant *wpa_s, const u8 *addr);
   2013  1.7  christos 
   2014  1.1  christos #endif /* WPA_SUPPLICANT_I_H */
   2015