Lines Matching refs:iface

79 		*eid++ = hapd->iface->channel_utilization;
91 if (hapd->iface->current_mode == NULL ||
92 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
95 if (hapd->iface->olbc)
97 if (hapd->iface->num_sta_non_erp > 0) {
101 if (hapd->iface->num_sta_no_short_preamble > 0 ||
120 if (hapd->iface->current_mode == NULL ||
121 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
148 if (hapd->iface->current_mode == NULL ||
149 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A)
153 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD)
165 dfs = hostapd_is_dfs_required(hapd->iface);
239 hapd->iface->current_mode == NULL)
247 mode = hapd->iface->current_mode;
307 if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only)
326 if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class)
332 *eid++ = hapd->iface->cs_oper_class;
344 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) ||
345 !hapd->iface->freq)
348 if (ieee80211_freq_to_channel_ext(hapd->iface->freq,
387 if (hapd->iface->fst_ies)
388 buflen += wpabuf_len(hapd->iface->fst_ies);
493 if (hapd->iface->fst_ies) {
494 os_memcpy(pos, wpabuf_head(hapd->iface->fst_ies),
495 wpabuf_len(hapd->iface->fst_ies));
496 pos += wpabuf_len(hapd->iface->fst_ies);
613 void sta_track_expire(struct hostapd_iface *iface, int force)
618 if (!iface->num_sta_seen)
622 while ((info = dl_list_first(&iface->sta_seen, struct hostapd_sta_info,
626 iface->conf->track_sta_max_age))
631 MACSTR, iface->bss[0]->conf->iface,
634 iface->num_sta_seen--;
640 static struct hostapd_sta_info * sta_track_get(struct hostapd_iface *iface,
645 dl_list_for_each(info, &iface->sta_seen, struct hostapd_sta_info, list)
653 void sta_track_add(struct hostapd_iface *iface, const u8 *addr, int ssi_signal)
657 info = sta_track_get(iface, addr);
661 dl_list_add_tail(&iface->sta_seen, &info->list);
675 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) {
677 sta_track_expire(iface, 1);
681 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr));
682 dl_list_add_tail(&iface->sta_seen, &info->list);
683 iface->num_sta_seen++;
688 sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr,
691 struct hapd_interfaces *interfaces = iface->interfaces;
697 iface = interfaces->iface[i];
698 for (j = 0; j < iface->num_bss; j++) {
699 hapd = iface->bss[j];
700 if (os_strcmp(ifname, hapd->conf->iface) == 0)
705 if (hapd && sta_track_get(iface, addr))
714 void sta_track_claim_taxonomy_info(struct hostapd_iface *iface, const u8 *addr,
719 info = sta_track_get(iface, addr);
754 sta_track_add(hapd->iface, mgmt->sa, ssi_signal);
801 hapd->iface->current_mode &&
802 (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G ||
803 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211B) &&
862 } else if ((info = sta_track_get(hapd->iface,
932 sta_track_seen_on(hapd->iface, mgmt->sa,
936 hapd->conf->iface, MAC2STR(mgmt->sa),
948 hapd->conf->iface, MAC2STR(mgmt->sa));
1007 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD))
1012 (!(hapd->iface->probe_resp_offloads &
1021 !(hapd->iface->probe_resp_offloads &
1028 !(hapd->iface->probe_resp_offloads &
1076 if (hapd->iface->fst_ies)
1077 tail_len += wpabuf_len(hapd->iface->fst_ies);
1209 if (hapd->iface->fst_ies) {
1210 os_memcpy(tailpos, wpabuf_head(hapd->iface->fst_ies),
1211 wpabuf_len(hapd->iface->fst_ies));
1212 tailpos += wpabuf_len(hapd->iface->fst_ies);
1301 params->basic_rates = hapd->iface->basic_rates;
1338 params->preamble = hapd->iface->num_sta_no_short_preamble == 0 &&
1340 if (hapd->iface->current_mode &&
1341 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G)
1343 hapd->iface->num_sta_no_short_slot_time > 0 ? 0 : 1;
1349 params->ht_opmode = hapd->iface->ht_op_mode;
1371 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_FTM_RESPONDER) {
1373 params->lci = hapd->iface->conf->lci;
1374 params->civic = hapd->iface->conf->civic;
1400 struct hostapd_iface *iface = hapd->iface;
1401 struct hostapd_config *iconf = iface->conf;
1402 struct hostapd_hw_modes *cmode = iface->current_mode;
1427 hostapd_set_freq_params(&freq, iconf->hw_mode, iface->freq,
1450 int ieee802_11_set_beacons(struct hostapd_iface *iface)
1455 for (i = 0; i < iface->num_bss; i++) {
1456 if (iface->bss[i]->started &&
1457 ieee802_11_set_beacon(iface->bss[i]) < 0)
1466 int ieee802_11_update_beacons(struct hostapd_iface *iface)
1471 for (i = 0; i < iface->num_bss; i++) {
1472 if (iface->bss[i]->beacon_set_done && iface->bss[i]->started &&
1473 ieee802_11_set_beacon(iface->bss[i]) < 0)