Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

https://etwiki.sys.comcast.net/display/CE/%5bShared%5d+WiFi

https://etwiki.sys.comcast.net/display/APPS/WIFI+Manager+API

Table of Contents

RDK Wi-Fi Sub-system overview

...

IARM CallDescriptions

IARM_BUS_WIFI_MGR_API_getAvailableSSIDs

Retrieves the List of available APs

IARM_BUS_WIFI_MGR_API_getConnectedSSID

Returns the properties of the currently connected SSID

IARM_BUS_WIFI_MGR_API_setEnabled

Enable the WIFI adapter on the box

IARM_BUS_WIFI_MGR_API_connect

Connect with given or saved SSID and passphrase

IARM_BUS_WIFI_MGR_API_getConnectionType

Retrieves the type based on active network interface

IARM_BUS_WIFI_MGR_API_getRadioStatsProps

Retrieve the get radio stats properties


IARM Call implementation:

  • In the above table we can see that for each of the possible Wi-Fi Events, we have defined a IARM Call.
  • For example, we have some remote procedure calls, which can be invoked from any application to perform some Wi-Fi related operation.
  • These operation may be to get the list of available network or to connect to a particular Wi-Fi network, etc.

IARM Events Notificaiton:

Basically we have 2 types of events for Wifi Manager notifications.

State change notifications events:

  • WIFI_CONNECTING : When a connection is initiated the state will change from IDEAL to CONNECTING.
  • WIFI_FAILED : When a connection attempt is failed.
  • WIFI_DISCONNECTED : When a AP is disconnected from client.
  • WIFI_CONNECTED : This will be notified after a successful connection.

Error events:

  • WIFI_NO_SSID: The Access point we wanted to connect is no longer available.

  • WIFI_UNKNOWN : Unknown error has happened.
  • WIFI_CONNECTION_LOST : connection is lost, this may indicate that an AP is no longer in range.
  • WIFI_SSID_CHANGED : this indicates that we have connected to another SSID
  • WIFI_CONNECTION_FAILED : When the connection is failed, it may be because of invalid credential or any other issue.
  • WIFI_CONNECTION_INTERRUPTED : Connection is cancelled by user when it was in progress.

...

  • It Mainly defines the internal state management functions, threads for monitoring the events coming from wpa_supplicant and connection related functions.
  • It also defines call back functions for sending back the state changes and error events to wifi manager
  • In generic wifi HAL, we have 3 header functions for defining AP, client & common APIs.
  • In Raspberry Pi, the device specific HAL has dependency of WPA client library and libnl.

Wi-Fi HAL APIs

TODO

Debugging and Log analysis

TODO


Useful links:

https://etwiki.sys.comcast.net/display/CE/%5bShared%5d+WiFi

https://etwiki.sys.comcast.net/display/APPS/WIFI+Manager+API