Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH v1 0/1] rfkill: expose hardware-only block state
@ 2026-09-30  7:42 Sai Teja Aluvala
  2026-09-30  7:42 ` [PATCH v1 1/1] rfkill: add rfkill_hard_blocked() helper Sai Teja Aluvala
  0 siblings, 1 reply; 3+ messages in thread
From: Sai Teja Aluvala @ 2026-09-30  7:42 UTC (permalink / raw)
  To: Johannes Berg, linux-wireless
  Cc: kiran.k, chethan.tumkur.narayan, Sai Teja Aluvala


This series adds a public rfkill helper for querying the hardware-only
block state.

The existing rfkill_blocked() helper reports the effective state, which
is set when either hardware or software rfkill is active. Callers that
need to distinguish those cases currently cannot do so because struct
rfkill is opaque.

Add rfkill_hard_blocked(), protected by the rfkill lock and available
with a CONFIG_RFKILL-disabled stub. The helper is used by a follow-up
Bluetooth debugfs test hook, which must verify hardware rfkill state
without confusing it with a software block.

The follow-up Bluetooth series will be submitted separately to
bluetooth-next and depends on this patch.

The patch has been prepared against wireless-next/main.

Changes in v1:
  - Initial version.

Sai Teja Aluvala (1):
  rfkill: add rfkill_hard_blocked() helper

 include/linux/rfkill.h | 12 ++++++++++++
 net/rfkill/core.c      | 13 +++++++++++++
 2 files changed, 25 insertions(+)


base-commit: 21b4248bfa0f410fa22202fc2c82f4808d672cda
-- 
2.53.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-30 11:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30  7:42 [PATCH v1 0/1] rfkill: expose hardware-only block state Sai Teja Aluvala
2026-09-30  7:42 ` [PATCH v1 1/1] rfkill: add rfkill_hard_blocked() helper Sai Teja Aluvala
2026-09-30 11:40   ` Johannes Berg

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