]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix REJECTED vs NOT_SUPPORTED mgmt responses
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 2 Oct 2013 12:45:22 +0000 (15:45 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 2 Oct 2013 12:52:51 +0000 (05:52 -0700)
commitf5fdad77f69d20d58e5201fd0e3fefcb57327314
treebb2445231b3dbc440d28e62700cc1e82a2aec1f3
parentc0ea95fa9f04bc627065c298a54f8e62883bf0fe
Bluetooth: Fix REJECTED vs NOT_SUPPORTED mgmt responses

The REJECTED management response should mainly be used when the adapter
is in a state where we cannot accept some command or a specific
parameter value. The NOT_SUPPORTED response in turn means that the
adapter really cannot support the command or parameter value.

This patch fixes this distinction and adds two helper functions to
easily get the appropriate LE or BR/EDR related status response.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c