mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-25 03:39:35 +01:00
esp_wifi: WPA3-SAE support for softAP
This commit is contained in:
committed by
Jiang Jiang Jian
parent
ad19981af8
commit
2b8e40e760
@@ -116,6 +116,15 @@ void inc_byte_array(u8 *counter, size_t len)
|
||||
}
|
||||
|
||||
|
||||
void buf_shift_right(u8 *buf, size_t len, size_t bits)
|
||||
{
|
||||
size_t i;
|
||||
for (i = len - 1; i > 0; i--)
|
||||
buf[i] = (buf[i - 1] << (8 - bits)) | (buf[i] >> bits);
|
||||
buf[0] >>= bits;
|
||||
}
|
||||
|
||||
|
||||
void wpa_get_ntp_timestamp(u8 *buf)
|
||||
{
|
||||
struct os_time now;
|
||||
@@ -529,6 +538,12 @@ int os_reltime_expired(struct os_time *now,
|
||||
}
|
||||
|
||||
|
||||
int os_reltime_initialized(struct os_reltime *t)
|
||||
{
|
||||
return t->sec != 0 || t->usec != 0;
|
||||
}
|
||||
|
||||
|
||||
u8 rssi_to_rcpi(int rssi)
|
||||
{
|
||||
if (!rssi)
|
||||
|
||||
Reference in New Issue
Block a user