diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2007-08-08 16:21:13 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2007-08-08 16:21:13 +0000 | 
| commit | 8c05580df1f807e7e24f44904d6730282633ea2b (patch) | |
| tree | af48791201fdf9808613627306990aac15ab46ff | |
| parent | 460fc865dec77c10357dc19ff19dbe7e8842dd2a (diff) | |
Don't change EIR data when setting name
| -rw-r--r-- | tools/hciconfig.c | 25 | 
1 files changed, 0 insertions, 25 deletions
| diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 998b6145..bf98a74d 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -433,36 +433,11 @@ static void cmd_name(int ctl, int hdev, char *opt)  	}  	if (opt) { -		uint8_t fec = 0, data[240]; -		int len, eir = 0; - -		if (di.features[6] & LMP_EXT_INQ) { -			if (hci_read_ext_inquiry_response(dd, &fec, data, 1000) == 0) -				eir = 1; -		} - -		memset(data, 0, sizeof(data)); -		len = strlen(opt); -		if (len > 48) { -			len = 48; -			data[1] = 0x08; -		} else -			data[1] = 0x09; -		data[0] = len + 1; -		memcpy(data + 2, opt, len); -  		if (hci_write_local_name(dd, opt, 2000) < 0) {  			fprintf(stderr, "Can't change local name on hci%d: %s (%d)\n",  						hdev, strerror(errno), errno);  			exit(1);  		} - -		if (eir) { -			if (hci_write_ext_inquiry_response(dd, fec, data, 2000) < 0) { -				fprintf(stderr, "Can't set extended inquiry response on hci%d: %s (%d)\n", -						hdev, strerror(errno), errno); -			} -		}  	} else {  		char name[249];  		int i; | 
