Re: [PATCH v2] Bluetooth: Fix mgmt handling of power on failures

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

* Johan Hedberg <johan.hedberg@xxxxxxxxx> [2013-05-29 09:51:29 +0300]:

> From: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> 
> If hci_dev_open fails we need to ensure that the corresponding
> mgmt_set_powered command gets an appropriate response. This patch fixes
> the missing response by adding a new mgmt_set_powered_failed function
> that's used to indicate a power on failure to mgmt. Since a sutuation
> with the device being rfkilled may require special handling in user
> space the patch uses a new dedicated mgmt status code for this.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---
> v2: Added dedicated mgmt error for the ERFKILL case
> 
>  include/net/bluetooth/hci_core.h |    1 +
>  include/net/bluetooth/mgmt.h     |    1 +
>  net/bluetooth/hci_core.c         |    6 +++++-
>  net/bluetooth/mgmt.c             |   21 +++++++++++++++++++++
>  4 files changed, 28 insertions(+), 1 deletion(-)

Patch has been applied, I fixed the typo too. Thanks.

	Gustavo
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux