QMI.WirelessData (qmi v0.10.2)

View Source

Provides command related to wireless messaging

Summary

Functions

Get current WDS settings for the given IP family (4 or 6). Returns a map that may include :ipv4_mtu and/or :ipv6_mtu.

Modify a profile's settings to be used when starting an interface connection

Set the event report options for the wireless data event indication

Start the network interface

Functions

get_current_settings(qmi, ip_family \\ 4, opts \\ [])

Get current WDS settings for the given IP family (4 or 6). Returns a map that may include :ipv4_mtu and/or :ipv6_mtu.

Options are passed to the codec builder and may include:

  • :extended_mask - add Extended Requested Settings (0x11) mask
  • :packet_data_handle - include PDH (0x01) for the active session

modify_profile_settings(qmi, profile_index, settings)

@spec modify_profile_settings(QMI.name(), profile_index :: integer(), [
  QMI.Codec.WirelessData.profile_setting()
]) :: {:ok, map()} | {:error, atom()}

Modify a profile's settings to be used when starting an interface connection

set_event_report(qmi, opts \\ [])

@spec set_event_report(QMI.name(), [QMI.Codec.WirelessData.event_report_opt()]) ::
  :ok | {:error, atom()}

Set the event report options for the wireless data event indication

start_network_interface(qmi, opts \\ [])

@spec start_network_interface(QMI.name(), [
  QMI.Codec.WirelessData.start_network_interface_opt()
]) ::
  {:ok, QMI.Codec.WirelessData.start_network_report()} | {:error, atom()}

Start the network interface

This will return once a packet data session is established and the interface can perform IP address configuration. That means once this returns you can configure the interface via DHCP.