]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ng_ubt(4): do not attach Intel Wireless 8260/8265 in bootloader mode.
authorVladimir Kondratyev <wulf@FreeBSD.org>
Sun, 18 Aug 2019 22:11:42 +0000 (22:11 +0000)
committerVladimir Kondratyev <wulf@FreeBSD.org>
Sun, 18 Aug 2019 22:11:42 +0000 (22:11 +0000)
commit3544d43bb17f9f69f145bccb58ca9bf3dd5810b1
treeae9c5f305a1747b9dfb49c5fa2e21f98d3ef9867
parentde4e1aeb21b6424b075af9db7d42368e0847e121
ng_ubt(4): do not attach Intel Wireless 8260/8265 in bootloader mode.

Add helper function for synchronous execution of HCI commands at probe
stage and use this function to check firmware state of Intel Wireless
8260/8265 bluetooth devices found in many post 2016 year laptops.

Attempt to initialize FreeBSD bluetooth stack while such a device is in
bootloader mode locks the adapter hardly so it requires power on/off
cycle to restore.

This change blocks ng_ubt attachment unless operational firmware is
loaded thus preventing the lock up.

PR: 237083
Reviewed by: hps, emax
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D21071
sys/conf/files
sys/modules/netgraph/bluetooth/ubt/Makefile
sys/netgraph/bluetooth/drivers/ubt/ng_ubt.c
sys/netgraph/bluetooth/drivers/ubt/ng_ubt_intel.c [new file with mode: 0644]
sys/netgraph/bluetooth/drivers/ubt/ng_ubt_var.h