diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-01-23 03:10:39 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-23 12:59:31 -0500 |
commit | 484aabc1c4e869879e614a621e2dfabc9f98fb00 (patch) | |
tree | d0ee1d4bd205b43e3644d2abe6335f8aae8a8fe8 /net/bluetooth | |
parent | 5d57e7964c3261827cc718b0e5317ac4950e2f21 (diff) |
Bluetooth: Remove incorrect check for BDADDR_BREDR address type
The Add Remote OOB Data mgmt command should allow data to be passed for
LE as well. This patch removes a left-over check for BDADDR_BREDR that
should not be there anymore.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 2c0de3e4e79a..862a005d9db2 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -3672,14 +3672,6 @@ static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev, | |||
3672 | u8 *rand192, *hash192; | 3672 | u8 *rand192, *hash192; |
3673 | u8 status; | 3673 | u8 status; |
3674 | 3674 | ||
3675 | if (cp->addr.type != BDADDR_BREDR) { | ||
3676 | err = cmd_complete(sk, hdev->id, | ||
3677 | MGMT_OP_ADD_REMOTE_OOB_DATA, | ||
3678 | MGMT_STATUS_INVALID_PARAMS, | ||
3679 | &cp->addr, sizeof(cp->addr)); | ||
3680 | goto unlock; | ||
3681 | } | ||
3682 | |||
3683 | if (bdaddr_type_is_le(cp->addr.type)) { | 3675 | if (bdaddr_type_is_le(cp->addr.type)) { |
3684 | rand192 = NULL; | 3676 | rand192 = NULL; |
3685 | hash192 = NULL; | 3677 | hash192 = NULL; |