Thread (26 messages) read the whole thread 26 messages, 4 authors, 2013-01-10

Re: [PATCH 5/8 v2] Bluetooth: Fix returning proper command status for start_discovery

From: Gustavo Padovan <hidden>
Date: 2013-01-10 18:30:58

Hi Johan,

* Johan Hedberg [off-list ref] [2013-01-10 14:54:09 +0200]:
From: Johan Hedberg <redacted>

Management commands should whenever possible fail with proper command
status or command complete events. This patch fixes the
mgmt_start_discovery command to do this for the failure cases where an
incorrect parameter value was passed to it ("not supported" if the
parameter value was valid but the controller doesn't support it and
"invalid params" if it isn't valid at all).

Signed-off-by: Johan Hedberg <redacted>
---
v2: Use proposed logic for testing for not supported parameters

 net/bluetooth/mgmt.c |   46 ++++++++++++++++++++++++++++++----------------
 1 file changed, 30 insertions(+), 16 deletions(-)
Patch has been applied. Thanks.

	Gustavo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help