Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 85) sorted by relevance

1234

/hostap-latest/src/utils/
Dos.h24 void os_sleep(os_time_t sec, os_time_t usec);
27 os_time_t sec; member
32 os_time_t sec; member
55 return (a->sec < b->sec) || in os_time_before()
56 (a->sec == b->sec && a->usec < b->usec); in os_time_before()
63 res->sec = a->sec - b->sec; in os_time_sub()
66 res->sec--; in os_time_sub()
77 return (a->sec < b->sec) || in os_reltime_before()
78 (a->sec == b->sec && a->usec < b->usec); in os_reltime_before()
85 res->sec = a->sec - b->sec; in os_reltime_sub()
[all …]
Dos_win32.c17 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
19 if (sec) in os_sleep()
20 Sleep(sec * 1000); in os_sleep()
44 t->sec = (os_time_t) (tt / 1000000); in os_get_time()
56 t->sec = now.sec; in os_get_reltime()
62 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
70 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
71 sec > 60) in os_mktime()
80 tm.tm_sec = sec; in os_mktime()
110 tm->sec = tm2->tm_sec; in os_gmtime()
Dos_zephyr.c21 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
23 k_sleep(K_USEC(usec + USEC_PER_SEC * sec)); in os_sleep()
32 t->sec = (os_time_t)tv.tv_sec; in os_get_time()
56 t->sec = ts.tv_sec; in os_get_reltime()
77 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
85 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
86 sec > 60) { in os_mktime()
96 tm.tm_sec = sec; in os_mktime()
128 tm->sec = tm2->tm_sec; in os_gmtime()
Dos_internal.c26 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
29 const struct timespec req = { sec, usec * 1000 }; in os_sleep()
33 if (sec) in os_sleep()
34 sleep(sec); in os_sleep()
46 t->sec = tv.tv_sec; in os_get_time()
57 t->sec = tv.tv_sec; in os_get_reltime()
63 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
69 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
70 sec > 60) in os_mktime()
79 tm.tm_sec = sec; in os_mktime()
[all …]
Dos_unix.c50 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
53 const struct timespec req = { sec, usec * 1000 }; in os_sleep()
57 if (sec) in os_sleep()
58 sleep(sec); in os_sleep()
70 t->sec = tv.tv_sec; in os_get_time()
95 t->sec = ts.tv_sec; in os_get_reltime()
126 t->sec = nano / NSEC_PER_SEC; in os_get_reltime()
127 t->usec = (nano - (((uint64_t) t->sec) * NSEC_PER_SEC)) / NSEC_PER_USEC; in os_get_reltime()
134 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
142 hour < 0 || hour > 23 || min < 0 || min > 59 || sec < 0 || in os_mktime()
[all …]
Deloop.c786 now_sec = timeout->time.sec; in eloop_register_timeout()
787 timeout->time.sec += secs; in eloop_register_timeout()
788 if (timeout->time.sec < now_sec) in eloop_register_timeout()
792 timeout->time.sec++; in eloop_register_timeout()
795 if (timeout->time.sec < now_sec) in eloop_register_timeout()
868 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one()
913 requested.sec = req_secs; in eloop_deplete_timeout()
920 eloop_register_timeout(requested.sec, in eloop_deplete_timeout()
945 requested.sec = req_secs; in eloop_replenish_timeout()
952 eloop_register_timeout(requested.sec, in eloop_replenish_timeout()
[all …]
Deloop_win.c251 now_sec = timeout->time.sec; in eloop_register_timeout()
252 timeout->time.sec += secs; in eloop_register_timeout()
253 if (timeout->time.sec < now_sec) { in eloop_register_timeout()
265 timeout->time.sec++; in eloop_register_timeout()
323 remaining->sec = remaining->usec = 0; in eloop_cancel_timeout_one()
368 requested.sec = req_secs; in eloop_deplete_timeout()
375 eloop_register_timeout(requested.sec, in eloop_deplete_timeout()
400 requested.sec = req_secs; in eloop_replenish_timeout()
407 eloop_register_timeout(requested.sec, in eloop_replenish_timeout()
543 tv.sec = tv.usec = 0; in eloop_run()
[all …]
Dos_none.c18 void os_sleep(os_time_t sec, os_time_t usec) in os_sleep() argument
35 int os_mktime(int year, int month, int day, int hour, int min, int sec, in os_mktime() argument
/hostap-latest/tests/hwsim/
Dtest_ap_ht.py47 sec = hapd.get_status_field("secondary_channel")
48 if sec != "-1":
132 sec = hapd.get_status_field("secondary_channel")
133 if sec != "0":
134 raise Exception("Unexpected secondary channel: " + sec)
173 sec = hapd.get_status_field("secondary_channel")
174 if sec != "0":
175 raise Exception("Unexpected secondary channel: " + sec)
220 sec = hapd.get_status_field("secondary_channel")
221 if sec != "1":
[all …]
Dtest_ap_acs.py189 sec = hapd.get_status_field("secondary_channel")
190 if int(sec) == 0:
213 sec = hapd.get_status_field("secondary_channel")
214 if int(sec) != -1:
215 raise Exception("Unexpected secondary_channel: " + sec)
259 sec = hapd.get_status_field("secondary_channel")
260 if int(sec) == 0:
286 sec = hapd.get_status_field("secondary_channel")
287 if int(sec) == 0:
315 sec = hapd.get_status_field("secondary_channel")
[all …]
/hostap-latest/hostapd/
Dsae_pk_gen.c26 int sec, j; in main() local
48 sec = atoi(argv[2]); in main()
49 if (sec != 3 && sec != 5) { in main()
54 sec_1b = sec == 3; in main()
56 for (j = 0; j < sec; j++) in main()
118 for (j = 2; j < sec; j++) { in main()
122 if (j == sec) in main()
150 val20 = sae_pk_get_be19(hash + sec); in main()
152 sae_pk_buf_shift_left_19(hash + sec, hash_len - sec); in main()
166 pw_base_bin, hash_len - sec) >= 0) in main()
[all …]
/hostap-latest/src/ap/
Dbss_load.c20 unsigned int *sec, unsigned int *usec) in get_bss_load_update_timeout() argument
35 *sec = ((update_timeout / 1000) * 1024) / 1000; in get_bss_load_update_timeout()
45 unsigned int sec, usec; in update_channel_utilization() local
60 if (get_bss_load_update_timeout(hapd, &sec, &usec) < 0) in update_channel_utilization()
78 eloop_register_timeout(sec, usec, update_channel_utilization, hapd, in update_channel_utilization()
85 unsigned int sec, usec; in bss_load_update_init() local
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()
Dairtime_policy.c37 unsigned int *sec, in get_airtime_policy_update_timeout() argument
49 *sec = update_int / 1000; in get_airtime_policy_update_timeout()
64 sta->backlogged_until.sec++; in set_new_backlog_time()
137 unsigned int sec, usec; in update_airtime_weights() local
222 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in update_airtime_weights()
225 eloop_register_timeout(sec, usec, update_airtime_weights, iface, in update_airtime_weights()
257 unsigned int sec, usec; in airtime_policy_update_init() local
262 if (get_airtime_policy_update_timeout(iface, &sec, &usec) < 0) in airtime_policy_update_init()
265 eloop_register_timeout(sec, usec, update_airtime_weights, iface, NULL); in airtime_policy_update_init()
Dpmksa_cache_auth.c118 while (pmksa->pmksa && pmksa->pmksa->expiration <= now.sec) { in pmksa_cache_expire()
130 int sec; in pmksa_cache_set_expiration() local
137 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
138 if (sec < 0) in pmksa_cache_set_expiration()
139 sec = 0; in pmksa_cache_set_expiration()
140 eloop_register_timeout(sec + 1, 0, pmksa_cache_expire, pmksa, NULL); in pmksa_cache_set_expiration()
350 entry->expiration = now.sec; in pmksa_cache_auth_create_entry()
676 (int) (entry->expiration - now.sec), in pmksa_cache_auth_list()
741 (int) (entry->expiration - now.sec)); in pmksa_cache_auth_list_mesh()
Ddfs.c622 int sec = 0; in dfs_set_valid_channel() local
624 channel = dfs_get_valid_channel(iface, &sec, &cf1, &cf2, in dfs_set_valid_channel()
634 iface->conf->secondary_channel = sec; in dfs_set_valid_channel()
1059 int sec = 0; in hostapd_dfs_update_background_chain() local
1072 channel = dfs_get_valid_channel(iface, &sec, &oper_centr_freq_seg0_idx, in hostapd_dfs_update_background_chain()
1078 channel = dfs_downgrade_bandwidth(iface, &sec, in hostapd_dfs_update_background_chain()
1089 sec, hostapd_get_oper_chwidth(iface->conf), in hostapd_dfs_update_background_chain()
1099 iface->radar_background.secondary_channel = sec; in hostapd_dfs_update_background_chain()
/hostap-latest/src/rsn_supp/
Dpmksa_cache.c97 while (entry && entry->expiration <= now.sec) { in pmksa_cache_expire()
159 int sec; in pmksa_cache_set_expiration() local
168 sec = pmksa->pmksa->expiration - now.sec; in pmksa_cache_set_expiration()
169 if (sec < 0) { in pmksa_cache_set_expiration()
170 sec = 0; in pmksa_cache_set_expiration()
181 sec = entry->expiration - now.sec; in pmksa_cache_set_expiration()
182 if (sec < 0) in pmksa_cache_set_expiration()
183 sec = 0; in pmksa_cache_set_expiration()
184 else if (sec > 600) in pmksa_cache_set_expiration()
185 sec = 600; in pmksa_cache_set_expiration()
[all …]
/hostap-latest/src/common/
Dptksa_cache.c50 if (e->expiration > now.sec) in ptksa_cache_expire()
69 int sec; in ptksa_cache_set_expiration() local
82 sec = e->expiration - now.sec; in ptksa_cache_set_expiration()
83 if (sec < 0) in ptksa_cache_set_expiration()
84 sec = 0; in ptksa_cache_set_expiration()
86 eloop_register_timeout(sec + 1, 0, ptksa_cache_expire, ptksa, NULL); in ptksa_cache_set_expiration()
192 e->expiration - now.sec); in ptksa_cache_list()
316 entry->expiration = now.sec + life_time; in ptksa_cache_add()
Dhw_features_common.c191 int sec = oper->ht_param & in get_pri_sec_chan() local
193 if (sec == HT_INFO_HT_PARAM_SECONDARY_CHNL_ABOVE) in get_pri_sec_chan()
195 else if (sec == HT_INFO_HT_PARAM_SECONDARY_CHNL_BELOW) in get_pri_sec_chan()
321 int sec = pri; in check_40mhz_2g4() local
336 sec = pri - 20; in check_40mhz_2g4()
338 sec = pri + 20; in check_40mhz_2g4()
342 (sec < affected_start || sec > affected_end)) in check_40mhz_2g4()
350 if (pri_freq != pri || sec_freq != sec) { in check_40mhz_2g4()
356 pri, sec, pri_chan, in check_40mhz_2g4()
357 sec > pri ? '+' : '-', in check_40mhz_2g4()
Dsae_pk.c382 tmp->sec = (pw[0] & BIT(7)) ? 3 : 5; in sae_pk_set_password()
384 tmp->fingerprint_bits = 8 * tmp->sec + 19 * tmp->lambda / 4 - 5; in sae_pk_set_password()
386 tmp->sec, tmp->lambda, tmp->fingerprint_bits); in sae_pk_set_password()
390 pos = &tmp->fingerprint[tmp->sec]; in sae_pk_set_password()
391 bits = tmp->fingerprint_bits - 8 * tmp->sec; in sae_pk_set_password()
/hostap-latest/wpa_supplicant/
Dbgscan_simple.c279 if (now.sec > data->last_bgscan.sec + 1 && in bgscan_simple_notify_signal_change()
288 else if (data->last_bgscan.sec + data->long_interval > in bgscan_simple_notify_signal_change()
289 now.sec + data->scan_interval) { in bgscan_simple_notify_signal_change()
313 if (now.sec > data->last_bgscan.sec + 10) in bgscan_simple_notify_signal_change()
Dscan.h52 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec);
54 int sec, int usec);
81 void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec);
Dhs20_supplicant.c569 dur = tmp.sec * 1000 + tmp.usec / 1000; in hs20_osu_icon_fetch_result()
1308 if (now.sec + reauth_delay <= in hs20_rx_deauth_imminent_notice()
1309 wpa_s->current_ssid->disabled_until.sec) in hs20_rx_deauth_imminent_notice()
1313 wpa_s->current_ssid->disabled_until.sec = in hs20_rx_deauth_imminent_notice()
1314 now.sec + reauth_delay; in hs20_rx_deauth_imminent_notice()
1321 if (now.sec + reauth_delay <= in hs20_rx_deauth_imminent_notice()
1322 wpa_s->current_ssid->disabled_until.sec) in hs20_rx_deauth_imminent_notice()
1326 wpa_s->current_ssid->disabled_until.sec = in hs20_rx_deauth_imminent_notice()
1327 now.sec + reauth_delay; in hs20_rx_deauth_imminent_notice()
Dbgscan_learn.c580 if (now.sec > data->last_bgscan.sec + 1) in bgscan_learn_notify_signal_change()
595 if (now.sec > data->last_bgscan.sec + 10) in bgscan_learn_notify_signal_change()
Dscan.c1586 void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec) in wpa_supplicant_update_scan_int() argument
1594 new_int.sec = sec; in wpa_supplicant_update_scan_int()
1597 new_int.sec = remaining.sec; in wpa_supplicant_update_scan_int()
1602 eloop_register_timeout(new_int.sec, new_int.usec, in wpa_supplicant_update_scan_int()
1605 wpa_s->scan_interval = sec; in wpa_supplicant_update_scan_int()
1618 void wpa_supplicant_req_scan(struct wpa_supplicant *wpa_s, int sec, int usec) in wpa_supplicant_req_scan() argument
1625 sec, usec); in wpa_supplicant_req_scan()
1629 res = eloop_deplete_timeout(sec, usec, wpa_supplicant_scan, wpa_s, in wpa_supplicant_req_scan()
1633 sec, usec); in wpa_supplicant_req_scan()
1636 sec, usec); in wpa_supplicant_req_scan()
[all …]
/hostap-latest/src/radius/
Dradius_client.c565 if (now.sec >= entry->next_try) { in radius_client_timer()
592 if (now.sec >= entry->next_try && in radius_client_timer()
593 radius_client_retransmit(radius, entry, now.sec)) { in radius_client_timer()
622 if (first < now.sec) in radius_client_timer()
623 first = now.sec; in radius_client_timer()
625 eloop_register_timeout(first - now.sec, 0, in radius_client_timer()
630 (long int) (first - now.sec)); in radius_client_timer()
709 if (first < now.sec) in radius_client_update_timeout()
710 first = now.sec; in radius_client_update_timeout()
711 eloop_register_timeout(first - now.sec, 0, radius_client_timer, radius, in radius_client_update_timeout()
[all …]

1234