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/hciconfig.c | |
parent | 55e1678bd839b623996be4dfc2957f3b49244464 (diff) | |
download | bluez-9087baccab9fd25de7f383fb4a385fee95c6c3f1.tar.gz |
tools: Handle the broken behavior of host features max page value
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r-- | tools/hciconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 8ec1e8aa2..17c740b52 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -624,6 +624,9 @@ static void cmd_features(int ctl, int hdev, char *opt) exit(1); } + if (max_page < 1 && (features[6] & LMP_SIMPLE_PAIR)) + max_page = 1; + print_dev_hdr(&di); 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", |