In case anyone has any insight, I'm trying to work out how to send NULL data frames with the power management flag set while in STA mode. These make the AP stop transmission to the STA, until the next time the STA transmits.
This is an attempt to work around problems with dropped packets at the network layer if interrupts are disabled for prolonged (~1ms) periods of time. Controlling the flow at the PHY layer should (I think) fix the problem, if it can be done.
There are a variety of internal functions in the RTOS SDK that cause a null data frame to be transmitted, but I can't make any of them work reliably.
More details here:
https://github.com/SuperHouse/esp-open-rtos/issues/10#issuecomment-126276946
AFAIK none of the SDK versions have a legit way to do this (take the radio offline cleanly for an explicit period of time), although maybe I'm missing something in the newer IoT SDK revisions.
Angus