Skip to content

drivers: wifi: siwx91x: Add support for link mode query #93253

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muahmed-silabs
Copy link
Contributor

Mapped the link mode (wireless mode) from wireless info to the wifi status API.

@@ -73,7 +73,7 @@ int siwx91x_status(const struct device *dev, struct wifi_iface_status *status)
if (FIELD_GET(SIWX91X_INTERFACE_MASK, interface) == SL_WIFI_CLIENT_INTERFACE) {
sl_wifi_operational_statistics_t operational_statistics = { };

status->link_mode = WIFI_LINK_MODE_UNKNOWN;
status->link_mode = wlan_info.wireless_mode;
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you need to convert the value? If by chance the values used by Wiseconnect and by Zephyr are the same, you need to mention that in a comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, the values are the same. I'll add a comment.
Also, should it be explicitly typecasted?

Mapped the link mode (wireless mode) from wireless info to the wifi
status API.

Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
@muahmed-silabs muahmed-silabs force-pushed the add/wifi-status-link-mode branch from 6bcf398 to 20f38ae Compare July 21, 2025 06:00
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Wi-Fi Wi-Fi platform: Silabs Silicon Labs size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants