esp_wifi: WPA3-SAE support for softAP

This commit is contained in:
Shreyas Sheth
2023-02-28 12:25:05 +08:00
committed by Jiang Jiang Jian
parent ad19981af8
commit 2b8e40e760
44 changed files with 2773 additions and 249 deletions

View File

@@ -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)