Bluetooth: mgmt: Don't allow to set invalid value to DeviceID source
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 16 Mar 2012 15:02:57 +0000 (16:02 +0100)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:33 +0000 (00:41 -0300)
commitc72d4b8afa8002cd6f64225954bee78296321e7e
tree2abcb1d54309248e09dae928570d118691f15974
parentd97dcb66001222efa79e55f5260b9b660fd452a4
Bluetooth: mgmt: Don't allow to set invalid value to DeviceID source

Reply with MGMT_STATUS_INVALID_PARAMS when userspace is trying to set
source with out-of-scope value.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Acked-by: Gustavo Padovan <gustavo@padovan.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c