linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: Fix race condition with rfkill handling
@ 2013-09-11 11:33 johan.hedberg
  2013-09-11 11:33 ` [PATCH 1/2] Bluetooth: Introduce a new HCI_RFKILLED flag johan.hedberg
  2013-09-11 11:33 ` [PATCH 2/2] Bluetooth: Fix rfkill functionality during the HCI setup stage johan.hedberg
  0 siblings, 2 replies; 6+ messages in thread
From: johan.hedberg @ 2013-09-11 11:33 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

These two patches fix a pretty severe (hence Cc: stable) race condition
with rfkill handling. If a device gets rfkilled before the HCI setup
stage completes it stays unaccessible through the mgmt interface even it
eventually gets unblocked through rfkill.

The situation is easy to reproduce by running "rfkill block all" before
inserting a dongle, "rfkill unblock all" a bit later and then trying
to do e.g. "btmgmt info". The device will not show up there.

Johan

----------------------------------------------------------------
Johan Hedberg (2):
      Bluetooth: Introduce a new HCI_RFKILLED flag
      Bluetooth: Fix rfkill functionality during the HCI setup stage

 include/net/bluetooth/hci.h |  1 +
 net/bluetooth/hci_core.c    | 22 +++++++++++++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)


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

end of thread, other threads:[~2013-09-12  6:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-11 11:33 [PATCH 0/2] Bluetooth: Fix race condition with rfkill handling johan.hedberg
2013-09-11 11:33 ` [PATCH 1/2] Bluetooth: Introduce a new HCI_RFKILLED flag johan.hedberg
2013-09-11 20:30   ` Marcel Holtmann
2013-09-11 11:33 ` [PATCH 2/2] Bluetooth: Fix rfkill functionality during the HCI setup stage johan.hedberg
2013-09-11 20:33   ` Marcel Holtmann
2013-09-12  6:28     ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).