summaryrefslogtreecommitdiff
path: root/tools/hciconfig.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-01-05 17:46:52 -0800
committerMarcel Holtmann <marcel@holtmann.org>2015-01-05 17:46:52 -0800
commit9087baccab9fd25de7f383fb4a385fee95c6c3f1 (patch)
tree1789384d5505ea4cc087c9e751177a1591e03995 /tools/hciconfig.c
parent55e1678bd839b623996be4dfc2957f3b49244464 (diff)
downloadbluez-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.c3
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",