Skip to content
Commit 95b70154 authored by Tomasz Moń's avatar Tomasz Moń Committed by Luiz Augusto von Dentz
Browse files

Bluetooth: btusb: Fix bluetooth on Intel Macbook 2014

Commit c13380a5 ("Bluetooth: btusb: Do not require hardcoded
interface numbers") inadvertedly broke bluetooth on Intel Macbook 2014.
The intention was to keep behavior intact when BTUSB_IFNUM_2 is set and
otherwise allow any interface numbers. The problem is that the new logic
condition omits the case where bInterfaceNumber is 0.

Fix BTUSB_IFNUM_2 handling by allowing both interface number 0 and 2
when the flag is set.

Fixes: c13380a5

 ("Bluetooth: btusb: Do not require hardcoded interface numbers")
Reported-by: default avatarJohn Holland <johnbholland@icloud.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217651
Signed-off-by: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
Tested-by: default avatarJohn <Holland&lt;johnbholland@icloud.com>
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 3dcaa192
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment