/* Set the power mode used as a station. The Wi-Fi chip will enable the Wi-Fi power mode feature.  */
sl_status_t sl_wfx_set_power_mode(sl_wfx_pm_mode_t mode, uint16_t interval)
/* Set the power mode used as a station. The Wi-Fi chip will enable the Wi-Fi power mode feature.  */
sl_status_t sl_wfx_set_power_mode(sl_wfx_pm_mode_t mode, uint16_t interval)
{
  sl_wfx_set_pm_mode_req_body_t payload;
  payload.power_mode      = sl_wfx_htole16(mode);
  payload.listen_interval = sl_wfx_htole16(interval);
  return sl_wfx_send_command(SL_WFX_SET_PM_MODE_REQ_ID, &payload, sizeof(payload), SL_WFX_STA_INTERFACE, NULL);
}