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
This commit is contained in:
Mattias Walström
2026-07-02 15:25:55 +02:00
parent 1d1afecdc3
commit b04b978d40
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -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.'
+1 -1
View File
@@ -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"
+8 -2
View File
@@ -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.";
}