Versions Compared

Key

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

...

Code Walk-through in RPI Platform

Code Walk-through: Folder structure

Image RemovedImage Added

Looking at the below folder structure of the wifi HAL code in reference wifi & device specific wifi, We can see both follow similar naming conventions. We have 2 common files: wifi_common_hal.c and wifi_client_hal.c

...

  • 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 callback 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.

Code Walk-through: Wi-Fi HAL Recipe

This is a simple recipe which defines build rules for WIFI HAL library code. Here we can see that after defining some common stuff, it defines 2 environment variables i.e. PROVIDES , RPROVIDES_PN, both of which are assigned to virtual/wifi-hal. We can also see that wpa_supplicant and wifi-hal-headers as dependencies in the below code.

Image Added

Code Walk-through: Network Manager


Image Added

Wi-Fi HAL APIs

TODO

Debugging and Log analysis

...