Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 17 of 17) sorted by relevance

/hostap-latest/src/utils/
Dconst_time.h176 int diff, res = 0; in const_time_memcmp() local
183 diff = (int) aa[len] - (int) bb[len]; in const_time_memcmp()
184 mask = const_time_is_zero((unsigned int) diff); in const_time_memcmp()
185 res = const_time_select_int(mask, res, diff); in const_time_memcmp()
/hostap-latest/src/common/
Dnan_de.c278 struct os_reltime tmp, diff, now; in nan_de_time_to_next_chan_change() local
289 os_reltime_sub(&tmp, &now, &diff); in nan_de_time_to_next_chan_change()
290 return os_reltime_in_ms(&diff); in nan_de_time_to_next_chan_change()
427 struct os_reltime next, diff; in nan_de_next_multicast() local
462 os_reltime_sub(&next, now, &diff); in nan_de_next_multicast()
463 return os_reltime_in_ms(&diff); in nan_de_next_multicast()
471 struct os_reltime diff; in nan_de_srv_time_to_next() local
475 os_reltime_sub(&srv->end_time, now, &diff); in nan_de_srv_time_to_next()
476 tmp = os_reltime_in_ms(&diff); in nan_de_srv_time_to_next()
503 os_reltime_sub(&srv->next_publish_state, now, &diff); in nan_de_srv_time_to_next()
[all …]
Dwpa_ctrl.c554 struct os_reltime diff; in wpa_ctrl_request() local
559 os_reltime_sub(&ending_at, &started_at, &diff); in wpa_ctrl_request()
560 tv.tv_sec = diff.sec; in wpa_ctrl_request()
561 tv.tv_usec = diff.usec; in wpa_ctrl_request()
/hostap-latest/wpa_supplicant/
Drrm.c314 struct os_reltime t, diff; in wpas_rrm_build_lci_report() local
347 os_reltime_sub(&t, &wpa_s->lci_time, &diff); in wpas_rrm_build_lci_report()
349 diff_l = diff.sec * 10 + diff.usec / 100000; in wpas_rrm_build_lci_report()
1593 struct os_reltime update_time, diff; in wpas_beacon_rep_scan_process() local
1604 &update_time, &diff); in wpas_beacon_rep_scan_process()
1607 (diff.sec || diff.usec >= 8000)) { in wpas_beacon_rep_scan_process()
1613 (unsigned int) diff.sec, in wpas_beacon_rep_scan_process()
1614 (unsigned int) diff.usec); in wpas_beacon_rep_scan_process()
Dibss_rsn.c879 struct os_reltime now, diff; in ibss_rsn_handle_auth_1_of_2() local
881 os_reltime_sub(&now, &peer->own_auth_tx, &diff); in ibss_rsn_handle_auth_1_of_2()
882 if (diff.sec == 0 && diff.usec < 500000) { in ibss_rsn_handle_auth_1_of_2()
884 (int) diff.usec); in ibss_rsn_handle_auth_1_of_2()
Devents.c1543 struct os_reltime diff; in wpa_scan_res_ok() local
1545 os_reltime_sub(&wpa_s->scan_min_time, &bss->last_update, &diff); in wpa_scan_res_ok()
1549 (unsigned int) diff.sec, in wpa_scan_res_ok()
1550 (unsigned int) diff.usec); in wpa_scan_res_ok()
2181 int min_diff, diff; in wpa_supplicant_need_to_roam_within_ess() local
2339 diff = sel_level - cur_level; in wpa_supplicant_need_to_roam_within_ess()
2340 if (diff < min_diff) { in wpa_supplicant_need_to_roam_within_ess()
2343 diff, min_diff); in wpa_supplicant_need_to_roam_within_ess()
2348 diff, min_diff); in wpa_supplicant_need_to_roam_within_ess()
6181 struct os_reltime diff; in wpa_supplicant_event() local
[all …]
Ddpp_supplicant.c636 struct os_reltime now, diff; in wpas_dpp_reply_wait_timeout() local
645 os_reltime_sub(&now, &wpa_s->dpp_last_init, &diff); in wpas_dpp_reply_wait_timeout()
646 diff_ms = diff.sec * 1000 + diff.usec / 1000; in wpas_dpp_reply_wait_timeout()
749 struct os_reltime now, diff; in wpas_dpp_auth_init_next() local
784 os_reltime_sub(&now, &wpa_s->dpp_init_iter_start, &diff); in wpas_dpp_auth_init_next()
785 used = diff.sec * 1000 + diff.usec / 1000; in wpas_dpp_auth_init_next()
Dwpa_supplicant.c6679 struct os_reltime now, diff; in radio_start_next_work() local
6712 os_reltime_sub(&now, &work->time, &diff); in radio_start_next_work()
6715 work->type, work, diff.sec, diff.usec); in radio_start_next_work()
6907 struct os_reltime now, diff; in radio_work_done() local
6911 os_reltime_sub(&now, &work->time, &diff); in radio_work_done()
6914 diff.sec, diff.usec); in radio_work_done()
Dctrl_iface.c9008 struct os_reltime now, diff; in wpas_ctrl_radio_work_show() local
9019 os_reltime_sub(&now, &work->time, &diff); in wpas_ctrl_radio_work_show()
9022 work->started, diff.sec, diff.usec); in wpas_ctrl_radio_work_show()
/hostap-latest/src/ap/
Drrm.c158 struct os_time curr, diff; in hostapd_check_lci_age() local
170 os_time_sub(&curr, &nr->lci_date, &diff); in hostapd_check_lci_age()
173 if (diff.sec > 0xffff) in hostapd_check_lci_age()
177 diff_l = diff.sec * 10 + diff.usec / 100000; in hostapd_check_lci_age()
Daccounting.c271 struct os_reltime now_r, diff; in accounting_sta_report() local
286 os_reltime_sub(&now_r, &sta->acct_session_start, &diff); in accounting_sta_report()
288 diff.sec)) { in accounting_sta_report()
Dieee802_11_shared.c1052 int diff; in get_tx_parameters() local
1055 diff = abs((int) in get_tx_parameters()
1060 != 0 && diff > 16; in get_tx_parameters()
Ddpp_hostapd.c612 struct os_reltime now, diff; in hostapd_dpp_reply_wait_timeout() local
621 os_reltime_sub(&now, &hapd->dpp_last_init, &diff); in hostapd_dpp_reply_wait_timeout()
622 diff_ms = diff.sec * 1000 + diff.usec / 1000; in hostapd_dpp_reply_wait_timeout()
732 struct os_reltime now, diff; in hostapd_dpp_auth_init_next() local
765 os_reltime_sub(&now, &hapd->dpp_init_iter_start, &diff); in hostapd_dpp_auth_init_next()
766 used = diff.sec * 1000 + diff.usec / 1000; in hostapd_dpp_auth_init_next()
Dieee802_1x.c2864 struct os_reltime diff; in ieee802_1x_get_mib_sta() local
2982 os_reltime_age(&sta->acct_session_start, &diff); in ieee802_1x_get_mib_sta()
3005 (unsigned int) diff.sec, in ieee802_1x_get_mib_sta()
Dieee802_11.c2204 struct os_reltime now, diff; in prepare_auth_resp_fils() local
2208 &diff); in prepare_auth_resp_fils()
2209 session_timeout = diff.sec; in prepare_auth_resp_fils()
/hostap-latest/tests/hwsim/
Drun-tests.py701 diff = end - start
722 diff.total_seconds(), args.logdir)
723 result = "{} {} {} {}".format(result, name, diff.total_seconds(), end)
/hostap-latest/wpa_supplicant/dbus/
Ddbus_new_handlers.c5747 struct os_reltime now, diff = { 0, 0 }; in wpas_dbus_getter_bss_age() local
5755 os_reltime_sub(&now, &res->last_update, &diff); in wpas_dbus_getter_bss_age()
5756 age = diff.sec > 0 ? diff.sec : 0; in wpas_dbus_getter_bss_age()