linux/drivers/net/wireless/realtek
Johnson Tsai 384cc80f30 wifi: rtw89: usb: add serial_number and uuid sysfs attributes for 0x28de:0x2432
Expose the device's Serial Number (SN) and UUID from EFUSE via two
read-only sysfs attributes, `serial_number` and `uuid`, on the ieee80211
phy device under the `rtw89_usb` attribute group.

This hardware identification information is essential for user-space
applications to uniquely identify, track, and manage specific Wi-Fi
adapters. For example, in automated factory provisioning or device
management systems, user-space tools rely on the EFUSE serial number and
UUID to bind configurations to specific physical adapters. Currently,
standard wireless APIs do not expose this low-level hardware
information, making these sysfs nodes the only viable solution for
user space to extract this data.

The attributes are gated behind a new RTW89_QUIRK_HW_INFO_SYSFS quirk,
enabled only for the VID 0x28de / PID 0x2432 device via the
dev_id_quirks field in rtw89_driver_info.

Example usage from user-space:
  $ cat /sys/class/ieee80211/phy0/rtw89_usb/serial_number
  3642000123
  $ cat /sys/class/ieee80211/phy0/rtw89_usb/uuid
  aaec2b7c-0a55-4727-8de0-b30febccbbaa

Cc: Elliot Saba <sabae@valvesoftware.com>
Cc: Charles Lohr <charlesl@valvesoftware.com>
Signed-off-by: Johnson Tsai <wenjie.tsai@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260529075032.16807-3-pkshih@realtek.com
History 2026-06-03 14:48:22 +08:00
..
rtl8xxxu wifi: rtl8xxxu: Detect the maximum supported channel width 2026-05-06 15:54:20 +08:00
rtl818x wifi: rtl818x: drop redundant device reference 2026-03-16 13:59:46 +08:00
rtlwifi wifi: rtlwifi: rtl8821ae: Fix C2H bit location in RX descriptor 2026-04-29 13:50:55 +08:00
rtw88 wifi: rtw88: Add more validation for the RX descriptor 2026-05-27 16:43:49 +08:00
rtw89 wifi: rtw89: usb: add serial_number and uuid sysfs attributes for 0x28de:0x2432 2026-06-03 14:48:22 +08:00
Kconfig rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00
Makefile rtw89: add Realtek 802.11ax driver 2021-10-13 09:01:12 +03:00