• Home
  • Raw
  • Download

Lines Matching refs:iface

77 		*eid++ = hapd->iface->channel_utilization;  in hostapd_eid_bss_load()
89 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
90 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
93 if (hapd->iface->olbc) in ieee802_11_erp_info()
95 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info()
99 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info()
118 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info()
119 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info()
146 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint()
147 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint()
151 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) in hostapd_eid_pwr_constraint()
163 dfs = hostapd_is_dfs_required(hapd->iface); in hostapd_eid_pwr_constraint()
237 hapd->iface->current_mode == NULL) in hostapd_eid_country()
245 mode = hapd->iface->current_mode; in hostapd_eid_country()
305 if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only) in hostapd_eid_csa()
324 if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class) in hostapd_eid_ecsa()
330 *eid++ = hapd->iface->cs_oper_class; in hostapd_eid_ecsa()
342 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) || in hostapd_eid_supported_op_classes()
343 !hapd->iface->freq) in hostapd_eid_supported_op_classes()
346 if (ieee80211_freq_to_channel_ext(hapd->iface->freq, in hostapd_eid_supported_op_classes()
385 if (hapd->iface->fst_ies) in hostapd_gen_probe_resp()
386 buflen += wpabuf_len(hapd->iface->fst_ies); in hostapd_gen_probe_resp()
487 if (hapd->iface->fst_ies) { in hostapd_gen_probe_resp()
488 os_memcpy(pos, wpabuf_head(hapd->iface->fst_ies), in hostapd_gen_probe_resp()
489 wpabuf_len(hapd->iface->fst_ies)); in hostapd_gen_probe_resp()
490 pos += wpabuf_len(hapd->iface->fst_ies); in hostapd_gen_probe_resp()
600 void sta_track_expire(struct hostapd_iface *iface, int force) in sta_track_expire() argument
605 if (!iface->num_sta_seen) in sta_track_expire()
609 while ((info = dl_list_first(&iface->sta_seen, struct hostapd_sta_info, in sta_track_expire()
613 iface->conf->track_sta_max_age)) in sta_track_expire()
618 MACSTR, iface->bss[0]->conf->iface, in sta_track_expire()
621 iface->num_sta_seen--; in sta_track_expire()
627 static struct hostapd_sta_info * sta_track_get(struct hostapd_iface *iface, in sta_track_get() argument
632 dl_list_for_each(info, &iface->sta_seen, struct hostapd_sta_info, list) in sta_track_get()
640 void sta_track_add(struct hostapd_iface *iface, const u8 *addr, int ssi_signal) in sta_track_add() argument
644 info = sta_track_get(iface, addr); in sta_track_add()
648 dl_list_add_tail(&iface->sta_seen, &info->list); in sta_track_add()
662 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) { in sta_track_add()
664 sta_track_expire(iface, 1); in sta_track_add()
668 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr)); in sta_track_add()
669 dl_list_add_tail(&iface->sta_seen, &info->list); in sta_track_add()
670 iface->num_sta_seen++; in sta_track_add()
675 sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr, in sta_track_seen_on() argument
678 struct hapd_interfaces *interfaces = iface->interfaces; in sta_track_seen_on()
684 iface = interfaces->iface[i]; in sta_track_seen_on()
685 for (j = 0; j < iface->num_bss; j++) { in sta_track_seen_on()
686 hapd = iface->bss[j]; in sta_track_seen_on()
687 if (os_strcmp(ifname, hapd->conf->iface) == 0) in sta_track_seen_on()
692 if (hapd && sta_track_get(iface, addr)) in sta_track_seen_on()
701 void sta_track_claim_taxonomy_info(struct hostapd_iface *iface, const u8 *addr, in sta_track_claim_taxonomy_info() argument
706 info = sta_track_get(iface, addr); in sta_track_claim_taxonomy_info()
736 sta_track_add(hapd->iface, mgmt->sa, ssi_signal); in handle_probe_req()
772 hapd->iface->current_mode && in handle_probe_req()
773 (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G || in handle_probe_req()
774 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211B) && in handle_probe_req()
833 } else if ((info = sta_track_get(hapd->iface, in handle_probe_req()
903 sta_track_seen_on(hapd->iface, mgmt->sa, in handle_probe_req()
907 hapd->conf->iface, MAC2STR(mgmt->sa), in handle_probe_req()
919 hapd->conf->iface, MAC2STR(mgmt->sa)); in handle_probe_req()
975 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD)) in hostapd_probe_resp_offloads()
980 (!(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
989 !(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
996 !(hapd->iface->probe_resp_offloads & in hostapd_probe_resp_offloads()
1044 if (hapd->iface->fst_ies) in ieee802_11_build_ap_params()
1045 tail_len += wpabuf_len(hapd->iface->fst_ies); in ieee802_11_build_ap_params()
1172 if (hapd->iface->fst_ies) { in ieee802_11_build_ap_params()
1173 os_memcpy(tailpos, wpabuf_head(hapd->iface->fst_ies), in ieee802_11_build_ap_params()
1174 wpabuf_len(hapd->iface->fst_ies)); in ieee802_11_build_ap_params()
1175 tailpos += wpabuf_len(hapd->iface->fst_ies); in ieee802_11_build_ap_params()
1253 params->basic_rates = hapd->iface->basic_rates; in ieee802_11_build_ap_params()
1290 params->preamble = hapd->iface->num_sta_no_short_preamble == 0 && in ieee802_11_build_ap_params()
1292 if (hapd->iface->current_mode && in ieee802_11_build_ap_params()
1293 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G) in ieee802_11_build_ap_params()
1295 hapd->iface->num_sta_no_short_slot_time > 0 ? 0 : 1; in ieee802_11_build_ap_params()
1301 params->ht_opmode = hapd->iface->ht_op_mode; in ieee802_11_build_ap_params()
1340 struct hostapd_iface *iface = hapd->iface; in ieee802_11_set_beacon() local
1341 struct hostapd_config *iconf = iface->conf; in ieee802_11_set_beacon()
1365 if (iface->current_mode && in ieee802_11_set_beacon()
1366 hostapd_set_freq_params(&freq, iconf->hw_mode, iface->freq, in ieee802_11_set_beacon()
1373 iface->current_mode->vht_capab) == 0) in ieee802_11_set_beacon()
1388 int ieee802_11_set_beacons(struct hostapd_iface *iface) in ieee802_11_set_beacons() argument
1393 for (i = 0; i < iface->num_bss; i++) { in ieee802_11_set_beacons()
1394 if (iface->bss[i]->started && in ieee802_11_set_beacons()
1395 ieee802_11_set_beacon(iface->bss[i]) < 0) in ieee802_11_set_beacons()
1404 int ieee802_11_update_beacons(struct hostapd_iface *iface) in ieee802_11_update_beacons() argument
1409 for (i = 0; i < iface->num_bss; i++) { in ieee802_11_update_beacons()
1410 if (iface->bss[i]->beacon_set_done && iface->bss[i]->started && in ieee802_11_update_beacons()
1411 ieee802_11_set_beacon(iface->bss[i]) < 0) in ieee802_11_update_beacons()