Lines Matching full:iface
140 (hapd->iface->conf->ht_capab &
148 ht40_intolerant_add(hapd->iface, sta);
171 if (hapd->iface->fst)
485 hapd->iface->freq = freq;
513 switch (hapd->iface->current_mode->mode) {
544 } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) {
581 if (!hapd->iface->current_mode) {
582 for (i = 0; i < hapd->iface->num_hw_features; i++) {
584 &hapd->iface->hw_features[i];
587 hapd->iface->current_mode = mode;
591 if (!hapd->iface->current_mode) {
600 hapd->iface
625 if (hapd->iface->conf->ieee80211ac) {
652 ret = hostapd_acs_completed(hapd->iface, err);
798 if (mgmt->u.action.category == WLAN_ACTION_FST && hapd->iface->fst) {
799 fst_rx_action(hapd->iface->fst, mgmt, drv_mgmt->frame_len);
811 static struct hostapd_data * get_hapd_bssid(struct hostapd_iface *iface,
822 for (i = 0; i < iface->num_bss; i++) {
823 if (os_memcmp(bssid, iface->bss[i]->own_addr, ETH_ALEN) == 0)
824 return iface->bss[i];
835 hapd = get_hapd_bssid(hapd->iface, bssid);
845 struct hostapd_iface *iface = hapd->iface;
871 hapd = get_hapd_bssid(iface, bssid);
881 hapd = iface->bss[0];
894 for (i = 0; i < iface->num_bss; i++) {
898 (iface->bss[i]->drv_priv != rx_mgmt->drv_priv))
901 if (ieee802_11_mgmt(iface->bss[i], rx_mgmt->frame,
921 hapd = get_hapd_bssid(hapd->iface, get_hdr_bssid(hdr, len));
955 struct hostapd_iface *iface = hapd->iface;
959 for (j = 0; j < iface->num_bss; j++) {
960 sta = ap_get_sta(iface->bss[j], src);
962 hapd = iface->bss[j];
974 struct hostapd_iface *iface, unsigned int freq)
979 for (i = 0; i < iface->current_mode->num_channels; i++) {
980 chan = &iface->current_mode->channels[i];
989 static void hostapd_update_nf(struct hostapd_iface *iface,
993 if (!iface->chans_surveyed) {
995 iface->lowest_nf = survey->nf;
1001 if (survey->nf < iface->lowest_nf)
1002 iface->lowest_nf = survey->nf;
1007 static void hostapd_single_channel_get_survey(struct hostapd_iface *iface,
1019 chan = hostapd_get_mode_channel(iface, survey->freq);
1029 if (survey->channel_time > iface->last_channel_time &&
1032 iface->last_channel_time_busy;
1033 divisor = survey->channel_time - iface->last_channel_time;
1035 iface->channel_utilization = dividend * 255 / divisor;
1037 iface->channel_utilization);
1039 iface->last_channel_time = survey->channel_time;
1040 iface->last_channel_time_busy = survey->channel_time_busy;
1044 void hostapd_event_get_survey(struct hostapd_iface *iface,
1056 hostapd_single_channel_get_survey(iface, survey_results);
1062 chan = hostapd_get_mode_channel(iface, survey->freq);
1071 hostapd_update_nf(iface, chan, survey);
1073 iface->chans_surveyed++;
1084 hapd->conf->iface);
1088 hapd->conf->iface);
1089 hostapd_switch_channel_fallback(hapd->iface,
1099 hostapd_dfs_radar_detected(hapd->iface, radar->freq, radar->ht_enabled,
1109 hostapd_dfs_complete_cac(hapd->iface, 1, radar->freq, radar->ht_enabled,
1119 hostapd_dfs_complete_cac(hapd->iface, 0, radar->freq, radar->ht_enabled,
1129 hostapd_dfs_nop_finished(hapd->iface, radar->freq, radar->ht_enabled,
1139 hostapd_dfs_start_cac(hapd->iface, radar->freq, radar->ht_enabled,
1178 if (hapd->iface->scan_cb)
1179 hapd->iface->scan_cb(hapd->iface);
1286 hostapd_event_get_survey(hapd->iface, &data->survey_results);
1316 /* hostapd_get_hw_features(hapd->iface); */
1318 hapd->iface, data->channel_list_changed.initiator);