diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2005-08-19 15:47:42 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2005-08-19 15:47:42 +0000 | 
| commit | 50b0825682e67eb4a094261c5a0249c37bb84694 (patch) | |
| tree | 84ee0ca1217104781ddb4182d67ea99d96991504 | |
| parent | 9781497af59916008927db6089cd38f782e16261 (diff) | |
Identify the extended inquiry mode correctly
| -rw-r--r-- | tools/hciconfig.c | 17 | 
1 files changed, 15 insertions, 2 deletions
| diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 745ed74f..3bf3b292 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -883,8 +883,21 @@ static void cmd_inq_mode(int ctl, int hdev, char *opt)  		}  		print_dev_hdr(&di); -		printf("\tInquiry mode: %s\n", -			mode == 1 ? "Inquiry with RSSI" : "Standard Inquiry"); +		printf("\tInquiry mode: "); +		switch (mode) { +		case 0: +			printf("Standard Inquiry\n"); +			break; +		case 1: +			printf("Inquiry with RSSI\n"); +			break; +		case 2: +			printf("Inquiry with RSSI or Extended Inquiry\n"); +			break; +		default: +			printf("Unknown (0x%02x)\n", mode); +			break; +		}  	}  } | 
