CHROMIUM: Only indicate "central-peripheral" support if the driver supports it.

Currently the kernel returns an entry for "central-peripheral" support
regardless of whether its supported or not, support is then indicated
via flag. Bluez doesn't honor this flag, leading to failures. This patch
is modified from patches 4fc9857ab8c6cfe2152df3288c8cf3300b929f1a and
76d0685bbac8ae017e5d12eba25fb3c4f0ec77ac that expect experiment enum values
not yet present in this kernel version.

BUG=b:203440796
TEST=Ran bluetooth_AdapterLEHealth.le_role_receiver_during_hid

Change-Id: Ia8bfe1bfbf3da434c23be97e6b3614baf035243a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3390004
Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Tested-by: Jesse Melhuish <melhuishj@chromium.org>
Commit-Queue: Jesse Melhuish <melhuishj@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/3428011
2 files changed