Lines Matching defs:wpa_supplicant

691 struct wpa_supplicant {  struct
695 struct wpa_supplicant *parent; argument
696 struct wpa_supplicant *p2pdev; argument
697 struct wpa_supplicant *next; argument
698 struct l2_packet_data *l2;
699 struct l2_packet_data *l2_br;
700 struct os_reltime roam_start;
701 struct os_reltime roam_time;
702 struct os_reltime session_start;
703 struct os_reltime session_length;
704 unsigned char own_addr[ETH_ALEN];
705 unsigned char perm_addr[ETH_ALEN];
706 char ifname[100];
708 int matched;
711 char *dbus_new_path;
712 char *dbus_groupobj_path;
714 char *preq_notify_peer;
718 const void *binder_object_key;
720 char bridge_ifname[16];
722 char *confname;
723 char *confanother;
725 struct wpa_config *conf;
726 int countermeasures;
727 struct os_reltime last_michael_mic_error;
728 u8 bssid[ETH_ALEN];
729 u8 pending_bssid[ETH_ALEN]; /* If wpa_state == WPA_ASSOCIATING, this
731 int reassociate; /* reassociation requested */
732 bool roam_in_progress; /* roam in progress */
733 unsigned int reassoc_same_bss:1; /* reassociating to the same BSS */
734 unsigned int reassoc_same_ess:1; /* reassociating to the same ESS */
735 int disconnected; /* all connections disabled; i.e., do no reassociate
737 struct wpa_ssid *current_ssid;
738 struct wpa_ssid *last_ssid;
739 struct wpa_bss *current_bss;
740 int ap_ies_from_associnfo;
741 unsigned int assoc_freq;
742 u8 *last_con_fail_realm;
743 size_t last_con_fail_realm_len;
746 int pairwise_cipher;
747 int deny_ptk0_rekey;
748 int group_cipher;
749 int key_mgmt;
750 int wpa_proto;
751 int mgmt_group_cipher;
753 void *drv_priv; /* private data used by driver_ops */
754 void *global_drv_priv;
756 u8 *bssid_filter;
757 size_t bssid_filter_count;
759 u8 *disallow_aps_bssid;
760 size_t disallow_aps_bssid_count;
761 struct wpa_ssid_value *disallow_aps_ssid;
762 size_t disallow_aps_ssid_count;
787 void (*scan_res_handler)(struct wpa_supplicant *wpa_s, argument
789 void (*scan_res_fail_handler)(struct wpa_supplicant *wpa_s); argument
790 struct dl_list bss; /* struct wpa_bss::list */
791 struct dl_list bss_id; /* struct wpa_bss::list_id */
792 size_t num_bss;
793 unsigned int bss_update_idx;
794 unsigned int bss_next_id;
800 struct wpa_bss **last_scan_res;
801 size_t last_scan_res_used;
802 size_t last_scan_res_size;
803 struct os_reltime last_scan;
805 const struct wpa_driver_ops *driver;
806 int interface_removed; /* whether the network interface has been
808 struct wpa_sm *wpa;
809 struct ptksa_cache *ptksa;
811 struct eapol_sm *eapol;
813 struct ctrl_iface_priv *ctrl_iface;
815 enum wpa_states wpa_state;
816 struct wpa_radio_work *scan_work;
817 int scanning;
818 int sched_scanning;
819 unsigned int sched_scan_stop_req:1;
820 int new_connection;
822 int eapol_received; /* number of EAPOL packets received after the
825 u8 rsnxe[20];
849 * This is used for scans initiated by wpa_supplicant to find an argument
871 } scan_req, last_scan_req;
872 enum wpa_states scan_prev_wpa_state;
873 struct os_reltime scan_trigger_time, scan_start_time;
875 struct os_reltime scan_min_time;
876 int scan_runs; /* number of scan runs since WPS was started */
877 int *next_scan_freqs;
878 int *select_network_scan_freqs;
879 int *manual_scan_freqs;
880 int *manual_sched_scan_freqs;
881 unsigned int manual_scan_passive:1;
882 unsigned int manual_scan_use_id:1;
883 unsigned int manual_scan_only_new:1;
884 unsigned int own_scan_requested:1;
885 unsigned int own_scan_running:1;
886 unsigned int clear_driver_scan_cache:1;
887 unsigned int manual_scan_id;
888 int scan_interval; /* time in sec between scans to find suitable AP */
889 int normal_scans; /* normal scans run before sched_scan */
890 int scan_for_connection; /* whether the scan request was triggered for
897 u64 curr_scan_cookie;
899 int scan_id[MAX_SCAN_ID];
900 unsigned int scan_id_count;
901 u8 next_scan_bssid[ETH_ALEN];
902 unsigned int next_scan_bssid_wildcard_ssid:1;
904 struct wpa_ssid_value *ssids_from_scan_req;
905 unsigned int num_ssids_from_scan_req;
906 int *last_scan_freqs;
907 unsigned int num_last_scan_freqs;
908 unsigned int suitable_network;
909 unsigned int no_suitable_network;
911 u64 drv_flags;
912 u64 drv_flags2;
913 unsigned int drv_enc;
914 unsigned int drv_rrm_flags;
920 unsigned int probe_resp_offloads;
923 const u8 *extended_capa, *extended_capa_mask;
924 unsigned int extended_capa_len;
926 int max_scan_ssids;
927 int max_sched_scan_ssids;
928 unsigned int max_sched_scan_plans;
929 unsigned int max_sched_scan_plan_interval;
930 unsigned int max_sched_scan_plan_iterations;
931 int sched_scan_supported;
932 unsigned int max_match_sets;
933 unsigned int max_remain_on_chan;
934 unsigned int max_stations;
936 int pending_mic_error_report;
937 int pending_mic_error_pairwise;
938 int mic_errors_seen; /* Michael MIC errors with the current PTK */
940 struct wps_context *wps;
941 int wps_success; /* WPS success event received */
942 struct wps_er *wps_er;
943 unsigned int wps_run;
944 struct os_reltime wps_pin_start_time;
945 bool bssid_ignore_cleared;
947 struct wpabuf *pending_eapol_rx;
948 struct os_reltime pending_eapol_rx_time;
949 u8 pending_eapol_rx_src[ETH_ALEN];
950 unsigned int last_eapol_matches_bssid:1;
951 unsigned int eap_expected_failure:1;
952 unsigned int reattach:1; /* reassociation to the same BSS requested */
953 unsigned int mac_addr_changed:1;
954 unsigned int added_vif:1;
955 unsigned int wnmsleep_used:1;
956 unsigned int owe_transition_select:1;
957 unsigned int owe_transition_search:1;
958 unsigned int connection_set:1;
959 unsigned int connection_ht:1;
960 unsigned int connection_vht:1;
961 unsigned int connection_he:1;
962 unsigned int disable_mbo_oce:1;
963 unsigned int connection_a:1;
964 unsigned int connection_b:1;
965 unsigned int connection_g:1;
967 struct os_reltime last_mac_addr_change;
968 int last_mac_addr_style;
970 struct ibss_rsn *ibss_rsn;
972 int set_sta_uapsd;
973 int sta_uapsd;
974 int set_ap_uapsd;
975 int ap_uapsd;
976 int auth_alg;
977 u16 last_owe_group;
980 struct {
1021 } sme;
1025 struct hostapd_iface *ap_iface;
1026 void (*ap_configured_cb)(void *ctx, void *data);
1027 void *ap_configured_cb_ctx;
1028 void *ap_configured_cb_data;
1031 struct hostapd_iface *ifmsh;
1055 void (*pending_action_tx_status_cb)(struct wpa_supplicant *wpa_s, argument
1061 unsigned int roc_waiting_drv_freq;
1062 int action_tx_wait_time;
1063 int action_tx_wait_time_used;
1065 int p2p_mgmt;
1068 struct p2p_go_neg_results *go_params;
1069 int create_p2p_iface;
1070 u8 pending_interface_addr[ETH_ALEN];
1071 char pending_interface_name[100];
1072 int pending_interface_type;
1073 int p2p_group_idx;
1074 unsigned int pending_listen_freq;
1075 unsigned int pending_listen_duration;
1076 enum {
1081 } p2p_group_interface;
1082 struct p2p_group *p2p_group;
1083 char p2p_pin[10];
1084 int p2p_wps_method;
1085 u8 p2p_auth_invite[ETH_ALEN];
1086 int p2p_sd_over_ctrl_iface;
1087 int p2p_in_provisioning;
1088 int p2p_in_invitation;
1089 int p2p_invite_go_freq;
1090 int pending_invite_ssid_id;
1091 int show_group_started;
1092 u8 go_dev_addr[ETH_ALEN];
1093 int pending_pd_before_join;
1094 u8 pending_join_iface_addr[ETH_ALEN];
1095 u8 pending_join_dev_addr[ETH_ALEN];
1096 int pending_join_wps_method;
1097 u8 p2p_join_ssid[SSID_MAX_LEN];
1098 size_t p2p_join_ssid_len;
1099 int p2p_join_scan_count;
1100 int auto_pd_scan_retry;
1101 int force_long_sd;
1102 u16 pending_pd_config_methods;
1103 enum {
1105 } pending_pd_use;
1111 int cross_connect_disallowed;
1118 int cross_connect_enabled;
1121 int cross_connect_in_use;
1126 char cross_connect_uplink[100];
1128 unsigned int p2p_auto_join:1;
1129 unsigned int p2p_auto_pd:1;
1130 unsigned int p2p_go_do_acs:1;
1131 unsigned int p2p_persistent_group:1;
1132 unsigned int p2p_fallback_to_go_neg:1;
1133 unsigned int p2p_pd_before_go_neg:1;
1134 unsigned int p2p_go_ht40:1;
1135 unsigned int p2p_go_vht:1;
1136 unsigned int p2p_go_edmg:1;
1137 unsigned int p2p_go_he:1;
1138 unsigned int user_initiated_pd:1;
1139 unsigned int p2p_go_group_formation_completed:1;
1140 unsigned int group_formation_reported:1;
1141 unsigned int waiting_presence_resp;
1142 int p2p_first_connection_timeout;
1143 unsigned int p2p_nfc_tag_enabled:1;
1144 unsigned int p2p_peer_oob_pk_hash_known:1;
1145 unsigned int p2p_disable_ip_addr_req:1;
1146 unsigned int p2ps_method_config_any:1;
1147 unsigned int p2p_cli_probe:1;
1148 unsigned int p2p_go_allow_dfs:1;
1149 enum hostapd_hw_mode p2p_go_acs_band;
1150 int p2p_persistent_go_freq;
1151 int p2p_persistent_id;
1152 int p2p_go_intent;
1153 int p2p_connect_freq;
1154 struct os_reltime p2p_auto_started;
1155 struct wpa_ssid *p2p_last_4way_hs_fail;
1156 struct wpa_radio_work *p2p_scan_work;
1157 struct wpa_radio_work *p2p_listen_work;
1158 struct wpa_radio_work *p2p_send_action_work;
1160 u16 p2p_oob_dev_pw_id; /* OOB Device Password Id for group formation */
1161 struct wpabuf *p2p_oob_dev_pw; /* OOB Device Password for group
1163 u8 p2p_peer_oob_pubkey_hash[WPS_OOB_PUBKEY_HASH_LEN];
1164 u8 p2p_ip_addr_info[3 * 4];
1167 int *p2p_group_common_freqs;
1168 unsigned int p2p_group_common_freqs_num;
1169 u8 p2ps_join_addr[ETH_ALEN];
1171 unsigned int p2p_go_max_oper_chwidth;
1172 unsigned int p2p_go_vht_center_freq2;
1173 int p2p_lo_started;
1176 struct wpa_ssid *bgscan_ssid;
1177 const struct bgscan_ops *bgscan;
1178 void *bgscan_priv;
1180 const struct autoscan_ops *autoscan;
1181 struct wpa_driver_scan_params *autoscan_params;
1182 void *autoscan_priv;
1184 struct wpa_ssid *connect_without_scan;
1186 struct wps_ap_info *wps_ap;
1187 size_t num_wps_ap;
1188 int wps_ap_iter;
1190 int after_wps;
1191 int known_wps_freq;
1192 unsigned int wps_freq;
1193 int wps_fragment_size;
1194 int auto_reconnect_disabled;
1197 int best_24_freq;
1198 int best_5_freq;
1199 int best_overall_freq;
1201 struct gas_query *gas;
1202 struct gas_server *gas_server;
1205 unsigned int fetch_anqp_in_progress:1;
1206 unsigned int network_select:1;
1207 unsigned int auto_select:1;
1208 unsigned int auto_network_select:1;
1209 unsigned int interworking_fast_assoc_tried:1;
1210 unsigned int fetch_all_anqp:1;
1211 unsigned int fetch_osu_info:1;
1212 unsigned int fetch_osu_waiting_scan:1;
1213 unsigned int fetch_osu_icon_in_progress:1;
1214 struct wpa_bss *interworking_gas_bss;
1215 unsigned int osu_icon_id;
1216 struct dl_list icon_head; /* struct icon_entry */
1217 struct osu_provider *osu_prov;
1218 size_t osu_prov_count;
1219 struct os_reltime osu_icon_fetch_start;
1220 unsigned int num_osu_scans;
1221 unsigned int num_prov_found;
1223 unsigned int drv_capa_known;
1225 struct {
1229 } hw;
1230 enum local_hw_capab {
1235 } hw_capab;
1237 struct ieee802_1x_kay *kay;
1240 int pno;
1241 int pno_sched_pending;
1244 int disconnect_reason;
1248 u16 auth_status_code;
1251 u16 assoc_status_code;
1253 struct ext_password_data *ext_pw;
1255 struct wpabuf *last_gas_resp, *prev_gas_resp;
1256 u8 last_gas_addr[ETH_ALEN], prev_gas_addr[ETH_ALEN];
1257 u8 last_gas_dialog_token, prev_gas_dialog_token;
1259 unsigned int no_keep_alive:1;
1260 unsigned int ext_mgmt_frame_handling:1;
1261 unsigned int ext_eapol_frame_io:1;
1262 unsigned int wmm_ac_supported:1;
1263 unsigned int ext_work_in_progress:1;
1264 unsigned int own_disconnect_req:1;
1265 unsigned int own_reconnect_req:1;
1266 unsigned int ignore_post_flush_scan_res:1;
1274 unsigned int mac_addr_rand_supported;
1275 unsigned int mac_addr_rand_enable;
1278 u8 *mac_addr_scan;
1279 u8 *mac_addr_sched_scan;
1280 u8 *mac_addr_pno;
1283 u8 wnm_dialog_token;
1284 u8 wnm_reply;
1285 u8 wnm_num_neighbor_report;
1286 u8 wnm_mode;
1287 u16 wnm_dissoc_timer;
1288 u8 wnm_bss_termination_duration[12];
1289 struct neighbor_report *wnm_neighbor_report_elements;
1290 struct os_reltime wnm_cand_valid_until;
1291 u8 wnm_cand_from_bss[ETH_ALEN];
1292 enum bss_trans_mgmt_status_code bss_tm_status;
1293 bool bss_trans_mgmt_in_progress;
1294 struct wpabuf *coloc_intf_elems;
1295 u8 coloc_intf_dialog_token;
1319 enum wpa_supplicant_test_failure test_failure; argument
1320 char *get_pref_freq_list_override;
1321 unsigned int reject_btm_req_reason;
1322 unsigned int p2p_go_csa_on_inv:1;
1323 unsigned int ignore_auth_resp:1;
1324 unsigned int ignore_assoc_disallow:1;
1325 unsigned int disable_sa_query:1;
1326 unsigned int testing_resend_assoc:1;
1327 unsigned int ignore_sae_h2e_only:1;
1328 int ft_rsnxe_used;
1329 struct wpabuf *sae_commit_override;
1330 enum wpa_alg last_tk_alg;
1331 u8 last_tk_addr[ETH_ALEN];
1332 int last_tk_key_idx;
1333 u8 last_tk[WPA_TK_MAX_LEN];
1334 size_t last_tk_len;
1335 struct wpabuf *last_assoc_req_wpa_ie;
1336 int *extra_sae_rejected_groups;
1337 struct wpabuf *rsne_override_eapol;
1338 struct wpabuf *rsnxe_override_assoc;
1339 struct wpabuf *rsnxe_override_eapol;
1340 struct dl_list drv_signal_override;
1341 unsigned int oci_freq_override_eapol;
1342 unsigned int oci_freq_override_saquery_req;
1343 unsigned int oci_freq_override_saquery_resp;
1344 unsigned int oci_freq_override_eapol_g2;
1345 unsigned int oci_freq_override_ft_assoc;
1346 unsigned int oci_freq_override_fils_assoc;
1347 unsigned int oci_freq_override_wnm_sleep;
1350 struct wmm_ac_assoc_data *wmm_ac_assoc_info;
1351 struct wmm_tspec_element *tspecs[WMM_AC_NUM][TS_DIR_IDX_COUNT];
1352 struct wmm_ac_addts_request *addts_request;
1353 u8 wmm_ac_last_dialog_token;
1354 struct wmm_tspec_element *last_tspecs;
1355 u8 last_tspecs_count;
1357 struct rrm_data rrm;
1358 struct beacon_rep_data beacon_rep_data;
1361 struct fst_iface *fst;
1362 const struct wpabuf *fst_ies;
1363 struct wpabuf *received_mb_ies;
1368 struct wpa_mbo_non_pref_channel {
1373 } *non_pref_chan;
1374 size_t non_pref_chan_num;
1375 u8 mbo_wnm_token;
1383 u8 enable_oce;
1390 struct dl_list bss_tmp_disallowed;
1396 struct wpabuf *lci;
1397 struct os_reltime lci_time;
1399 struct os_reltime beacon_rep_scan;
1402 struct dl_list fils_hlp_req;
1404 struct sched_scan_relative_params {
1435 } srp;
1438 struct wpabuf *ric_ies;
1440 int last_auth_timeout_sec;
1443 struct dpp_global *dpp;
1444 struct dpp_authentication *dpp_auth;
1445 struct wpa_radio_work *dpp_listen_work;
1446 unsigned int dpp_pending_listen_freq;
1447 unsigned int dpp_listen_freq;
1448 struct os_reltime dpp_listen_end;
1449 u8 dpp_allowed_roles;
1450 int dpp_qr_mutual;
1451 int dpp_netrole;
1452 int dpp_auth_ok_on_ack;
1453 int dpp_in_response_listen;
1454 int dpp_gas_client;
1455 int dpp_gas_server;
1456 int dpp_gas_dialog_token;
1457 u8 dpp_intro_bssid[ETH_ALEN];
1458 void *dpp_intro_network;
1459 struct dpp_pkex *dpp_pkex;
1460 struct dpp_bootstrap_info *dpp_pkex_bi;
1461 char *dpp_pkex_code;
1462 char *dpp_pkex_identifier;
1463 enum dpp_pkex_ver dpp_pkex_ver;
1464 char *dpp_pkex_auth_cmd;
1465 char *dpp_configurator_params;
1466 struct os_reltime dpp_last_init;
1467 struct os_reltime dpp_init_iter_start;
1468 unsigned int dpp_init_max_tries;
1469 unsigned int dpp_init_retry_time;
1470 unsigned int dpp_resp_wait_time;
1471 unsigned int dpp_resp_max_tries;
1472 unsigned int dpp_resp_retry_time;
1473 u8 dpp_last_ssid[SSID_MAX_LEN];
1474 size_t dpp_last_ssid_len;
1475 bool dpp_conf_backup_received;
1476 bool dpp_pkex_wait_auth_req;
1478 struct dpp_pfs *dpp_pfs;
1479 int dpp_pfs_fallback;
1480 struct wpabuf *dpp_presence_announcement;
1481 struct dpp_bootstrap_info *dpp_chirp_bi;
1482 int dpp_chirp_freq;
1483 int *dpp_chirp_freqs;
1484 int dpp_chirp_iter;
1485 int dpp_chirp_round;
1486 int dpp_chirp_scan_done;
1487 int dpp_chirp_listen;
1488 struct wpa_ssid *dpp_reconfig_ssid;
1489 int dpp_reconfig_ssid_id;
1490 struct dpp_reconfig_id *dpp_reconfig_id;
1493 char *dpp_config_obj_override;
1494 char *dpp_discovery_override;
1495 char *dpp_groups_override;
1496 unsigned int dpp_ignore_netaccesskey_mismatch:1;
1501 unsigned int disable_fils:1;
1503 unsigned int ieee80211ac:1;
1504 unsigned int enabled_4addr_mode:1;
1505 unsigned int multi_bss_support:1;
1506 unsigned int drv_authorized_port:1;
1507 unsigned int multi_ap_ie:1;
1508 unsigned int multi_ap_backhaul:1;
1509 unsigned int multi_ap_fronthaul:1;
1534 /* wpa_supplicant.c */ argument