mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
fix(esp_wifi): Modifying os_time_t datatype for platform and compiler independence
This commit is contained in:
Submodule components/esp_wifi/lib updated: 7a103b60ff...cfceb15dc5
@@ -24,7 +24,8 @@
|
|||||||
#include "esp_private/esp_wifi_private.h"
|
#include "esp_private/esp_wifi_private.h"
|
||||||
#include "esp_wifi.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)
|
* os_sleep - Sleep (sec, usec)
|
||||||
|
@@ -1209,7 +1209,9 @@ void wps_registrar_probe_req_rx(struct wps_registrar *reg, const u8 *addr,
|
|||||||
struct os_reltime now, dur;
|
struct os_reltime now, dur;
|
||||||
os_get_reltime(&now);
|
os_get_reltime(&now);
|
||||||
os_reltime_sub(&now, ®->pbc_ignore_start, &dur);
|
os_reltime_sub(&now, ®->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 "
|
wpa_printf(MSG_DEBUG, "WPS: Ignore PBC activation "
|
||||||
"based on Probe Request from the Enrollee "
|
"based on Probe Request from the Enrollee "
|
||||||
"that just completed PBC provisioning");
|
"that just completed PBC provisioning");
|
||||||
|
Reference in New Issue
Block a user