emulator: add generic HW rfkill test tool
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 6 repliesIn review
Changes in v1 from the cover letter
- Initial version.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | emulator: add generic HW rfkill test toolMakefile.tools emulator/ | +481 | 6 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH v1 0/1] emulator: add generic HW rfkill test tool
This patch adds emulator/hci_rfkill, a testing utility for the generic Bluetooth hardware-rfkill path.
The tool operates on an hciN device and:
- writes Y/N to the kernel force_hw_rfkill debugfs entry;
- reads back the debugfs hardware-rfkill state;
- verifies the corresponding /sys/class/rfkill hardware state;
- supports enable-only, disable-only, and toggle modes;
- optionally restores the adapter's original up/down state.
The tool is built only under TESTING and is not installed as a production utility.
This tests the generic net/bluetooth rfkill notification and state handling. It does not test vendor-specific hardware interrupt, doorbell, or register-read logic. For example, the Intel PCIe interrupt/doorbell path must still be tested with the corresponding kernel driver and hardware or transport-level emulation.
Dependency:
This tool requires the separate Bluetooth kernel series:
[PATCH v1 0/4] Bluetooth: add hardware rfkill handling and test hook
In particular, that series adds the Bluetooth kernel debugfs interface:
/sys/kernel/debug/bluetooth/hciN/force_hw_rfkill
The Bluetooth kernel series is submitted to bluetooth-next and itself depends on the separate RFKILL helper submitted to wireless-next. Its cover-thread lore link is:
https://lore.kernel.org/linux-bluetooth/[email protected]/
Patch:
1. emulator: add generic HW rfkill test tool
Changes in v1:
- Initial version.
The patch has been prepared against bluez/master.
Sai Teja Aluvala (1):
emulator: add generic HW rfkill test tool
Makefile.tools | 3 + emulator/hci_rfkill.c | 478 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 481 insertions(+) create mode 100644 emulator/hci_rfkill.c
Signature · 1 line
2.53.0