Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds GetSupportedWiFiBandsMask API #325

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rosahay-silabs
Copy link
Owner

Testing

Checked build for different NCP combinations and for SoC.

@@ -410,6 +412,20 @@ class WifiInterface
*/
virtual void CancelScanNetworks() = 0;

using WiFiBandEnum = app::Clusters::NetworkCommissioning::WiFiBandEnum;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid as much as possible of having a using in a header file.

*
* @return a bitmask of supported Wi-Fi bands where each bit is associated with a WiFiBandEnum value.
*/
virtual uint32_t _GetSupportedWiFiBandsMask() const

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
virtual uint32_t _GetSupportedWiFiBandsMask() const
virtual uint32_t GetSupportedWiFiBandsMask() const

@@ -16,7 +16,9 @@
*/
#pragma once

#include <app-common/zap-generated/cluster-enums.h>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This include will also be necessary in the other PR (but i think it gets merged in this branch anywais)

@@ -258,6 +258,11 @@ chip::BitFlags<WiFiSecurity> SlWiFiDriver::ConvertSecuritytype(wfx_sec_t securit
return securityType;
}

uint32_t SlWiFiDriver::GetSupportedWiFiBandsMask() const

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So currently we don't use this new method?

virtual uint32_t _GetSupportedWiFiBandsMask() const
{
// Default to 2.4G support only
return static_cast<uint32_t>(1UL << chip::to_underlying(WiFiBandEnum::k2g4));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know the bitmap expected mapping? Where is this defined?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants