Re: [PATCH] Bluetooth: Fix invalid response for 'Start Discovery' command

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

 



Hi Szymon,

On Mon, Nov 03, 2014, Szymon Janc wrote:
> According to Management Interface API 'Start Discovery' command should
> generate a Command Complete event on failure. Currently kernel is
> sending Command Status on early errors. This results in userspace
> ignoring such event due to invalid size.
> 
> bluetoothd[28499]: src/adapter.c:trigger_start_discovery()
> bluetoothd[28499]: src/adapter.c:cancel_passive_scanning()
> bluetoothd[28499]: src/adapter.c:start_discovery_timeout()
> bluetoothd[28499]: src/adapter.c:start_discovery_complete() status 0x0a
> bluetoothd[28499]: Wrong size of start discovery return parameters
> 
> Signed-off-by: Szymon Janc <szymon.janc@xxxxxxxxx>
> Reported-by: Jukka Taimisto <jtt@xxxxxxxxxxxxxxx>
> ---
>  net/bluetooth/mgmt.c | 56 ++++++++++++++++++++++++++++++++--------------------
>  1 file changed, 35 insertions(+), 21 deletions(-)

Applied to bluetooth-next. Thanks.

Johan
--
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