Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 484aabc1 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 5d57e796
Loading
Loading
Loading
Loading
+0 −8
Original line number Original line Diff line number Diff line
@@ -3672,14 +3672,6 @@ static int add_remote_oob_data(struct sock *sk, struct hci_dev *hdev,
		u8 *rand192, *hash192;
		u8 *rand192, *hash192;
		u8 status;
		u8 status;


		if (cp->addr.type != BDADDR_BREDR) {
			err = cmd_complete(sk, hdev->id,
					   MGMT_OP_ADD_REMOTE_OOB_DATA,
					   MGMT_STATUS_INVALID_PARAMS,
					   &cp->addr, sizeof(cp->addr));
			goto unlock;
		}

		if (bdaddr_type_is_le(cp->addr.type)) {
		if (bdaddr_type_is_le(cp->addr.type)) {
			rand192 = NULL;
			rand192 = NULL;
			hash192 = NULL;
			hash192 = NULL;