Linux bluetooth development
 help / color / mirror / Atom feed
* [bluez/bluez] e70640: emulator: add generic HW rfkill test tool
@ 2026-09-30 14:10 aluvalasaitejaintel
  0 siblings, 0 replies; only message in thread
From: aluvalasaitejaintel @ 2026-09-30 14:10 UTC (permalink / raw)
  To: linux-bluetooth

  Branch: refs/heads/1176664
  Home:   https://github.com/bluez/bluez
  Commit: e706401fd86e46a6e3240fc8eed880d0f8d7bebc
      https://github.com/bluez/bluez/commit/e706401fd86e46a6e3240fc8eed880d0f8d7bebc
  Author: Sai Teja Aluvala <aluvala.sai.teja@intel.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M Makefile.tools
    A emulator/hci_rfkill.c

  Log Message:
  -----------
  emulator: add generic HW rfkill test tool

Add emulator/hci_rfkill, a standalone tool that drives the
force_hw_rfkill debugfs hook for an hciN device and verifies the
reported hardware-block state against /sys/class/rfkill. The hook
exercises the generic net/bluetooth rfkill path for any HCI transport;
it does not test the driver's hardware interrupt or register handling.

Support assert-only, deassert-only, and toggle modes. Validate the
hciN argument before using it in filesystem paths. In toggle mode,
if asserting the block was written successfully but subsequent
verification fails, still attempt a verified unblock while preserving
the failure result. Do not attempt an unblock when the assert write
itself fails.

The optional -r/--restore mode snapshots the adapter's up/down state
via HCIGETDEVINFO and restores it via HCIDEVUP/HCIDEVDOWN, following
the raw HCI control-socket approach used by tools/hciconfig.c.

Usage: hci_rfkill [-e|-d|-t] [-r] hciN

Signed-off-by: Sai Teja Aluvala <aluvala.sai.teja@intel.com>



To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-30 14:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30 14:10 [bluez/bluez] e70640: emulator: add generic HW rfkill test tool aluvalasaitejaintel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox