Lines Matching refs:hapd

19 static int get_bss_load_update_timeout(struct hostapd_data *hapd,  in get_bss_load_update_timeout()  argument
22 unsigned int update_period = hapd->conf->bss_load_update_period; in get_bss_load_update_timeout()
23 unsigned int beacon_int = hapd->iconf->beacon_int; in get_bss_load_update_timeout()
44 struct hostapd_data *hapd = eloop_data; in update_channel_utilization() local
47 struct hostapd_iface *iface = hapd->iface; in update_channel_utilization()
49 if (!(hapd->beacon_set_done && hapd->started)) in update_channel_utilization()
52 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); in update_channel_utilization()
58 ieee802_11_set_beacon(hapd); in update_channel_utilization()
60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization()
63 if (hapd->conf->chan_util_avg_period) { in update_channel_utilization()
66 hapd->conf->bss_load_update_period; in update_channel_utilization()
68 hapd->conf->chan_util_avg_period) { in update_channel_utilization()
72 hapd->conf->bss_load_update_period); in update_channel_utilization()
78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization()
83 int bss_load_update_init(struct hostapd_data *hapd) in bss_load_update_init() argument
87 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in bss_load_update_init()
90 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in bss_load_update_init()
96 void bss_load_update_deinit(struct hostapd_data *hapd) in bss_load_update_deinit() argument
98 eloop_cancel_timeout(update_channel_utilization, hapd, NULL); in bss_load_update_deinit()