From b04b978d406c37f8d4909f060652ad1f7403dee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Thu, 2 Jul 2026 15:19:00 +0200 Subject: [PATCH] infix-hardware: fix operational with virtual radios * Show a vendor of the radio (hwsim) * Allow to show alot of supported AP interfaces, hwsim supports 2048 --- board/common/rootfs/usr/libexec/infix/iw.py | 4 +++- src/confd/yang/confd.inc | 2 +- src/confd/yang/confd/infix-hardware.yang | 10 ++++++++-- ...@2026-03-01.yang => infix-hardware@2026-07-02.yang} | 0 4 files changed, 12 insertions(+), 4 deletions(-) rename src/confd/yang/confd/{infix-hardware@2026-03-01.yang => infix-hardware@2026-07-02.yang} (100%) diff --git a/board/common/rootfs/usr/libexec/infix/iw.py b/board/common/rootfs/usr/libexec/infix/iw.py index ed6883d1..87cb078e 100755 --- a/board/common/rootfs/usr/libexec/infix/iw.py +++ b/board/common/rootfs/usr/libexec/infix/iw.py @@ -213,7 +213,9 @@ def parse_phy_info(phy_name): # Map driver to manufacturer driver_lower = driver_name.lower() - if 'mt' in driver_lower or 'mediatek' in driver_lower: + if 'hwsim' in driver_lower: + result['manufacturer'] = 'Virtual (hwsim)' + elif 'mt' in driver_lower or 'mediatek' in driver_lower: result['manufacturer'] = 'MediaTek Inc.' elif 'rtw' in driver_lower or 'realtek' in driver_lower: result['manufacturer'] = 'Realtek Semiconductor Corp.' diff --git a/src/confd/yang/confd.inc b/src/confd/yang/confd.inc index e740c6cd..1e4d4f10 100644 --- a/src/confd/yang/confd.inc +++ b/src/confd/yang/confd.inc @@ -27,7 +27,7 @@ MODULES=( "infix-syslog@2025-11-17.yang" "iana-hardware@2018-03-13.yang" "ietf-hardware@2018-03-13.yang -e hardware-state -e hardware-sensor" - "infix-hardware@2026-03-01.yang" + "infix-hardware@2026-07-02.yang" "ieee802-dot1q-types@2022-10-29.yang" "infix-ip@2026-04-28.yang" "infix-if-type@2026-01-07.yang" diff --git a/src/confd/yang/confd/infix-hardware.yang b/src/confd/yang/confd/infix-hardware.yang index b73f9a68..630bf570 100644 --- a/src/confd/yang/confd/infix-hardware.yang +++ b/src/confd/yang/confd/infix-hardware.yang @@ -21,6 +21,12 @@ module infix-hardware { contact "kernelkit@googlegroups.com"; description "Vital Product Data augmentation of ieee-hardware and deviations."; + revision 2026-07-02 { + description "Widen wifi max-interfaces ap/station to uint16, virtual + radios (mac80211_hwsim) report combinations up to 2048."; + reference "internal"; + } + revision 2026-03-01 { description "Add channel-width leaf for WiFi radio container."; reference "internal"; @@ -457,13 +463,13 @@ module infix-hardware { "Maximum number of virtual interfaces supported by this radio."; leaf ap { - type uint8; + type uint16; description "Maximum number of AP interfaces."; } leaf station { - type uint8; + type uint16; description "Maximum number of station interfaces."; } diff --git a/src/confd/yang/confd/infix-hardware@2026-03-01.yang b/src/confd/yang/confd/infix-hardware@2026-07-02.yang similarity index 100% rename from src/confd/yang/confd/infix-hardware@2026-03-01.yang rename to src/confd/yang/confd/infix-hardware@2026-07-02.yang