Lines Matching full:iface

268 	struct hostapd_iface *iface = hapd->iface;  in hostapd_notif_assoc()  local
407 if (hapd->iface->drv_max_acl_mac_addrs == 0 && in hostapd_notif_assoc()
427 (hapd->iface->conf->ht_capab & in hostapd_notif_assoc()
435 ht40_intolerant_add(hapd->iface, sta); in hostapd_notif_assoc()
460 if (hapd->iface->fst) in hostapd_notif_assoc()
526 hapd->iface->freq, in hostapd_notif_assoc()
783 !(iface->drv_flags2 & WPA_DRIVER_FLAGS2_OWE_OFFLOAD_AP) && in hostapd_notif_assoc()
932 struct hapd_interfaces *interfaces = assoc_hapd->iface->interfaces; in hostapd_notif_disassoc_mld()
942 tmp_hapd = interfaces->iface[i]->bss[0]; in hostapd_notif_disassoc_mld()
990 for (i = 0; i < hapd->iface->interfaces->count; ++i) { in hostapd_notif_disassoc()
992 hapd->iface->interfaces->iface[i]; in hostapd_notif_disassoc()
1133 …"driver %s channel switch: iface->freq=%d, freq=%d, ht=%d, vht_ch=0x%x, he_ch=0x%x, eht_ch=0x%x, o… in hostapd_event_ch_switch()
1135 hapd->iface->freq, in hostapd_event_ch_switch()
1142 if (!hapd->iface->current_mode) { in hostapd_event_ch_switch()
1150 is_dfs0 = hostapd_is_dfs_required(hapd->iface); in hostapd_event_ch_switch()
1151 hapd->iface->freq = freq; in hostapd_event_ch_switch()
1185 if (finished && hostapd_csa_update_hwmode(hapd->iface)) in hostapd_event_ch_switch()
1188 switch (hapd->iface->current_mode->mode) { in hostapd_event_ch_switch()
1228 if (hapd->iface->freq > 4000 && in hostapd_event_ch_switch()
1229 hapd->iface->freq < 5895) in hostapd_event_ch_switch()
1243 if (!is_6ghz_freq(hapd->iface->freq) && in hostapd_event_ch_switch()
1244 hapd->iface->freq > 4000) in hostapd_event_ch_switch()
1285 is_dfs = ieee80211_is_dfs(freq, hapd->iface->hw_features, in hostapd_event_ch_switch()
1286 hapd->iface->num_hw_features); in hostapd_event_ch_switch()
1304 } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) { in hostapd_event_ch_switch()
1307 hostapd_is_dfs_required(hapd->iface) <= 0 && in hostapd_event_ch_switch()
1308 hapd->iface->state != HAPD_IFACE_ENABLED) { in hostapd_event_ch_switch()
1310 hapd->iface->cac_started = 1; in hostapd_event_ch_switch()
1311 hostapd_setup_interface_complete(hapd->iface, 0); in hostapd_event_ch_switch()
1316 hostapd_is_dfs_required(hapd->iface) && in hostapd_event_ch_switch()
1317 !hostapd_is_dfs_chan_available(hapd->iface) && in hostapd_event_ch_switch()
1318 !hapd->iface->cac_started) { in hostapd_event_ch_switch()
1319 hostapd_disable_iface(hapd->iface); in hostapd_event_ch_switch()
1320 hostapd_enable_iface(hapd->iface); in hostapd_event_ch_switch()
1323 for (i = 0; i < hapd->iface->num_bss; i++) in hostapd_event_ch_switch()
1324 hostapd_neighbor_set_own_report(hapd->iface->bss[i]); in hostapd_event_ch_switch()
1328 !(hapd->iface->drv_flags2 & in hostapd_event_ch_switch()
1396 hapd->iface->freq = acs_res->pri_freq; in hostapd_acs_channel_selected()
1398 if (!hapd->iface->current_mode) { in hostapd_acs_channel_selected()
1399 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_acs_channel_selected()
1401 &hapd->iface->hw_features[i]; in hostapd_acs_channel_selected()
1404 if (hapd->iface->freq > 0 && in hostapd_acs_channel_selected()
1406 hapd->iface->freq, in hostapd_acs_channel_selected()
1407 hapd->iface->hw_features, in hostapd_acs_channel_selected()
1408 hapd->iface->num_hw_features)) in hostapd_acs_channel_selected()
1410 hapd->iface->current_mode = mode; in hostapd_acs_channel_selected()
1414 if (!hapd->iface->current_mode) { in hostapd_acs_channel_selected()
1430 pri_chan = hw_get_channel_freq(hapd->iface->current_mode->mode, in hostapd_acs_channel_selected()
1432 hapd->iface->hw_features, in hostapd_acs_channel_selected()
1433 hapd->iface->num_hw_features); in hostapd_acs_channel_selected()
1459 if (hapd->iface->conf->ieee80211ac || hapd->iface->conf->ieee80211ax) { in hostapd_acs_channel_selected()
1492 if (hapd->iface->conf->ieee80211be && acs_res->ch_width == 320) { in hostapd_acs_channel_selected()
1499 if (hapd->iface->conf->ieee80211be && acs_res->puncture_bitmap) in hostapd_acs_channel_selected()
1504 ret = hostapd_acs_completed(hapd->iface, err); in hostapd_acs_channel_selected()
1688 if (mgmt->u.action.category == WLAN_ACTION_FST && hapd->iface->fst) { in hostapd_action_rx()
1689 fst_rx_action(hapd->iface->fst, mgmt, drv_mgmt->frame_len); in hostapd_action_rx()
1758 for (i = 0; i < hapd->iface->interfaces->count; i++) { in switch_link_scan()
1762 h = hapd->iface->interfaces->iface[i]; in switch_link_scan()
1781 static struct hostapd_data * get_hapd_bssid(struct hostapd_iface *iface, in get_hapd_bssid() argument
1792 for (i = 0; i < iface->num_bss; i++) { in get_hapd_bssid()
1798 hapd = iface->bss[i]; in get_hapd_bssid()
1832 hapd = get_hapd_bssid(hapd->iface, bssid, -1); in hostapd_rx_from_unknown_sta()
1842 struct hostapd_iface *iface; in hostapd_mgmt_rx() local
1851 iface = hapd->iface; in hostapd_mgmt_rx()
1873 hapd = get_hapd_bssid(iface, bssid, rx_mgmt->link_id); in hostapd_mgmt_rx()
1884 hapd = iface->bss[0]; in hostapd_mgmt_rx()
1898 for (i = 0; i < iface->num_bss; i++) { in hostapd_mgmt_rx()
1902 (iface->bss[i]->drv_priv != rx_mgmt->drv_priv)) in hostapd_mgmt_rx()
1905 if (ieee802_11_mgmt(iface->bss[i], rx_mgmt->frame, in hostapd_mgmt_rx()
1929 tmp_hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len), link_id); in hostapd_mgmt_tx_cb()
1946 hapd = get_hapd_bssid(orig_hapd->iface, hdr->addr2, link_id); in hostapd_mgmt_tx_cb()
1982 static struct hostapd_data * hostapd_find_by_sta(struct hostapd_iface *iface, in hostapd_find_by_sta() argument
1993 for (j = 0; j < iface->num_bss; j++) { in hostapd_find_by_sta()
1994 hapd = iface->bss[j]; in hostapd_find_by_sta()
2035 hapd = hostapd_find_by_sta(hapd->iface, src, true, NULL); in hostapd_event_eapol_rx()
2037 hapd = hostapd_find_by_sta(hapd->iface, src, false, NULL); in hostapd_event_eapol_rx()
2074 struct hostapd_iface *iface, unsigned int freq) in hostapd_get_mode_channel() argument
2079 for (i = 0; i < iface->num_hw_features; i++) { in hostapd_get_mode_channel()
2080 if (hostapd_hw_skip_mode(iface, &iface->hw_features[i])) in hostapd_get_mode_channel()
2082 chan = hostapd_get_mode_chan(&iface->hw_features[i], freq); in hostapd_get_mode_channel()
2091 static void hostapd_update_nf(struct hostapd_iface *iface, in hostapd_update_nf() argument
2095 if (!iface->chans_surveyed) { in hostapd_update_nf()
2097 iface->lowest_nf = survey->nf; in hostapd_update_nf()
2103 if (survey->nf < iface->lowest_nf) in hostapd_update_nf()
2104 iface->lowest_nf = survey->nf; in hostapd_update_nf()
2109 static void hostapd_single_channel_get_survey(struct hostapd_iface *iface, in hostapd_single_channel_get_survey() argument
2121 chan = hostapd_get_mode_channel(iface, survey->freq); in hostapd_single_channel_get_survey()
2131 if (survey->channel_time > iface->last_channel_time && in hostapd_single_channel_get_survey()
2134 iface->last_channel_time_busy; in hostapd_single_channel_get_survey()
2135 divisor = survey->channel_time - iface->last_channel_time; in hostapd_single_channel_get_survey()
2137 iface->channel_utilization = dividend * 255 / divisor; in hostapd_single_channel_get_survey()
2139 iface->channel_utilization); in hostapd_single_channel_get_survey()
2141 iface->last_channel_time = survey->channel_time; in hostapd_single_channel_get_survey()
2142 iface->last_channel_time_busy = survey->channel_time_busy; in hostapd_single_channel_get_survey()
2146 void hostapd_event_get_survey(struct hostapd_iface *iface, in hostapd_event_get_survey() argument
2158 hostapd_single_channel_get_survey(iface, survey_results); in hostapd_event_get_survey()
2164 chan = hostapd_get_mode_channel(iface, survey->freq); in hostapd_event_get_survey()
2173 hostapd_update_nf(iface, chan, survey); in hostapd_event_get_survey()
2175 iface->chans_surveyed++; in hostapd_event_get_survey()
2186 hapd->conf->iface); in hostapd_event_iface_unavailable()
2190 hapd->conf->iface); in hostapd_event_iface_unavailable()
2191 hostapd_switch_channel_fallback(hapd->iface, in hostapd_event_iface_unavailable()
2201 hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_radar_detected()
2211 hostapd_dfs_pre_cac_expired(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_pre_cac_expired()
2221 hostapd_dfs_complete_cac(hapd->iface, 1, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_finished()
2231 hostapd_dfs_complete_cac(hapd->iface, 0, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_aborted()
2241 hostapd_dfs_nop_finished(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_nop_finished()
2251 hostapd_dfs_start_cac(hapd->iface, radar->freq, radar->ht_enabled, in hostapd_event_dfs_cac_started()
2372 hapd = hostapd_find_by_sta(hapd->iface, dst, false, &sta); in hostapd_eapol_tx_status()
2392 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_event_color_change()
2393 bss = hapd->iface->bss[i]; in hostapd_event_color_change()
2398 hapd->iface->conf->he_op.he_bss_color = bss->cca_color; in hostapd_event_color_change()
2449 if (hapd->iface->scan_cb) in wpa_supplicant_event()
2450 hapd->iface->scan_cb(hapd->iface); in wpa_supplicant_event()
2452 if (!hapd->iface->scan_cb && hapd->conf->mld_ap) { in wpa_supplicant_event()
2456 for (i = 0; i < hapd->iface->interfaces->count; i++) { in wpa_supplicant_event()
2458 hapd->iface->interfaces->iface[i]; in wpa_supplicant_event()
2462 h_hapd->iface->scan_cb) in wpa_supplicant_event()
2463 h_hapd->iface->scan_cb(h_hapd->iface); in wpa_supplicant_event()
2637 hostapd_event_get_survey(hapd->iface, &data->survey_results); in wpa_supplicant_event()
2677 /* hostapd_get_hw_features(hapd->iface); */ in wpa_supplicant_event()
2679 hapd->iface, data->channel_list_changed.initiator); in wpa_supplicant_event()
2703 } else if (hapd->disabled && hapd->iface->cac_started) { in wpa_supplicant_event()
2705 hostapd_handle_dfs(hapd->iface); in wpa_supplicant_event()
2740 hapd->conf->iface); in wpa_supplicant_event()
2741 hostapd_switch_color(hapd->iface->bss[0], in wpa_supplicant_event()
2748 hapd->conf->iface); in wpa_supplicant_event()
2754 hapd->conf->iface); in wpa_supplicant_event()
2761 hapd->conf->iface); in wpa_supplicant_event()