# `QMI.WirelessData`
[🔗](https://github.com/nerves-networking/qmi/blob/v0.10.3/lib/qmi/wireless_data.ex#L6)

Provides command related to wireless messaging

# `get_current_settings`

```elixir
@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

# `modify_profile_settings`

```elixir
@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`

```elixir
@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`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
