QMI.WirelessData (qmi v0.10.2)
View SourceProvides 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
@spec get_current_settings(QMI.name(), QMI.Codec.WirelessData.ip_family(), [ QMI.Codec.WirelessData.get_current_settings_opt() ]) :: {:ok, QMI.Codec.WirelessData.current_settings()} | {:error, atom()}
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
@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
@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
@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.