diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-09 14:11:56 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-09 18:37:08 +0200 |
commit | 39533d30090ba7692da21954543d4431e8ca6089 (patch) | |
tree | b685c13cd95ddbec78b3f590e4375aecec058fd3 /src/storage.c | |
parent | 85fada0d4d1f1284748bcd4c5b9102c5f0710785 (diff) |
event: Don't store EIR in btd_event_device_found
It is never read and was usefull only to gather EIR data for testing
which can also be done with hcidump etc.
Diffstat (limited to 'src/storage.c')
-rw-r--r-- | src/storage.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/storage.c b/src/storage.c index df6b0aae..55dc5913 100644 --- a/src/storage.c +++ b/src/storage.c @@ -435,27 +435,6 @@ done: return 0; } -int write_remote_eir(const bdaddr_t *local, const bdaddr_t *peer, - uint8_t peer_type, uint8_t *data, - uint8_t data_len) -{ - char filename[PATH_MAX + 1], key[20], str[481]; - int i; - - memset(str, 0, sizeof(str)); - for (i = 0; i < data_len; i++) - sprintf(str + (i * 2), "%2.2X", data[i]); - - create_filename(filename, PATH_MAX, local, "eir"); - - create_file(filename, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); - - ba2str(peer, key); - sprintf(&key[17], "#%hhu", peer_type); - - return textfile_put(filename, key, str); -} - int read_remote_eir(const bdaddr_t *local, const bdaddr_t *peer, uint8_t peer_type, uint8_t *data) { |