Skip to content

Commit

Permalink
bthelper: Recognise Pi 4 OUI
Browse files Browse the repository at this point in the history
The bthelper script uses the OUI of the BDADDR (Bluetooth MAC address)
to determine whether or not to run on a Bluetooth interface. Pi 4s
have BDADDRs from a new OUI range (DC:A6:32:...), meaning that
the "is it a Pi's on-board BT interface" test must be amended to include
that as a possibility.

See: raspberrypi/linux#2229 (comment)

Signed-off-by: Phil Elwell <[email protected]>
  • Loading branch information
Phil Elwell committed Nov 4, 2019
1 parent d596d06 commit a0bc7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/bin/bthelper
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ fi
dev="$1"
# Need to bring hci up before looking at MAC as it can be all zeros during init
/bin/hciconfig "$dev" up
/bin/hciconfig "$dev" |grep -q "BD Address: B8:27:EB:" || exit 0
/bin/hciconfig "$dev" | grep -qE "BD Address: (B8:27:EB|DC:A6:32):" || exit 0
/usr/bin/hcitool -i "$dev" cmd 0x3f 0x1c 0x01 0x02 0x00 0x01 0x01 > /dev/null

0 comments on commit a0bc7cd

Please sign in to comment.