esp_phy_disable() function
Disable PHY and RF module PHY module should be disabled in order to shutdown WiFi or BT. Now PHY and RF disabling job is done automatically when stop WiFi or BT. Users should not call this API in their application.
Arguments
modem
the modem to call the phy disable.