Skip to contentSkip to conversation

Bluetooth: Remove interval parameter from HCI connection

PATCH Applied Marcel Holtmann 2 participants 2 messages Oct 19, 2013

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 1/1 Bluetooth: Remove interval parameter from HCI connection

The conn->interval parameter of HCI connections is not used at all and so just remove it.

---
 include/net/bluetooth/hci_core.h | 1 -
 net/bluetooth/hci_event.c        | 1 -
 2 files changed, 2 deletions(-)
include/net/bluetooth/hci_core.h +0 -1
index f621c5b..d50cc7a 100644
@@ -316,7 +316,6 @@ struct hci_conn {
 	__u8		attempt;
 	__u8		dev_class[3];
 	__u8		features[HCI_MAX_PAGES][8];
-	__u16		interval;
 	__u16		pkt_type;
 	__u16		link_policy;
 	__u32		link_mode;
net/bluetooth/hci_event.c +0 -1
index 83478da..5935f74 100644
@@ -2551,7 +2551,6 @@ static void hci_mode_change_evt(struct hci_dev *hdev, struct sk_buff *skb)
 	conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->handle));
 	if (conn) {
 		conn->mode = ev->mode;
-		conn->interval = __le16_to_cpu(ev->interval);
 
 		if (!test_and_clear_bit(HCI_CONN_MODE_CHANGE_PEND,
 					&conn->flags)) {
Signature · 1 line
1.8.3.1
#1 lore raw

Hi Marcel,

Quoted 8 lines · Marcel Holtmann

The conn->interval parameter of HCI connections is not used at all and so just remove it.

---
 include/net/bluetooth/hci_core.h | 1 -
 net/bluetooth/hci_event.c        | 1 -
 2 files changed, 2 deletions(-)

Applied to bluetooth-next. Thanks.

Johan