fix(esp_wifi): Modifying os_time_t datatype for platform and compiler independence

This commit is contained in:
tarun.kumar
2025-02-03 18:31:32 +05:30
parent 8df0a41ec4
commit 04b73079b4
3 changed files with 6 additions and 3 deletions

View File

@@ -22,7 +22,8 @@
#include "supplicant_opt.h"
#include "esp_wifi.h"
typedef time_t os_time_t;
/* Modifying datatype for platform and compiler independence */
typedef uint64_t os_time_t;
/**
* os_sleep - Sleep (sec, usec)

View File

@@ -1209,7 +1209,9 @@ void wps_registrar_probe_req_rx(struct wps_registrar *reg, const u8 *addr,
struct os_reltime now, dur;
os_get_reltime(&now);
os_reltime_sub(&now, &reg->pbc_ignore_start, &dur);
if (dur.sec >= 0 && dur.sec < 5) {
#ifdef ESP_SUPPLICANT
if (dur.sec < 5) {
#endif /* ESP_SUPPLICANT */
wpa_printf(MSG_DEBUG, "WPS: Ignore PBC activation "
"based on Probe Request from the Enrollee "
"that just completed PBC provisioning");