summaryrefslogtreecommitdiffstats
path: root/tools/hciconfig.c
diff options
context:
space:
mode:
authorMax Krasnyansky <maxk@qualcomm.com>2002-05-08 17:00:05 +0000
committerMax Krasnyansky <maxk@qualcomm.com>2002-05-08 17:00:05 +0000
commit6446efe312e0410efc4c45dc68f5d980755f0666 (patch)
tree15171f90a2cc364c10726c305c52a3a6c11c090c /tools/hciconfig.c
parent79095069d348e61dc26c6fa6e35428c5d90887ff (diff)
Use hci_test_bit instead of (1<<bit)
Diffstat (limited to 'tools/hciconfig.c')
-rw-r--r--tools/hciconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c
index 4b4844ff..1efdecca 100644
--- a/tools/hciconfig.c
+++ b/tools/hciconfig.c
@@ -525,7 +525,7 @@ void print_dev_info(int ctl, struct hci_dev_info *di)
print_link_policy(di);
print_link_mode(di);
- if (di->flags & (1 << HCI_UP)) {
+ if (hci_test_bit(HCI_UP, &di->flags)) {
cmd_name(ctl, di->dev_id, NULL);
cmd_class(ctl, di->dev_id, NULL);
cmd_version(ctl, di->dev_id, NULL);