Files
wuzhenghui 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

47 KiB