Lines Matching refs:iface
79 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
91 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
92 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
95 if (hapd->iface->olbc) in ieee802_11_erp_info()
97 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info()
101 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info()
120 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info()
121 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info()
148 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint()
149 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint()
153 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) in hostapd_eid_pwr_constraint()
165 dfs = hostapd_is_dfs_required(hapd->iface); in hostapd_eid_pwr_constraint()
239 hapd->iface->current_mode == NULL) in hostapd_eid_country()
247 mode = hapd->iface->current_mode; in hostapd_eid_country()
307 if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only) in hostapd_eid_csa()
326 if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class) in hostapd_eid_ecsa()
332 *eid++ = hapd->iface->cs_oper_class; in hostapd_eid_ecsa()
344 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) || in hostapd_eid_supported_op_classes()
345 !hapd->iface->freq) in hostapd_eid_supported_op_classes()
348 if (ieee80211_freq_to_channel_ext(hapd->iface->freq, in hostapd_eid_supported_op_classes()
387 if (hapd->iface->fst_ies) in hostapd_gen_probe_resp()
388 buflen += wpabuf_len(hapd->iface->fst_ies); in hostapd_gen_probe_resp()
492 if (hapd->iface->fst_ies) { in hostapd_gen_probe_resp()
493 os_memcpy(pos, wpabuf_head(hapd->iface->fst_ies), in hostapd_gen_probe_resp()
494 wpabuf_len(hapd->iface->fst_ies)); in hostapd_gen_probe_resp()
495 pos += wpabuf_len(hapd->iface->fst_ies); in hostapd_gen_probe_resp()
611 void sta_track_expire(struct hostapd_iface *iface, int force) in sta_track_expire() argument
616 if (!iface->num_sta_seen) in sta_track_expire()
620 while ((info = dl_list_first(&iface->sta_seen, struct hostapd_sta_info, in sta_track_expire()
624 iface->conf->track_sta_max_age)) in sta_track_expire()
629 MACSTR, iface->bss[0]->conf->iface, in sta_track_expire()
632 iface->num_sta_seen--; in sta_track_expire()
638 static struct hostapd_sta_info * sta_track_get(struct hostapd_iface *iface, in sta_track_get() argument
643 dl_list_for_each(info, &iface->sta_seen, struct hostapd_sta_info, list) in sta_track_get()
651 void sta_track_add(struct hostapd_iface *iface, const u8 *addr, int ssi_signal) in sta_track_add() argument
655 info = sta_track_get(iface, addr); in sta_track_add()
659 dl_list_add_tail(&iface->sta_seen, &info->list); in sta_track_add()
673 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) { in sta_track_add()
675 sta_track_expire(iface, 1); in sta_track_add()
679 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr)); in sta_track_add()
680 dl_list_add_tail(&iface->sta_seen, &info->list); in sta_track_add()
681 iface->num_sta_seen++; in sta_track_add()
686 sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr, in sta_track_seen_on() argument
689 struct hapd_interfaces *interfaces = iface->interfaces; in sta_track_seen_on()
695 iface = interfaces->iface[i]; in sta_track_seen_on()
696 for (j = 0; j < iface->num_bss; j++) { in sta_track_seen_on()
697 hapd = iface->bss[j]; in sta_track_seen_on()
698 if (os_strcmp(ifname, hapd->conf->iface) == 0) in sta_track_seen_on()
703 if (hapd && sta_track_get(iface, addr)) in sta_track_seen_on()
712 void sta_track_claim_taxonomy_info(struct hostapd_iface *iface, const u8 *addr, in sta_track_claim_taxonomy_info() argument
717 info = sta_track_get(iface, addr); in sta_track_claim_taxonomy_info()
752 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req()
799 hapd->iface->current_mode && in handle_probe_req()
800 (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G || in handle_probe_req()
801 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211B) && in handle_probe_req()
860 } else if ((info = sta_track_get(hapd->iface, in handle_probe_req()
930 sta_track_seen_on(hapd->iface, mgmt->sa, in handle_probe_req()
934 hapd->conf->iface, MAC2STR(mgmt->sa), in handle_probe_req()
946 hapd->conf->iface, MAC2STR(mgmt->sa)); in handle_probe_req()
1005 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD)) in hostapd_probe_resp_offloads()
1010 (!(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
1019 !(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
1026 !(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
1074 if (hapd->iface->fst_ies) in ieee802_11_build_ap_params()
1075 tail_len += wpabuf_len(hapd->iface->fst_ies); in ieee802_11_build_ap_params()
1206 if (hapd->iface->fst_ies) { in ieee802_11_build_ap_params()
1207 os_memcpy(tailpos, wpabuf_head(hapd->iface->fst_ies), in ieee802_11_build_ap_params()
1208 wpabuf_len(hapd->iface->fst_ies)); in ieee802_11_build_ap_params()
1209 tailpos += wpabuf_len(hapd->iface->fst_ies); in ieee802_11_build_ap_params()
1296 params->basic_rates = hapd->iface->basic_rates; in ieee802_11_build_ap_params()
1333 params->preamble = hapd->iface->num_sta_no_short_preamble == 0 && in ieee802_11_build_ap_params()
1335 if (hapd->iface->current_mode && in ieee802_11_build_ap_params()
1336 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G) in ieee802_11_build_ap_params()
1338 hapd->iface->num_sta_no_short_slot_time > 0 ? 0 : 1; in ieee802_11_build_ap_params()
1344 params->ht_opmode = hapd->iface->ht_op_mode; in ieee802_11_build_ap_params()
1366 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_FTM_RESPONDER) { in ieee802_11_build_ap_params()
1368 params->lci = hapd->iface->conf->lci; in ieee802_11_build_ap_params()
1369 params->civic = hapd->iface->conf->civic; in ieee802_11_build_ap_params()
1395 struct hostapd_iface *iface = hapd->iface; in ieee802_11_set_beacon() local
1396 struct hostapd_config *iconf = iface->conf; in ieee802_11_set_beacon()
1420 if (iface->current_mode && in ieee802_11_set_beacon()
1421 hostapd_set_freq_params(&freq, iconf->hw_mode, iface->freq, in ieee802_11_set_beacon()
1428 iface->current_mode->vht_capab) == 0) in ieee802_11_set_beacon()
1443 int ieee802_11_set_beacons(struct hostapd_iface *iface) in ieee802_11_set_beacons() argument
1448 for (i = 0; i < iface->num_bss; i++) { in ieee802_11_set_beacons()
1449 if (iface->bss[i]->started && in ieee802_11_set_beacons()
1450 ieee802_11_set_beacon(iface->bss[i]) < 0) in ieee802_11_set_beacons()
1459 int ieee802_11_update_beacons(struct hostapd_iface *iface) in ieee802_11_update_beacons() argument
1464 for (i = 0; i < iface->num_bss; i++) { in ieee802_11_update_beacons()
1465 if (iface->bss[i]->beacon_set_done && iface->bss[i]->started && in ieee802_11_update_beacons()
1466 ieee802_11_set_beacon(iface->bss[i]) < 0) in ieee802_11_update_beacons()