/hostap-latest/src/utils/ |
D | const_time.h | 176 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/ |
D | nan_de.c | 278 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 …]
|
D | wpa_ctrl.c | 554 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/ |
D | rrm.c | 314 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()
|
D | ibss_rsn.c | 879 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()
|
D | events.c | 1543 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 …]
|
D | dpp_supplicant.c | 636 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()
|
D | wpa_supplicant.c | 6679 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()
|
D | ctrl_iface.c | 9008 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/ |
D | rrm.c | 158 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()
|
D | accounting.c | 271 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()
|
D | ieee802_11_shared.c | 1052 int diff; in get_tx_parameters() local 1055 diff = abs((int) in get_tx_parameters() 1060 != 0 && diff > 16; in get_tx_parameters()
|
D | dpp_hostapd.c | 612 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()
|
D | ieee802_1x.c | 2864 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()
|
D | ieee802_11.c | 2204 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/ |
D | run-tests.py | 701 diff = end - start 722 diff.total_seconds(), args.logdir) 723 result = "{} {} {} {}".format(result, name, diff.total_seconds(), end)
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_new_handlers.c | 5747 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()
|