421 Commits

Author SHA1 Message Date
302a414d89 power save: fix some issues and add some features for wifi power save (438175be)
1. fix multicast more data always true cause wifi goto sleep fail

Some AP's broadcast/multicast frame's more data is always true (until
the last broadcast/multicast frame), or just send a broadcast/multicast frame
and happen to not receive it, which will cause wifi always wait data until
the next one is received, only when the multicast field of the TIM element
of the beacon frame is false, the wifi is allowed to go to sleep.

2. calculate the sleep count limit of modem state by beacon timeout time

3. fix some issues of wifi sleep

4. reset mac txq memory when rf phy enable to fix tx m f null failure

5. set modem state rx end exit code to 2 (it is match to pmu modem2active_backup_modem_clk_code parameter)

6. fix the issue that WiFi cannot receive partial beacon cause by SOC wakeup

when the SOC wakes up (such as lp_timer, GPIO, UART, etc.), it will not trigger
the WiFi event to enable the WiFi MAC and MAC Rx clock, which will cause the
beacon LEN and beacon CRC to be invalid. when receiving the next beacon, the
beacon filter checks that the beacon LEN or the beacon CRC has changed, and will
force to receive a full-size beacon frame.

7. beacon monitor support for esp32c6

8. optimize TBTT interrupt ahead time (for RF on work time) for esp32c6
2023-03-02 14:06:31 +08:00
194ce92651 esp_wifi: WPA3 SAE support for softAP(ea7ee476)
1) Add Hunt and Peck and H2E sae pwe derivation methods support to
   softAP
2) Add mixed mode WPA2/WPA3 to softAP
3) Add support for sae softAP to skip sa query if connection link is
       abruptly broken and station tries to Reassociate using fresh
       authentication
2023-02-27 14:50:20 +05:30
adf9880a99 esp_wifi: separate coex lib from wifi lib (2056f495) 2023-02-24 20:02:43 +08:00
7e1c6ef8bf esp_wifi: Update some wifi config options(dda1ce9)
1) Update sta_config_t options.
        2) Update HE constellation tx/rx default value.
2023-02-22 13:44:42 +05:30
025a465101 esp_wifi: fix sta auth failed but softap shows it connected issue(3f37aeea) 2023-02-21 20:54:20 +08:00
1ae8090158 esp-wifi: add SAE-PK (Public Key) authentication support for station (a1d27329) 2023-02-15 18:29:56 +05:30
096f13551e esp_wifi: Add nvs code for missing config params (f447697e) 2023-02-14 19:40:56 +05:30
46ddf74df0 esp32c6: add tx error handle (5b8642d2) 2023-02-13 16:30:47 +08:00
41fa4f18bd esp_wifi: Remove esp32 prefix from common code (f8cd6219) 2023-02-09 15:07:08 +05:30
acc9f01ca9 esp_wifi: fix ftm procedure with peer failed status 4 issue(5ad6258b)
1. send ftm frames immediately
2. fix ftm procedure with peer failed status 4 issue
2023-02-08 20:23:57 +08:00
450b90924e esp_wifi: bugfix RSNXE related changes(097d0961)
1. Set AP rsnxe len generic
2. Set transition_disable value in wifi get config
2023-02-06 19:37:16 +05:30
bf473026ba esp_wifi: fix ftm timer macro issue(978fa9fb) 2023-02-06 15:56:43 +08:00
d9b1611337 esp_wifi: Fix for default wpa2 authmode casing pmk recalculation.(4037700) 2023-02-03 12:45:08 +05:30
06afa54112 softap: bufferable mmpdu: buffer deauth, disassoc, action frames for connected station in sleep mode (e934eba2)
1) improve deauth/disassoc handling
2) improve SA-query procedure handling
2023-02-03 00:08:02 +05:30
33e7b810b4 esp_wifi:bugfix for optimize abnormal beacon log(2ccc0373) 2023-02-02 11:11:59 +08:00
788c496f20 esp_wifi: improvements in station and softAP for connection management (65decbc8)
1) station: send deauth while going from assoc to init, if reason is assoc timeout
2) softAP: do not drop open deauth/disassoc if keys are not generated
3) softAP: improvements in SA query handling
2023-02-01 12:21:24 +05:30
0132a62a4e libs: sync headers and support esp32c6 features(e339181c) 2023-01-17 20:49:43 +08:00
552066d7ac esp_wifi: Fix call to missing disconnected callback (4dbcd248) 2023-01-13 12:44:21 +05:30
41b0a1ef76 esp_wifi: Prevent open auth incase of sae failure (42af4414) 2023-01-05 10:19:45 +05:30
1eb9c86d74 esp_wifi: support wifi6 features and add esp32c6 libs(34dba92c) 2022-12-29 12:56:33 +08:00
c0deded274 esp_wifi: send null data when state change from association to run(dc787b09) 2022-12-26 17:19:55 +08:00
9b274f15cc esp_wifi: Fix for ftm issues (93449142)
1. Avoid ftm initiator mode on softap
2. Fix home channel issue in ftm for apsta mode
3. Fix int overflow for T1-T4 counter variables
2022-12-22 13:56:40 +05:30
64f2768084 esp_wifi: Fix handling of Assoc Resp status codes (ca38a19b) 2022-12-20 14:44:44 +05:30
cb98c5d42b change max connection num for esp32c3 and esp32s3 (3584b282) 2022-12-15 15:15:46 +08:00
39bcc426a6 esp_wifi: SA query related improvements for STA and SoftAP (c459daed)
1. reject AP if assoc comeback time given is greater than 5 seconds
2. handle when assoc req is received before SA query procedure is finished
2022-12-14 12:16:26 +05:30
d30a8ea9e1 fix multicast issue for some AP when DTIM period > 1 (c96d12fa) 2022-12-13 16:55:13 +08:00
86c783a904 upload more pkt info in rx cb for csi & espnow(dd15bc35) 2022-12-05 22:28:39 +08:00
2fae5b1324 esp_wifi: Add wps registrar events (0de182ad) 2022-12-02 15:02:29 +05:30
9e81af1747 esp_wifi: fix softap beacon memory leak issue(c4ea3606)
1. fix softap beacon memory leak issue.
2. fix esp wifi sta get ap info does not return connected ssid issue.
3. update inactive timer when recv ps-poll or success send data.
2022-12-01 16:12:45 +08:00
f3e2f7fac3 fix espnow crash when modify the interface of the peer (aa124440) 2022-12-01 11:11:47 +08:00
298095149d Fix unprotected SA Query issue and scan regression (dc3db5f4) 2022-11-30 13:39:25 +05:30
2bf3370730 esp_wifi:Mandate stations to have minimum security wpa3(d8d9e784)
set sta threshold wpa3 for ssid after receiving transition disable bit from AP
2022-11-28 11:49:56 +05:30
ccb8fbbeb4 esp_wifi: Avoid security params overwrite (267a51c0) 2022-11-24 10:42:01 +05:30
f6339efe87 Update wifi lib (28976933):
1. Modify wifi max connection num
2. Fix espnow send fail after changing opmode
2022-11-18 17:55:17 +08:00
b10fa11471 esp_mesh: fix the memory leak when call esp_mesh_start/stop (b52fcbc1) 2022-11-16 14:12:21 +08:00
8f668503bc esp_wifi_mesh: update wifi mesh libs(92f02abb)
1. fix WIFI_EVENT_AP_STADISCONNECTED event error
2. fix root routing table is not refreshed when child node restarted
2022-11-14 17:46:31 +08:00
f1c5a06856 esp_wifi: fix some issue and add annotation (4fb5a9b1)
1. coex: fix request meaningless schm at Wi-Fi start
    2. pm: fix connectionless status issue if coexistence starts later
    3. pm: set default espnow window to max
    4. pm: fix phy ref cnt value in connection failure
    5. coex schm: set default schm
    6. cnx: fix phy ref if probe failed
    7. cnx: protect rf time for probe resp
2022-11-10 15:19:13 +08:00
69e8def447 esp_wifi: fix some softap issue(d56c3e69)
1. add lldesc_config and clr PWR MGT flag
2. send null data instead of qos null data when receive ps-poll while power save queue is empty
3. update power save queue hw len
4. set more data bit
5. only send null data when psq hw len is 0 after recv ps-poll
2022-11-09 20:45:31 +08:00
e6aefa10e8 esp_wifi: Modify wifi scan return value(47a356a4)
1. Modify wifi scan return value same to docs
2. Change some logs' log level wo avoid misunderstanding
3. update doc for set channel
4. update wifi reason code
5. fix connect fail return wrong error code issue
2022-11-09 11:38:53 +08:00
2dd5518035 esp_wifi: fix wapi gtk id compability issue and adapt tx frag pn sequently. (f1110348) 2022-11-08 17:23:31 +08:00
a0aaa5ae6b esp_wifi: Support external coex for C2 & H2.(59313b6c) 2022-11-08 11:28:20 +08:00
8132b55aa5 esp_wifi: replace deprecated CONFIGS with their new versions. Also fixes WiFi when SPIRAM is enabled in certain non esp-idf projects(3a6d337c) 2022-11-07 17:05:29 +08:00
774353036b esp_wifi: report rssi in disconnected event (baea460a) 2022-11-07 13:10:29 +08:00
84272dd407 esp_wifi:Adding check for ies in match security(d3948205) 2022-11-04 16:48:51 +05:30
3e3f0fa900 esp_wifi: Add config option for AP retry count (5101a0a2) 2022-10-31 21:19:17 +05:30
51e2668fd4 esp_wifi: Fix some SoftAP PMF and espnow issues (0d470efa) 2022-10-21 14:10:06 +05:30
6842e78865 bugfix sniffer mode can not capture control packets(7011e220) 2022-10-20 18:10:03 +08:00
d5c07b38d0 esp_wifi: Fix deauth and disassoc for softap pmf connections (ef0cc3f4) 2022-10-17 18:19:17 +05:30
63a6c4dd39 esp_wifi: fix ignore rx sub ampdu interrupt issue(d9947ebf) 2022-10-13 11:38:44 +08:00
7bd8d12bd5 fix connect fail when enable SPIRAM (03528e02) 2022-10-08 15:47:31 +08:00