diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-16 12:12:57 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-16 13:33:02 +0300 |
commit | 385a7bd5ac048204f6ba98fe68d3e0109b3e4906 (patch) | |
tree | 7cd1f555c2e3eaeb280dd2869f77120d5beef4c1 /src | |
parent | ef7452842d27c132e2976c8d5197166f2d7b354f (diff) |
mgmt: Remove not used members from controller_info
notified, version, manufacturer and dev_class were not used for
anything usefull. For debug print reply can be used directly.
Diffstat (limited to 'src')
-rw-r--r-- | src/mgmt.c | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -61,13 +61,9 @@ struct pending_uuid { static int max_index = -1; static struct controller_info { gboolean valid; - gboolean notified; bdaddr_t bdaddr; - uint8_t version; - uint16_t manufacturer; uint32_t supported_settings; uint32_t current_settings; - uint8_t dev_class[3]; GSList *connections; uint8_t discov_type; @@ -1075,20 +1071,16 @@ static void read_info_complete(int sk, uint16_t index, void *buf, size_t len) info = &controllers[index]; bacpy(&info->bdaddr, &rp->bdaddr); - info->version = rp->version; - info->manufacturer = bt_get_le16(&rp->manufacturer); memcpy(&info->supported_settings, &rp->supported_settings, sizeof(info->supported_settings)); memcpy(&info->current_settings, &rp->current_settings, sizeof(info->current_settings)); - memcpy(info->dev_class, rp->dev_class, sizeof(info->dev_class)); - ba2str(&info->bdaddr, addr); DBG("hci%u addr %s version %u manufacturer %u class 0x%02x%02x%02x\n", - index, addr, info->version, info->manufacturer, - info->dev_class[2], info->dev_class[1], info->dev_class[0]); + index, addr, rp->version, bt_get_le16(&rp->manufacturer), + rp->dev_class[2], rp->dev_class[1], rp->dev_class[0]); DBG("hci%u settings", index); DBG("hci%u name %s", index, (char *) rp->name); DBG("hci%u short name %s", index, (char *) rp->short_name); |