]> 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)
commit2a1620b39cde3f937d08faf7d029f4982ba2e535
treebb2445231b3dbc440d28e62700cc1e82a2aec1f3
parentd79564a9f8aa72e80276fe2aab1ae2fa96413c9d
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