diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-01-05 17:46:52 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-01-05 17:46:52 -0800 |
commit | 9087baccab9fd25de7f383fb4a385fee95c6c3f1 (patch) | |
tree | 1789384d5505ea4cc087c9e751177a1591e03995 /tools/hcitool.c | |
parent | 55e1678bd839b623996be4dfc2957f3b49244464 (diff) | |
download | bluez-9087baccab9fd25de7f383fb4a385fee95c6c3f1.tar.gz |
tools: Handle the broken behavior of host features max page value
Diffstat (limited to 'tools/hcitool.c')
-rw-r--r-- | tools/hcitool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c index 648a0f7d6..0bd416fe7 100644 --- a/tools/hcitool.c +++ b/tools/hcitool.c @@ -967,6 +967,9 @@ static void cmd_info(int dev_id, int argc, char **argv) hci_read_remote_ext_features(dd, handle, 0, &max_page, features, 20000); + if (max_page < 1 && (features[6] & LMP_SIMPLE_PAIR)) + max_page = 1; + printf("\tFeatures%s: 0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x " "0x%2.2x 0x%2.2x 0x%2.2x 0x%2.2x\n", (max_page > 0) ? " page 0" : "", |