Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Airplane Mode - OEM Only

The WLAN can be configured to remain on and uninterrupted in airplane mode. To do this, airplane mode and WiFi are controlled independently. This implementation capitalizes on the fact that for any modem/WLAN technology to be enabled, these conditions must be met:

  • The operating mode of the device must be ONLINE not Low Power Mode (LPM) - specified by IPHONECTL_SetOperatingMode()
  • Subscription of the technology must be enabled - specified by IPHONECTL_SetSubscriptionStatus()
  • System mode preference must include the technology - specified by IPHONECTL_SetSystemPreference()

Qualcomm provides the following recommended implementation:

  • WLAN subscription is always enabled and use the system mode preference to enable/disable WiFi.
  • The applicable cellular technology is always in the system mode preference and use its subscription to enable/disable airplane mode.

Recommended Implementation
WIFI

Setup: Need to ensure that WLAN subscription is always enabled.

Enable with: IPHONECTL_SetSubscriptionStatus().

Enable WiFi: Add WLAN to system mode preference: IPHONECTL_SetSystemPreference() with AEET_MODE_PREF_CURRENT_PLUS_WLAN to enable WiFi

Disable WiFi: Remove WLAN from the system mode preference: IPHONECTL_SetSystemPreference() with AEET_MODE_PREF_CURRENT_LESS_WLAN to disable WiFi

Airplane mode

Setup: Need to ensure that the applicable cellular technology is included in the system mode preference.

Set the preference with: IPHONECTL_SetSystemModePreference()

Enable Airplane Mode: Disable cellular subscription: IPHONECTL_SetSubscriptionStatus() with applicable modem system mode (e.g. AEET_SYS_MODE_GW for GSM/WCDMA, AEET_SYS_MODE_CDMA for CDMA) and FALSE to disable cellular technology.

Disable Airplane Mode: Enable cellular subscription: IPHONECTL_SetSubscriptionStatus() with applicable modem system mode (e.g. AEET_SYS_MODE_GW for GSM/WCDMA, AEET_SYS_MODE_CDMA for CDMA) and TRUE to enable cellular technology.