Lines Matching full:iface

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