Skip to contentSkip to conversation

Bluetooth: Remove hci_recv_stream_fragment function

PATCH In review Marcel Holtmann 1 participant 1 message Apr 5, 2015

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 4/4 Bluetooth: Remove hci_recv_stream_fragment function

The hci_recv_stream_fragment function should have never been introduced in the first place. The Bluetooth core does not need to know anything about the HCI transport protocol.

With all transport protocol specific detailed moved back into the drivers where they belong (mainly generic USB and UART drivers), this function can now be removed.

This reduces the size of hci_dev structure and also removes an exported symbol from the Bluetooth core module.

---
 include/net/bluetooth/hci_core.h |   3 -
 net/bluetooth/hci_core.c         | 148 +--------------------------------------
 2 files changed, 1 insertion(+), 150 deletions(-)
include/net/bluetooth/hci_core.h +0 -3
index ad957f336ead..a056c2bfeb81 100644
@@ -185,7 +185,6 @@ struct amp_assoc {
 
 #define HCI_MAX_PAGES	3
 
-#define NUM_REASSEMBLY 4
 struct hci_dev {
 	struct list_head list;
 	struct mutex	lock;
@@ -327,7 +326,6 @@ struct hci_dev {
 	struct sk_buff_head	cmd_q;
 
 	struct sk_buff		*sent_cmd;
-	struct sk_buff		*reassembly[NUM_REASSEMBLY];
 
 	struct mutex		req_lock;
 	wait_queue_head_t	req_wait_q;
@@ -1012,7 +1010,6 @@ int hci_remove_remote_oob_data(struct hci_dev *hdev, bdaddr_t *bdaddr,
 void hci_event_packet(struct hci_dev *hdev, struct sk_buff *skb);
 
 int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb);
-int hci_recv_stream_fragment(struct hci_dev *hdev, const void *data, int count);
 
 void hci_init_sysfs(struct hci_dev *hdev);
 void hci_conn_init_sysfs(struct hci_conn *conn);
net/bluetooth/hci_core.c +1 -147

166 lines not on this page · raw message

Signature · 1 line
2.1.0