Don't cache the local name until it's actually used for something
This saves 248 bytes per adapter until there's actually some code that
might need the cache.
diff --git a/plugins/hciops.c b/plugins/hciops.c
index 4dc5ed6..e25da18 100644
--- a/plugins/hciops.c
+++ b/plugins/hciops.c
@@ -70,7 +70,6 @@
#define BDADDR(index) devs[(index)].bdaddr
#define FEATURES(index) devs[(index)].features
#define VER(index) devs[(index)].ver
-#define NAME(index) devs[(index)].name
#define UP(index) devs[(index)].up
#define PENDING(index) devs[(index)].pending
#define CHANNEL(index) devs[(index)].channel
@@ -83,7 +82,6 @@
bdaddr_t bdaddr;
uint8_t features[8];
struct hci_version ver;
- char name[248];
gboolean up;
unsigned long pending;
@@ -750,8 +748,6 @@
if (rp->status)
return;
- memcpy(NAME(index), rp->name, 248);
-
if (!PENDING(index)) {
adapter_update_local_name(&BDADDR(index), rp);
return;