Lines Matching refs:hapd

20 hostapd_neighbor_get(struct hostapd_data *hapd, const u8 *bssid,  in hostapd_neighbor_get()  argument
25 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get()
38 int hostapd_neighbor_show(struct hostapd_data *hapd, char *buf, size_t buflen) in hostapd_neighbor_show() argument
46 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_show()
110 hostapd_neighbor_add(struct hostapd_data *hapd) in hostapd_neighbor_add() argument
118 dl_list_add(&hapd->nr_db, &nr->list); in hostapd_neighbor_add()
124 int hostapd_neighbor_set(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_set() argument
132 entry = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_set()
134 entry = hostapd_neighbor_add(hapd); in hostapd_neighbor_set()
166 hostapd_neighbor_remove(hapd, bssid, ssid); in hostapd_neighbor_set()
179 int hostapd_neighbor_remove(struct hostapd_data *hapd, const u8 *bssid, in hostapd_neighbor_remove() argument
184 nr = hostapd_neighbor_get(hapd, bssid, ssid); in hostapd_neighbor_remove()
194 void hostapd_free_neighbor_db(struct hostapd_data *hapd) in hostapd_free_neighbor_db() argument
198 dl_list_for_each_safe(nr, prev, &hapd->nr_db, in hostapd_free_neighbor_db()
206 static enum nr_chan_width hostapd_get_nr_chan_width(struct hostapd_data *hapd, in hostapd_get_nr_chan_width() argument
211 oper_chwidth = hostapd_get_oper_chwidth(hapd->iconf); in hostapd_get_nr_chan_width()
215 if (!hapd->iconf->secondary_channel) in hostapd_get_nr_chan_width()
230 void hostapd_neighbor_set_own_report(struct hostapd_data *hapd) in hostapd_neighbor_set_own_report() argument
233 u16 capab = hostapd_own_capab_info(hapd); in hostapd_neighbor_set_own_report()
234 int ht = hapd->iconf->ieee80211n && !hapd->conf->disable_11n; in hostapd_neighbor_set_own_report()
235 int vht = hapd->iconf->ieee80211ac && !hapd->conf->disable_11ac; in hostapd_neighbor_set_own_report()
236 int he = hapd->iconf->ieee80211ax && !hapd->conf->disable_11ax; in hostapd_neighbor_set_own_report()
237 bool eht = he && hapd->iconf->ieee80211be && !hapd->conf->disable_11be; in hostapd_neighbor_set_own_report()
245 if (!(hapd->conf->radio_measurements[0] & in hostapd_neighbor_set_own_report()
258 if (hapd->conf->wmm_enabled) { in hostapd_neighbor_set_own_report()
261 if (hapd->conf->wmm_uapsd && in hostapd_neighbor_set_own_report()
262 (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_UAPSD)) in hostapd_neighbor_set_own_report()
281 if (ieee80211_freq_to_channel_ext(hapd->iface->freq, in hostapd_neighbor_set_own_report()
282 hapd->iconf->secondary_channel, in hostapd_neighbor_set_own_report()
283 hostapd_get_oper_chwidth(hapd->iconf), in hostapd_neighbor_set_own_report()
287 width = hostapd_get_nr_chan_width(hapd, ht, vht, he); in hostapd_neighbor_set_own_report()
290 hapd->iconf); in hostapd_neighbor_set_own_report()
294 hapd->iconf); in hostapd_neighbor_set_own_report()
296 ieee80211_freq_to_chan(hapd->iface->freq + in hostapd_neighbor_set_own_report()
297 10 * hapd->iconf->secondary_channel, in hostapd_neighbor_set_own_report()
301 ssid.ssid_len = hapd->conf->ssid.ssid_len; in hostapd_neighbor_set_own_report()
302 os_memcpy(ssid.ssid, hapd->conf->ssid.ssid, ssid.ssid_len); in hostapd_neighbor_set_own_report()
312 wpabuf_put_data(nr, hapd->own_addr, ETH_ALEN); in hostapd_neighbor_set_own_report()
316 wpabuf_put_u8(nr, ieee80211_get_phy_type(hapd->iface->freq, ht, vht)); in hostapd_neighbor_set_own_report()
329 hostapd_neighbor_set(hapd, hapd->own_addr, &ssid, nr, hapd->iconf->lci, in hostapd_neighbor_set_own_report()
330 hapd->iconf->civic, hapd->iconf->stationary_ap, 0); in hostapd_neighbor_set_own_report()
338 hostapd_neighbor_get_diff_short_ssid(struct hostapd_data *hapd, const u8 *bssid) in hostapd_neighbor_get_diff_short_ssid() argument
342 dl_list_for_each(nr, &hapd->nr_db, struct hostapd_neighbor_entry, in hostapd_neighbor_get_diff_short_ssid()
345 nr->short_ssid != hapd->conf->ssid.short_ssid) in hostapd_neighbor_get_diff_short_ssid()
352 int hostapd_neighbor_sync_own_report(struct hostapd_data *hapd) in hostapd_neighbor_sync_own_report() argument
356 nr = hostapd_neighbor_get_diff_short_ssid(hapd, hapd->own_addr); in hostapd_neighbor_sync_own_report()
363 hostapd_neighbor_set_own_report(hapd); in hostapd_neighbor_sync_own_report()