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

Re: [PATCH 7/8 v2] Bluetooth: Fix checking for exact values of boolean mgmt parameters

From: Gustavo Padovan <hidden>
Date: 2013-01-10 08:24:58

Hi Johan,

* Johan Hedberg [off-list ref] [2013-01-09 16:05:19 +0200]:
From: Johan Hedberg <redacted>

All mgmt_set_* commands that take a boolean value encoded in the form of
a byte should only accept the values 0x00 and 0x01. This patch adds the
necessary checks for this and returns "invalid params" responses if
anything else is provided as the value.

Signed-off-by: Johan Hedberg <redacted>
---
v2: Fix s/SET_SSP/SET_LE/ copy-paste issue

 net/bluetooth/mgmt.c |   36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
All patches but 5 and 8 were applied to bluetooth-next. 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