Home | History | Annotate | Download | only in ap

Lines Matching full:iface

73 		*eid++ = hapd->iface->channel_utilization;
85 if (hapd->iface->current_mode == NULL ||
86 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
89 if (hapd->iface->olbc)
91 if (hapd->iface->num_sta_non_erp > 0) {
95 if (hapd->iface->num_sta_no_short_preamble > 0 ||
114 if (hapd->iface->current_mode == NULL ||
115 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G)
142 if (hapd->iface->current_mode == NULL ||
143 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A)
147 if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD)
159 dfs = hostapd_is_dfs_required(hapd->iface);
233 hapd->iface->current_mode == NULL)
241 mode = hapd->iface->current_mode;
301 if (hapd->iface->cs_oper_class && hapd->iconf->ecsa_ie_only)
320 if (!hapd->cs_freq_params.channel || !hapd->iface->cs_oper_class)
326 *eid++ = hapd->iface->cs_oper_class;
338 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA) ||
339 !hapd->iface->freq)
342 if (ieee80211_freq_to_channel_ext(hapd->iface->freq,
381 if (hapd->iface->fst_ies)
382 buflen += wpabuf_len(hapd->iface->fst_ies);
476 if (hapd->iface->fst_ies) {
477 os_memcpy(pos, wpabuf_head(hapd->iface->fst_ies),
478 wpabuf_len(hapd->iface->fst_ies));
479 pos += wpabuf_len(hapd->iface->fst_ies);
577 void sta_track_expire(struct hostapd_iface *iface, int force)
582 if (!iface->num_sta_seen)
586 while ((info = dl_list_first(&iface->sta_seen, struct hostapd_sta_info,
590 iface->conf->track_sta_max_age))
595 MACSTR, iface->bss[0]->conf->iface,
598 iface->num_sta_seen--;
604 static struct hostapd_sta_info * sta_track_get(struct hostapd_iface *iface,
609 dl_list_for_each(info, &iface->sta_seen, struct hostapd_sta_info, list)
617 void sta_track_add(struct hostapd_iface *iface, const u8 *addr)
621 info = sta_track_get(iface, addr);
625 dl_list_add_tail(&iface->sta_seen, &info->list);
635 if (iface->num_sta_seen >= iface->conf->track_sta_max_num) {
637 sta_track_expire(iface, 1);
641 MACSTR, iface->bss[0]->conf->iface, MAC2STR(addr));
642 dl_list_add_tail(&iface
643 iface->num_sta_seen++;
648 sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr,
651 struct hapd_interfaces *interfaces = iface->interfaces;
657 iface = interfaces->iface[i];
658 for (j = 0; j < iface->num_bss; j++) {
659 hapd = iface->bss[j];
660 if (os_strcmp(ifname, hapd->conf->iface) == 0)
665 if (hapd && sta_track_get(iface, addr))
692 sta_track_add(hapd->iface, mgmt->sa);
728 hapd->iface->current_mode &&
729 (hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G ||
730 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211B) &&
844 sta_track_seen_on(hapd->iface, mgmt->sa,
848 hapd->conf->iface, MAC2STR(mgmt->sa),
860 hapd->conf->iface, MAC2STR(mgmt->sa));
916 if (!(hapd->iface->drv_flags & WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD))
921 (!(hapd->iface->probe_resp_offloads &
930 !(hapd->iface->probe_resp_offloads &
937 !(hapd->iface->probe_resp_offloads &
975 if (hapd->iface->fst_ies)
976 tail_len += wpabuf_len(hapd->iface->fst_ies);
1096 if (hapd->iface->fst_ies) {
1097 os_memcpy(tailpos, wpabuf_head(hapd->iface->fst_ies),
1098 wpabuf_len(hapd->iface->fst_ies));
1099 tailpos += wpabuf_len(hapd->iface->fst_ies);
1165 params->basic_rates = hapd->iface->basic_rates;
1200 params->preamble = hapd->iface->num_sta_no_short_preamble == 0 &&
1202 if (hapd->iface->current_mode &&
1203 hapd->iface->current_mode->mode == HOSTAPD_MODE_IEEE80211G)
1205 hapd->iface->num_sta_no_short_slot_time > 0 ? 0 : 1;
1211 params->ht_opmode = hapd->iface->ht_op_mode;
1249 struct hostapd_iface *iface = hapd->iface;
1250 struct hostapd_config *iconf = iface->conf;
1274 if (iface->current_mode &&
1275 hostapd_set_freq_params(&freq, iconf->hw_mode, iface->freq,
1282 iface->current_mode->vht_capab) == 0)
1297 int ieee802_11_set_beacons(struct hostapd_iface *iface)
1302 for (i = 0; i < iface->num_bss; i++) {
1303 if (iface->bss[i]->started &&
1304 ieee802_11_set_beacon(iface->bss[i]) < 0)
1313 int ieee802_11_update_beacons(struct hostapd_iface *iface)
1318 for (i = 0; i < iface->num_bss; i++) {
1319 if (iface->bss[i]->beacon_set_done && iface->bss[i]->started &&
1320 ieee802_11_set_beacon(iface->bss[i]) < 0)