Lines Matching refs:hapd
44 void hostapd_notify_assoc_fils_finish(struct hostapd_data *hapd, in hostapd_notify_assoc_fils_finish() argument
54 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notify_assoc_fils_finish()
70 reply_res = hostapd_sta_assoc(hapd, sta->addr, in hostapd_notify_assoc_fils_finish()
74 ap_sta_set_authorized(hapd, sta, 1); in hostapd_notify_assoc_fils_finish()
78 hostapd_set_sta_flags(hapd, sta); in hostapd_notify_assoc_fils_finish()
81 hostapd_new_assoc_sta(hapd, sta, !new_assoc); in hostapd_notify_assoc_fils_finish()
89 fils_hlp_deinit(hapd); in hostapd_notify_assoc_fils_finish()
97 hostapd_drv_sta_remove(hapd, sta->addr); in hostapd_notify_assoc_fils_finish()
104 int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr, in hostapd_notif_assoc() argument
134 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notif_assoc()
163 sta = ap_get_sta(hapd, addr); in hostapd_notif_assoc()
165 ap_sta_no_session_timeout(hapd, sta); in hostapd_notif_assoc()
166 accounting_sta_stop(hapd, sta); in hostapd_notif_assoc()
174 sta = ap_sta_add(hapd, addr); in hostapd_notif_assoc()
176 hostapd_drv_sta_disassoc(hapd, addr, in hostapd_notif_assoc()
190 if (hapd->iface->drv_max_acl_mac_addrs == 0 && in hostapd_notif_assoc()
191 hostapd_check_acl(hapd, addr, NULL) != HOSTAPD_ACL_ACCEPT) { in hostapd_notif_assoc()
211 (hapd->iface->conf->ht_capab & in hostapd_notif_assoc()
219 ht40_intolerant_add(hapd->iface, sta); in hostapd_notif_assoc()
242 if (hapd->iface->fst) in hostapd_notif_assoc()
248 mbo_ap_check_sta_assoc(hapd, sta, &elems); in hostapd_notif_assoc()
253 if (hapd->conf->wpa) { in hostapd_notif_assoc()
256 if (hapd->conf->wps_state) { in hostapd_notif_assoc()
268 if (hapd->conf->wps_state && ie[0] == 0xdd && ie[1] >= 4 && in hostapd_notif_assoc()
288 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
296 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
333 ap_check_sa_query_timeout(hapd, sta); in hostapd_notif_assoc()
344 ap_sta_start_sa_query(hapd, sta); in hostapd_notif_assoc()
348 p = hostapd_eid_assoc_comeback_time(hapd, sta, p); in hostapd_notif_assoc()
350 hostapd_sta_assoc(hapd, addr, reassoc, status, buf, in hostapd_notif_assoc()
376 } else if (hapd->conf->wps_state) { in hostapd_notif_assoc()
405 } else if (hapd->conf->osen) { in hostapd_notif_assoc()
408 hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notif_assoc()
416 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
423 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
430 if (hapd->conf->mbo_enabled && (hapd->conf->wpa & 2) && in hostapd_notif_assoc()
432 hapd->conf->ieee80211w != NO_MGMT_FRAME_PROTECTION) { in hostapd_notif_assoc()
473 if (fils_process_hlp(hapd, sta, req_ies, req_ies_len) > 0) { in hostapd_notif_assoc()
484 eloop_cancel_timeout(fils_hlp_timeout, hapd, sta); in hostapd_notif_assoc()
511 0, hapd->conf->fils_hlp_wait_time * 1024, in hostapd_notif_assoc()
512 fils_hlp_timeout, hapd, sta); in hostapd_notif_assoc()
524 hostapd_sta_assoc(hapd, addr, reassoc, status, buf, p - buf); in hostapd_notif_assoc()
530 ap_sta_set_authorized(hapd, sta, 1); in hostapd_notif_assoc()
541 hostapd_set_sta_flags(hapd, sta); in hostapd_notif_assoc()
554 hostapd_new_assoc_sta(hapd, sta, !new_assoc); in hostapd_notif_assoc()
560 p2p_group_notif_assoc(hapd->p2p_group, sta->addr, in hostapd_notif_assoc()
569 hostapd_sta_assoc(hapd, addr, reassoc, status, buf, p - buf); in hostapd_notif_assoc()
571 hostapd_drv_sta_disassoc(hapd, sta->addr, reason); in hostapd_notif_assoc()
572 ap_free_sta(hapd, sta); in hostapd_notif_assoc()
577 void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr) in hostapd_notif_disassoc() argument
594 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notif_disassoc()
597 sta = ap_get_sta(hapd, addr); in hostapd_notif_disassoc()
605 ap_sta_set_authorized(hapd, sta, 0); in hostapd_notif_disassoc()
610 ap_free_sta(hapd, sta); in hostapd_notif_disassoc()
614 void hostapd_event_sta_low_ack(struct hostapd_data *hapd, const u8 *addr) in hostapd_event_sta_low_ack() argument
616 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_event_sta_low_ack()
618 if (!sta || !hapd->conf->disassoc_low_ack) in hostapd_event_sta_low_ack()
621 hostapd_logger(hapd, addr, HOSTAPD_MODULE_IEEE80211, in hostapd_event_sta_low_ack()
624 hostapd_drv_sta_disassoc(hapd, addr, WLAN_REASON_DISASSOC_LOW_ACK); in hostapd_event_sta_low_ack()
625 ap_sta_disassociate(hapd, sta, WLAN_REASON_DISASSOC_LOW_ACK); in hostapd_event_sta_low_ack()
629 void hostapd_event_ch_switch(struct hostapd_data *hapd, int freq, int ht, in hostapd_event_ch_switch() argument
636 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in hostapd_event_ch_switch()
642 hapd->iface->freq = freq; in hostapd_event_ch_switch()
644 channel = hostapd_hw_get_channel(hapd, freq); in hostapd_event_ch_switch()
646 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in hostapd_event_ch_switch()
670 switch (hapd->iface->current_mode->mode) { in hostapd_event_ch_switch()
683 hapd->iconf->channel = channel; in hostapd_event_ch_switch()
684 hapd->iconf->ieee80211n = ht; in hostapd_event_ch_switch()
686 hapd->iconf->ieee80211ac = 0; in hostapd_event_ch_switch()
687 hapd->iconf->secondary_channel = offset; in hostapd_event_ch_switch()
688 hapd->iconf->vht_oper_chwidth = chwidth; in hostapd_event_ch_switch()
689 hapd->iconf->vht_oper_centr_freq_seg0_idx = seg0_idx; in hostapd_event_ch_switch()
690 hapd->iconf->vht_oper_centr_freq_seg1_idx = seg1_idx; in hostapd_event_ch_switch()
694 if (hapd->csa_in_progress && in hostapd_event_ch_switch()
695 freq == hapd->cs_freq_params.freq) { in hostapd_event_ch_switch()
696 hostapd_cleanup_cs_params(hapd); in hostapd_event_ch_switch()
697 ieee802_11_set_beacon(hapd); in hostapd_event_ch_switch()
699 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED in hostapd_event_ch_switch()
701 } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) { in hostapd_event_ch_switch()
702 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_CSA_FINISHED in hostapd_event_ch_switch()
709 void hostapd_event_connect_failed_reason(struct hostapd_data *hapd, in hostapd_event_connect_failed_reason() argument
714 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_REJECTED_MAX_STA MACSTR, in hostapd_event_connect_failed_reason()
718 wpa_msg(hapd->msg_ctx, MSG_INFO, AP_REJECTED_BLOCKED_STA MACSTR, in hostapd_event_connect_failed_reason()
726 void hostapd_acs_channel_selected(struct hostapd_data *hapd, in hostapd_acs_channel_selected() argument
732 if (hapd->iconf->channel) { in hostapd_acs_channel_selected()
734 hapd->iconf->channel); in hostapd_acs_channel_selected()
738 if (!hapd->iface->current_mode) { in hostapd_acs_channel_selected()
739 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_acs_channel_selected()
741 &hapd->iface->hw_features[i]; in hostapd_acs_channel_selected()
744 hapd->iface->current_mode = mode; in hostapd_acs_channel_selected()
748 if (!hapd->iface->current_mode) { in hostapd_acs_channel_selected()
749 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in hostapd_acs_channel_selected()
757 hapd->iface->freq = hostapd_hw_get_freq(hapd, acs_res->pri_channel); in hostapd_acs_channel_selected()
760 hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, in hostapd_acs_channel_selected()
767 hapd->iconf->channel = acs_res->pri_channel; in hostapd_acs_channel_selected()
768 hapd->iconf->acs = 1; in hostapd_acs_channel_selected()
771 hapd->iconf->secondary_channel = 0; in hostapd_acs_channel_selected()
773 hapd->iconf->secondary_channel = -1; in hostapd_acs_channel_selected()
775 hapd->iconf->secondary_channel = 1; in hostapd_acs_channel_selected()
782 if (hapd->iface->conf->ieee80211ac) { in hostapd_acs_channel_selected()
784 hapd->iconf->vht_oper_centr_freq_seg1_idx = 0; in hostapd_acs_channel_selected()
785 hapd->iconf->vht_oper_centr_freq_seg0_idx = 0; in hostapd_acs_channel_selected()
786 hapd->iconf->vht_oper_chwidth = VHT_CHANWIDTH_USE_HT; in hostapd_acs_channel_selected()
788 hapd->iconf->vht_oper_centr_freq_seg0_idx = in hostapd_acs_channel_selected()
790 hapd->iconf->vht_oper_chwidth = VHT_CHANWIDTH_80MHZ; in hostapd_acs_channel_selected()
793 hapd->iconf->vht_oper_centr_freq_seg0_idx = in hostapd_acs_channel_selected()
795 hapd->iconf->vht_oper_chwidth = in hostapd_acs_channel_selected()
798 hapd->iconf->vht_oper_centr_freq_seg0_idx = in hostapd_acs_channel_selected()
800 hapd->iconf->vht_oper_centr_freq_seg1_idx = in hostapd_acs_channel_selected()
802 hapd->iconf->vht_oper_chwidth = in hostapd_acs_channel_selected()
809 ret = hostapd_acs_completed(hapd->iface, err); in hostapd_acs_channel_selected()
818 int hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *da, in hostapd_probe_req_rx() argument
829 for (i = 0; hapd->probereq_cb && i < hapd->num_probereq_cb; i++) { in hostapd_probe_req_rx()
830 if (hapd->probereq_cb[i].cb(hapd->probereq_cb[i].ctx, in hostapd_probe_req_rx()
849 struct hostapd_data *hapd = ctx; in hostapd_notify_auth_ft_finish() local
852 sta = ap_get_sta(hapd, dst); in hostapd_notify_auth_ft_finish()
856 hostapd_logger(hapd, dst, HOSTAPD_MODULE_IEEE80211, in hostapd_notify_auth_ft_finish()
860 hostapd_sta_auth(hapd, dst, auth_transaction, status, ies, ies_len); in hostapd_notify_auth_ft_finish()
866 static void hostapd_notify_auth_fils_finish(struct hostapd_data *hapd, in hostapd_notify_auth_fils_finish() argument
871 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notify_auth_fils_finish()
876 mlme_authenticate_indication(hapd, sta); in hostapd_notify_auth_fils_finish()
878 hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211, in hostapd_notify_auth_fils_finish()
883 hostapd_sta_auth(hapd, sta->addr, 2, resp, in hostapd_notify_auth_fils_finish()
891 static void hostapd_notif_auth(struct hostapd_data *hapd, in hostapd_notif_auth() argument
899 sta = ap_get_sta(hapd, rx_auth->peer); in hostapd_notif_auth()
901 sta = ap_sta_add(hapd, rx_auth->peer); in hostapd_notif_auth()
910 if (rx_auth->auth_type == WLAN_AUTH_FT && hapd->wpa_auth) { in hostapd_notif_auth()
913 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_auth()
924 hostapd_notify_auth_ft_finish, hapd); in hostapd_notif_auth()
932 handle_auth_fils(hapd, sta, rx_auth->ies, rx_auth->ies_len, in hostapd_notif_auth()
941 hostapd_sta_auth(hapd, rx_auth->peer, rx_auth->auth_transaction + 1, in hostapd_notif_auth()
946 static void hostapd_action_rx(struct hostapd_data *hapd, in hostapd_action_rx() argument
967 sta = ap_get_sta(hapd, mgmt->sa); in hostapd_action_rx()
982 hapd, mgmt->sa, in hostapd_action_rx()
989 ieee802_11_rx_wnm_action_ap(hapd, mgmt, drv_mgmt->frame_len); in hostapd_action_rx()
993 if (mgmt->u.action.category == WLAN_ACTION_FST && hapd->iface->fst) { in hostapd_action_rx()
994 fst_rx_action(hapd->iface->fst, mgmt, drv_mgmt->frame_len); in hostapd_action_rx()
1010 hostapd_dpp_rx_action(hapd, mgmt->sa, pos, end - pos, in hostapd_action_rx()
1042 static void hostapd_rx_from_unknown_sta(struct hostapd_data *hapd, in hostapd_rx_from_unknown_sta() argument
1046 hapd = get_hapd_bssid(hapd->iface, bssid); in hostapd_rx_from_unknown_sta()
1047 if (hapd == NULL || hapd == HAPD_BROADCAST) in hostapd_rx_from_unknown_sta()
1050 ieee802_11_rx_from_unknown(hapd, addr, wds); in hostapd_rx_from_unknown_sta()
1054 static int hostapd_mgmt_rx(struct hostapd_data *hapd, struct rx_mgmt *rx_mgmt) in hostapd_mgmt_rx() argument
1056 struct hostapd_iface *iface = hapd->iface; in hostapd_mgmt_rx()
1063 if (hapd->ext_mgmt_frame_handling) { in hostapd_mgmt_rx()
1070 wpa_msg(hapd->msg_ctx, MSG_INFO, "MGMT-RX %s", hex); in hostapd_mgmt_rx()
1082 hapd = get_hapd_bssid(iface, bssid); in hostapd_mgmt_rx()
1083 if (hapd == NULL) { in hostapd_mgmt_rx()
1092 hapd = iface->bss[0]; in hostapd_mgmt_rx()
1101 if (hapd == HAPD_BROADCAST) { in hostapd_mgmt_rx()
1117 ret = ieee802_11_mgmt(hapd, rx_mgmt->frame, rx_mgmt->frame_len, in hostapd_mgmt_rx()
1126 static void hostapd_mgmt_tx_cb(struct hostapd_data *hapd, const u8 *buf, in hostapd_mgmt_tx_cb() argument
1130 struct hostapd_data *orig_hapd = hapd; in hostapd_mgmt_tx_cb()
1133 hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len)); in hostapd_mgmt_tx_cb()
1134 if (!hapd) in hostapd_mgmt_tx_cb()
1136 if (hapd == HAPD_BROADCAST) { in hostapd_mgmt_tx_cb()
1140 hapd = get_hapd_bssid(orig_hapd->iface, hdr->addr2); in hostapd_mgmt_tx_cb()
1141 if (!hapd || hapd == HAPD_BROADCAST) in hostapd_mgmt_tx_cb()
1148 ieee802_11_mgmt_cb(hapd, buf, len, stype, ok); in hostapd_mgmt_tx_cb()
1154 static int hostapd_event_new_sta(struct hostapd_data *hapd, const u8 *addr) in hostapd_event_new_sta() argument
1156 struct sta_info *sta = ap_get_sta(hapd, addr); in hostapd_event_new_sta()
1163 sta = ap_sta_add(hapd, addr); in hostapd_event_new_sta()
1165 hostapd_new_assoc_sta(hapd, sta, 0); in hostapd_event_new_sta()
1176 static void hostapd_event_eapol_rx(struct hostapd_data *hapd, const u8 *src, in hostapd_event_eapol_rx() argument
1179 struct hostapd_iface *iface = hapd->iface; in hostapd_event_eapol_rx()
1186 hapd = iface->bss[j]; in hostapd_event_eapol_rx()
1191 ieee802_1x_receive(hapd, src, data, data_len); in hostapd_event_eapol_rx()
1305 static void hostapd_event_iface_unavailable(struct hostapd_data *hapd) in hostapd_event_iface_unavailable() argument
1308 hapd->conf->iface); in hostapd_event_iface_unavailable()
1310 if (hapd->csa_in_progress) { in hostapd_event_iface_unavailable()
1312 hapd->conf->iface); in hostapd_event_iface_unavailable()
1313 hostapd_switch_channel_fallback(hapd->iface, in hostapd_event_iface_unavailable()
1314 &hapd->cs_freq_params); in hostapd_event_iface_unavailable()
1319 static void hostapd_event_dfs_radar_detected(struct hostapd_data *hapd, in hostapd_event_dfs_radar_detected() argument
1323 hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_radar_detected()
1329 static void hostapd_event_dfs_pre_cac_expired(struct hostapd_data *hapd, in hostapd_event_dfs_pre_cac_expired() argument
1333 hostapd_dfs_pre_cac_expired(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_pre_cac_expired()
1339 static void hostapd_event_dfs_cac_finished(struct hostapd_data *hapd, in hostapd_event_dfs_cac_finished() argument
1343 hostapd_dfs_complete_cac(hapd->iface, 1, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_finished()
1349 static void hostapd_event_dfs_cac_aborted(struct hostapd_data *hapd, in hostapd_event_dfs_cac_aborted() argument
1353 hostapd_dfs_complete_cac(hapd->iface, 0, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_aborted()
1359 static void hostapd_event_dfs_nop_finished(struct hostapd_data *hapd, in hostapd_event_dfs_nop_finished() argument
1363 hostapd_dfs_nop_finished(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_nop_finished()
1369 static void hostapd_event_dfs_cac_started(struct hostapd_data *hapd, in hostapd_event_dfs_cac_started() argument
1373 hostapd_dfs_start_cac(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_started()
1384 struct hostapd_data *hapd = ctx; in wpa_supplicant_event() local
1403 wpa_dbg(hapd->msg_ctx, level, "Event %s (%d) received", in wpa_supplicant_event()
1409 michael_mic_failure(hapd, data->michael_mic_failure.src, 1); in wpa_supplicant_event()
1412 if (hapd->iface->scan_cb) in wpa_supplicant_event()
1413 hapd->iface->scan_cb(hapd->iface); in wpa_supplicant_event()
1416 hostapd_wps_button_pushed(hapd, NULL); in wpa_supplicant_event()
1422 hostapd_mgmt_tx_cb(hapd, data->tx_status.data, in wpa_supplicant_event()
1428 hostapd_tx_status(hapd, data->tx_status.dst, in wpa_supplicant_event()
1436 hostapd_eapol_tx_status(hapd, data->eapol_tx_status.dst, in wpa_supplicant_event()
1442 hostapd_client_poll_ok(hapd, data->client_poll.addr); in wpa_supplicant_event()
1445 hostapd_rx_from_unknown_sta(hapd, data->rx_from_unknown.bssid, in wpa_supplicant_event()
1454 if (hostapd_mgmt_rx(hapd, &data->rx_mgmt) > 0) in wpa_supplicant_event()
1457 hostapd_action_rx(hapd, &data->rx_mgmt); in wpa_supplicant_event()
1463 hostapd_probe_req_rx(hapd, data->rx_probe_req.sa, in wpa_supplicant_event()
1471 hostapd_event_new_sta(hapd, data->new_sta.addr); in wpa_supplicant_event()
1474 hostapd_event_eapol_rx(hapd, data->eapol_rx.src, in wpa_supplicant_event()
1481 hostapd_notif_assoc(hapd, data->assoc_info.addr, in wpa_supplicant_event()
1488 hostapd_notif_disassoc(hapd, data->disassoc_info.addr); in wpa_supplicant_event()
1492 hostapd_notif_disassoc(hapd, data->deauth_info.addr); in wpa_supplicant_event()
1497 hostapd_event_sta_low_ack(hapd, data->low_ack.addr); in wpa_supplicant_event()
1500 hostapd_notif_auth(hapd, &data->auth); in wpa_supplicant_event()
1505 hostapd_event_ch_switch(hapd, data->ch_switch.freq, in wpa_supplicant_event()
1516 hapd, data->connect_failed_reason.addr, in wpa_supplicant_event()
1520 hostapd_event_get_survey(hapd->iface, &data->survey_results); in wpa_supplicant_event()
1524 hostapd_event_iface_unavailable(hapd); in wpa_supplicant_event()
1529 hostapd_event_dfs_radar_detected(hapd, &data->dfs_event); in wpa_supplicant_event()
1534 hostapd_event_dfs_pre_cac_expired(hapd, &data->dfs_event); in wpa_supplicant_event()
1539 hostapd_event_dfs_cac_finished(hapd, &data->dfs_event); in wpa_supplicant_event()
1544 hostapd_event_dfs_cac_aborted(hapd, &data->dfs_event); in wpa_supplicant_event()
1549 hostapd_event_dfs_nop_finished(hapd, &data->dfs_event); in wpa_supplicant_event()
1557 hapd->iface, data->channel_list_changed.initiator); in wpa_supplicant_event()
1562 hostapd_event_dfs_cac_started(hapd, &data->dfs_event); in wpa_supplicant_event()
1566 wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_ENABLED); in wpa_supplicant_event()
1567 if (hapd->disabled && hapd->started) { in wpa_supplicant_event()
1568 hapd->disabled = 0; in wpa_supplicant_event()
1573 wpa_auth_reconfig_group_keys(hapd->wpa_auth); in wpa_supplicant_event()
1574 hapd->reenable_beacon = 1; in wpa_supplicant_event()
1575 ieee802_11_set_beacon(hapd); in wpa_supplicant_event()
1579 hostapd_free_stas(hapd); in wpa_supplicant_event()
1580 wpa_msg(hapd->msg_ctx, MSG_INFO, INTERFACE_DISABLED); in wpa_supplicant_event()
1581 hapd->disabled = 1; in wpa_supplicant_event()
1585 hostapd_acs_channel_selected(hapd, in wpa_supplicant_event()
1600 struct hostapd_data *hapd; in wpa_supplicant_event_global() local
1605 hapd = hostapd_get_iface(interfaces, data->interface_status.ifname); in wpa_supplicant_event_global()
1606 if (hapd && hapd->driver && hapd->driver->get_ifindex && in wpa_supplicant_event_global()
1607 hapd->drv_priv) { in wpa_supplicant_event_global()
1610 ifindex = hapd->driver->get_ifindex(hapd->drv_priv); in wpa_supplicant_event_global()
1612 wpa_dbg(hapd->msg_ctx, MSG_DEBUG, in wpa_supplicant_event_global()
1618 if (hapd) in wpa_supplicant_event_global()
1619 wpa_supplicant_event(hapd, event, data); in wpa_supplicant_event_global()