connectedhomeip icon indicating copy to clipboard operation
connectedhomeip copied to clipboard

[Platform] Platform's WiFi driver have to implement their version of GetSupportedWiFiBands()

Open jmartinez-silabs opened this issue 1 year ago • 0 comments

Reproduction steps

PR #30551 Add the plumbing for the Network Commissioning attribute SupportedWiFiBands. It also provides a default implementation for the virtual getter function.

    /**
     *  @brief Provide all the frequency bands supported by the Wi-Fi interface
     *
     *  Provide a default implementation that returns the 2.4 Ghz band support.
     *  Note: WiFi platforms should implement this function in their WiFiDriver to provide their complete device capabilities
     */
    virtual WiFiBand GetSupportedWiFiBands() { return WiFiBand::k2g4; }

Each WiFi platform must implement/override this function with its platform-specific API and supported bands in its WiFI driver.

Platform

ameba, darwin, efr32, esp32, k32w, nrf connect, nrf, other

Platform Version(s)

No response

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

Currently, there is no automated test to read this attribute. This should change soon but for now, you can validate your implementation with chip-tool by doing an attribute read on the cluster ( You probably have to enable the attributes in your app configuration as external)

chip-tool networkcommissioning read supported-wi-fi-bands <node_id> 0

Anything else?

No response

jmartinez-silabs avatar Nov 20 '23 16:11 jmartinez-silabs