summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-06-17 10:35:00 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-06-17 10:35:00 +0000
commit9fab0f8bb8c38b57d9a3bfe6abb2d93134326462 (patch)
treeaeff92e57c9d35a92872dca975b9804c00a7628d
parent4dbc43a23b60e0bc5ce6bfd4926c3109a2c5d723 (diff)
Only read remote extended features if local adapter supports it
-rw-r--r--tools/hcitool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hcitool.c b/tools/hcitool.c
index 594c2601..f38fd1d0 100644
--- a/tools/hcitool.c
+++ b/tools/hcitool.c
@@ -833,7 +833,7 @@ static void cmd_info(int dev_id, int argc, char **argv)
bt_free(tmp);
}
- if (features[7] & LMP_EXT_FEAT) {
+ if ((di.features[7] & LMP_EXT_FEAT) && (features[7] & LMP_EXT_FEAT)) {
if (hci_read_remote_ext_features(dd, handle, 0, &max_page, features, 20000) == 0)
if (max_page > 0)
printf("\tExtended features: %d pages\n", max_page);