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)
commite6fe798652bfdcdde32a33c2758853e1a8f0c759
treebb2445231b3dbc440d28e62700cc1e82a2aec1f3
parentd13eafce2c892d57f1eb243e43dfe48b4626006d
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