Skip to contentSkip to conversation

Host Controller to Host Flow Control

Bluez-devel Mayank BATRA 4 participants 41 messages Aug 8, 2006 – Nov 1, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I wanted to know whether Host Controller to Host Flow Control has been implemented in the BlueZ stack? I am interested in giving it a shot in case it is not already there or someone is not working on it.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw
Quoted 2 lines · Mayank BATRA

I wanted to know whether Host Controller to Host Flow Control has been implemented in the BlueZ stack? I am interested in giving it a shot in case it is not already there or someone is not working on it.

No, it's not implemented in the BlueZ stack. I've done a preliminary work on this but haven't completed it yet. You can see my and Marcel Holtmann e-mails on the bluez-devel mailing list archive about this. If you want to help us, please feel free to send in patches.

Regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#2 lore raw

Hi Ulisses,

Quoted 7 lines
Quoted 2 lines

I wanted to know whether Host Controller to Host Flow Control has been implemented in the BlueZ stack? I am interested in giving it a shot in case it is not already there or someone is not working on it.

No, it's not implemented in the BlueZ stack. I've done a preliminary work on this but haven't completed it yet. You can see my and Marcel Holtmann e-mails on the bluez-devel mailing list archive about this. If you want to help us, please feel free to send in patches.

feel free to work together with Mayank to get a testing version we can include into the -mh patch.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

Hi Marcel, Ulisses,

Quoted 2 lines

feel free to work together with Mayank to get a testing version we can include into the -mh patch.

I am ready to help as much as possible. I was reading the spec over the weekend to understand what HC to Host FC requires.
Ulisses, can you please provide me some starting ground?

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#4 lore raw
In reply to Ulisses Furquim

Hi Ulisses,

Quoted 1 line

If you want to help us, please feel free to send in patches.

Here are some of my observations, please correct me in case I am wrong.

(i) For enabling FC from HC to Host, the host first of all sends Host Buffer Size Command providing the number of ACL and SCO buffers and their respective sizes.
(ii) The host then issues Set Host Controller To Host Flow Control Command. (iii) Host will send a Host Number of Completed Packets Command to the controller. But my question is when??
After every ACL Packet received?

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#5 lore raw

Hi Mayank,

Quoted 9 lines · Mayank BATRA

Here are some of my observations, please correct me in case I am wrong.

(i) For enabling FC from HC to Host, the host first of all sends Host Buffer Size Command providing the number of ACL and SCO buffers and their respective sizes.
(ii) The host then issues Set Host Controller To Host Flow Control Command. (iii) Host will send a Host Number of Completed Packets Command to the controller. But my question is when??
After every ACL Packet received?

Yeah, that is exactly what we've already discussed [1] and Marcel suggested to send a Host Number of Completed Packets command after every packtet for starters even though that is not what we really want (we might want to wait for 8 packets he said).

Best regards,

-- Ulisses

[1] http://article.gmane.org/gmane.linux.bluez.devel/8188

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw

Hi Ulisses,

Quoted 9 lines
Quoted 1 line

(iii) Host will send a Host Number of Completed Packets

Command to the

Quoted 2 lines

controller. But my question is when??
After every ACL Packet received?

Yeah, that is exactly what we've already discussed [1] and Marcel suggested to send a Host Number of Completed Packets command after every packtet for starters even though that is not what we really want (we might want to wait for 8 packets he said).

We can wait for 8 packets. But what if at the time of ACL disconnection, less than 8 packets have been received?

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#7 lore raw
In reply to Ulisses Furquim

Hi Ulisses and Marcel,

I propose the following changes (in addition to those suggested by Ulisses earlier) for implementing Controller to Host Flow Control:

(i) Update hci.h to include commands like host number of completed packets cmd and set controller to host flow control cmd.
(ii) Update hcid.h file to include an additional member to the enum:
enum {
HCID_SET_NAME,
HCID_SET_CLASS,
HCID_SET_VOICE,
HCID_SET_INQMODE,
HCID_SET_PAGETO,
HCID_SET_DISCOVTO,
HCID_SET_PTYPE,
HCID_SET_LM,
HCID_SET_LP,
+ HCID_SET_C_TO_HOST_FC,
};

And update the structure device_opts:

struct device_opts {
	unsigned long flags;
	char    *name;
	uint32_t class;
	uint16_t voice;
	uint8_t  inqmode;
	uint16_t pageto;
	uint16_t pkt_type;
	uint16_t link_mode;
	uint16_t link_policy;
	uint16_t scan;
	int      discovto;

+ int c_to_host_fc;
};

Of course, this means that the hcid.conf (and parser.y) will contain another entry to enable/disable flow control.

Quoted 6 lines
Quoted 1 line

(i) For enabling FC from HC to Host, the host first of all

sends Host Buffer

Quoted 3 lines

Size Command providing the number of ACL and SCO buffers and their respective sizes.
(ii) The host then issues Set Host Controller To Host Flow

Control Command.

(iii) The host buffer size command and set controller to host flow controller command can be sent from configure_device() of hcid/main.c

Quoted 3 lines
Quoted 1 line

(iii) Host will send a Host Number of Completed Packets

Command to the

Quoted 1 line

controller.

But, I could not figure out from where should we send the Host Number of completed packets command. Do you have any suggestions. I mean, can you give me an idea where can we get to know the receipt of ACL Data at user level?

Thanks.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#8 lore raw

Hi Mayank,

Quoted 5 lines

I propose the following changes (in addition to those suggested by Ulisses earlier) for implementing Controller to Host Flow Control:

(i) Update hci.h to include commands like host number of completed packets cmd and set controller to host flow control cmd.

we need them for the kernel, bluez-libs and bluez-hcidump. Go ahead and send in patches for it.

Quoted 30 lines

(ii) Update hcid.h file to include an additional member to the enum:
enum {
HCID_SET_NAME,
HCID_SET_CLASS,
HCID_SET_VOICE,
HCID_SET_INQMODE,
HCID_SET_PAGETO,
HCID_SET_DISCOVTO,
HCID_SET_PTYPE,
HCID_SET_LM,
HCID_SET_LP,

(quoted diff) +1 -0
+	HCID_SET_C_TO_HOST_FC,

};

And update the structure device_opts:

struct device_opts {
	unsigned long flags;
	char    *name;
	uint32_t class;
	uint16_t voice;
	uint8_t  inqmode;
	uint16_t pageto;
	uint16_t pkt_type;
	uint16_t link_mode;
	uint16_t link_policy;
	uint16_t scan;
	int      discovto;
(quoted diff) +1 -0
+	int		c_to_host_fc;

};

Quoted 2 lines

Of course, this means that the hcid.conf (and parser.y) will contain another entry to enable/disable flow control.

No additional config option at the moment. It is not needed right now. If we really want it, we can do it later.

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

(i) For enabling FC from HC to Host, the host first of all

sends Host Buffer

Quoted 3 lines

Size Command providing the number of ACL and SCO buffers and their respective sizes.
(ii) The host then issues Set Host Controller To Host Flow

Control Command.

(iii) The host buffer size command and set controller to host flow controller command can be sent from configure_device() of hcid/main.c

No. This must be done in the kernel. It is not the job of hcid.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

(iii) Host will send a Host Number of Completed Packets

Command to the

Quoted 1 line

controller.

But, I could not figure out from where should we send the Host Number of completed packets command. Do you have any suggestions. I mean, can you give me an idea where can we get to know the receipt of ACL Data at user level?

This must be done in the kernel. It is like sniff mode support. Only the kernel knows all facts.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#9 lore raw

Hi Marcel,

Quoted 5 lines
Quoted 2 lines

(iii) The host buffer size command and set controller to host flow controller command can be sent from configure_device() of

hcid/main.c

No. This must be done in the kernel. It is not the job of hcid.

I still feel that these two commands should be sent from hcid at the time of initialization amd the user should have option to enable/disable this flow control from hcid.conf

Quoted 10 lines
Quoted 1 line

But, I could not figure out from where should we send the

Host Number of

Quoted 1 line

completed packets command. Do you have any suggestions. I

mean, can you give

Quoted 1 line

me an idea where can we get to know the receipt of ACL Data

at user level?

This must be done in the kernel. It is like sniff mode support. Only the
kernel knows all facts.

I agree with this.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#11 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 5 lines

to start something we can do this. Remember that the kernel then have to
track these commands to see if it has to use host controller to host flow control or not.

Hmmm.... I think I understand now why you were insisting this to be done at the kernel side.
Because if we set flow control from user side then it will be difficult to inform the kernel about this.
I'll try both things (setting flow control and sending host no of completed packets) from kernel side only.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#10 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

(iii) The host buffer size command and set controller to host flow controller command can be sent from configure_device() of

hcid/main.c

No. This must be done in the kernel. It is not the job of hcid.

I still feel that these two commands should be sent from hcid at the time of initialization amd the user should have option to enable/disable this flow control from hcid.conf

to start something we can do this. Remember that the kernel then have to track these commands to see if it has to use host controller to host flow control or not.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#12 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 6 lines
Quoted 5 lines

to start something we can do this. Remember that the kernel then have to
track these commands to see if it has to use host controller to host flow control or not.

Quoted 6 lines

Hmmm.... I think I understand now why you were insisting this to be done at the kernel side.
Because if we set flow control from user side then it will be difficult to inform the kernel about this.
I'll try both things (setting flow control and sending host no of completed packets) from kernel side only.

it is not that complicated. We have to do this for a lot of commands that you can use from userspace and the kernel has to detect its execution. You might wanna do it anyway so you should have a look at the examples in hci_event.c inside the kernel code.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#13 lore raw

Hi Marcel,

Quoted 5 lines

it is not that complicated. We have to do this for a lot of commands that you can use from userspace and the kernel has to detect its execution. You might wanna do it anyway so you should have a look at the
examples in hci_event.c inside the kernel code.

I'm almost done with the implementation. I'm testing it currently, but there is a problem. According to the spec, for Host Number of Completed Packets command, no event is generated by the controller if there is no error. But, I think the BlueZ stack is expecting an event for this command. Can you suggest how can I prevent waiting for an event for this command?

Dmesg shows the following:

Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Warning: null TTY for (d8:00) in tty_fasync
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:

=======================================

Note that "Sending Host No of Completed Packets:" has been added by me. Can you tell me the reason for "hci_cmd_task: hci0 command tx timeout"

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#15 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 13 lines
Quoted 13 lines

Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:

Quoted 8 lines
Quoted 3 lines

=======================================

Note that "Sending Host No of Completed Packets:" has been

added by me. Can

Quoted 1 line

you tell me the reason for "hci_cmd_task: hci0 command tx timeout"

I have to see the source code. Otherwise it would be only a wild guess.

Here you go. Though, it is not the latest version of files that I am working on.
It's a quick and dirty approach right now. Sending Host Number of Completed Packets as soon as we receive ACL Data Packet on any connection handle. Once this works, I'll try to send Host Number of completed packets after reception of 8 packets.

Regards,
Mayank

C:\hci.h renamed from C:\Copy of hci.h +18 -0
@@ -817,20 +817,38 @@
 	uint8_t		status;
 	uint16_t	handle;
 	int8_t		level;
 } __attribute__ ((packed)) read_transmit_power_level_rp;
 #define READ_TRANSMIT_POWER_LEVEL_RP_SIZE 4
 
+#define OCF_SET_CONTROLLER_TO_HOST_FC	0x0031
+typedef struct {
+	uint8_t		flow_control_enable;
+} __attribute__ ((packed)) set_controller_to_host_fc_cp;
+#define SET_CONTROLLER_TO_HOST_FC_CP_SIZE	1
+typedef struct {
+	uint8_t		status;
+} __attribute__ ((packed)) set_controller_to_host_fc_rp;
+#define SET_CONTROLLER_TO_HOST_FC_RP_SIZE	1
+
 #define OCF_HOST_BUFFER_SIZE		0x0033
 typedef struct {
 	uint16_t	acl_mtu;
 	uint8_t		sco_mtu;
 	uint16_t	acl_max_pkt;
 	uint16_t	sco_max_pkt;
 } __attribute__ ((packed)) host_buffer_size_cp;
 #define HOST_BUFFER_SIZE_CP_SIZE 7
+
+#define OCF_HOST_NUM_OF_COMPLETED_PACKETS	0x0035
+typedef struct {
+	uint8_t		num_of_handles;
+	uint16_t	handle;
+	uint16_t	host_num_of_completed_packets;
+} __attribute__ ((packed)) host_num_of_completed_packets_cp;
+#define OCF_HOST_NUM_OF_COMPLETED_PACKETS_CP_SIZE 5
 
 #define OCF_READ_LINK_SUPERVISION_TIMEOUT	0x0036
 typedef struct {
 	uint8_t		status;
 	uint16_t	handle;
 	uint16_t	link_sup_to;
C:\hci_core.c renamed from C:\Copy of hci_core.c +14 -2
@@ -73,12 +73,13 @@
 #define HCI_MAX_PROTO	2
 struct hci_proto *hci_proto[HCI_MAX_PROTO];
 
 /* HCI notifiers list */
 static struct notifier_block *hci_notifier;
 
+extern int __controller_to_host_fc;
 
 /* ---- HCI notifications ---- */
 
 int hci_register_notifier(struct notifier_block *nb)
 {
 	return notifier_chain_register(&hci_notifier, nb);
@@ -221,24 +222,22 @@
 	/* Read Local Supported Features */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_LOCAL_FEATURES, 0, NULL);
 
 	/* Read Buffer Size (ACL mtu, max pkt, etc.) */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_BUFFER_SIZE, 0, NULL);
 
-#if 0
 	/* Host buffer size */
 	{
 		host_buffer_size_cp bs;
 		bs.acl_mtu = __cpu_to_le16(HCI_MAX_ACL_SIZE);
 		bs.sco_mtu = HCI_MAX_SCO_SIZE;
 		bs.acl_max_pkt = __cpu_to_le16(0xffff);
 		bs.sco_max_pkt = __cpu_to_le16(0xffff);
 		hci_send_cmd(hdev, OGF_HOST_CTL, OCF_HOST_BUFFER_SIZE,
 				HOST_BUFFER_SIZE_CP_SIZE, &bs);
 	}
-#endif
 
 	/* Read BD Address */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_BD_ADDR, 0, NULL);
 
 	/* Optional initialization */
 
@@ -1273,12 +1272,13 @@
 /* ACL data packet */
 static inline void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
 {
 	hci_acl_hdr *ah = (void *) skb->data;
 	struct hci_conn *conn;
 	__u16 handle, flags;
+	host_num_of_completed_packets_cp cp;
 
 	skb_pull(skb, HCI_ACL_HDR_SIZE);
 
 	handle = __le16_to_cpu(ah->handle);
 	flags  = acl_flags(handle);
 	handle = acl_handle(handle);
@@ -1287,12 +1287,24 @@
 
 	hdev->stat.acl_rx++;
 
 	hci_dev_lock(hdev);
 	conn = conn_hash_lookup_handle(hdev, handle);
 	hci_dev_unlock(hdev);
+	/* If flow control has been enabled from Controller to Host
+	 * send Host Number of Completed Packets Command
+	 * Note that there is no event generated for this command
+	 */
+
+	if(__controller_to_host_fc) {
+		cp.num_of_handles = 0x01;
+		cp.handle = handle;
+		cp.host_num_of_completed_packets = 0x01;
+		hci_send_cmd(hdev, OGF_HOST_CTL, OCF_HOST_NUM_OF_COMPLETED_PACKETS, 
+				OCF_HOST_NUM_OF_COMPLETED_PACKETS_CP_SIZE, &cp);
+	}
 	
 	if (conn) {
 		register struct hci_proto *hp;
 
 		/* Send to upper protocol */
 		if ((hp = hci_proto[HCI_PROTO_L2CAP]) && hp->recv_acldata) {
C:\hci_event.c renamed from C:\Copy of hci_event.c +24 -0
@@ -54,12 +54,14 @@
 
 #ifndef HCI_CORE_DEBUG
 #undef  BT_DBG
 #define BT_DBG( A... )
 #endif
 
+int __controller_to_host_fc = 0;
+
 /* Handle HCI Event packets */
 
 /* Command Complete OGF LINK_CTL  */
 static void hci_cc_link_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb)
 {
 	BT_DBG("%s ocf 0x%x", hdev->name, ocf);
@@ -108,12 +110,13 @@
 
 /* Command Complete OGF HOST_CTL  */
 static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb)
 {
 	__u8 status, param;
 	void *sent;
+	set_controller_to_host_fc_cp cp;
 
 	BT_DBG("%s ocf 0x%x", hdev->name, ocf);
 
 	switch (ocf) {
 	case OCF_RESET:
 		status = *((__u8 *) skb->data);
@@ -205,12 +208,33 @@
 	case OCF_HOST_BUFFER_SIZE:
 		status = *((__u8 *) skb->data);
 		if (status) {
 			BT_DBG("%s OCF_BUFFER_SIZE failed %d", hdev->name, status);
 			hci_req_complete(hdev, status);
 		}
+		else {
+			memset(&cp, 0, sizeof(cp));
+			/* Set Flow Control on for HCI ACL Data Packets
+			 * and off for HCI Synchronous Data Packets
+			 */
+			cp.flow_control_enable = 0x01;
+				
+			hci_send_cmd(hdev, OGF_HOST_CTL, OCF_SET_CONTROLLER_TO_HOST_FC,
+				SET_CONTROLLER_TO_HOST_FC_CP_SIZE, &cp);
+		}
+		break;
+
+	case OCF_SET_CONTROLLER_TO_HOST_FC:
+		status = *((__u8 *) skb->data);
+		if (status) {
+			BT_DBG("%s OCF_SET_CONTROLLER_TO_HOST_FC failed %d", hdev->name, status);
+			hci_req_complete(hdev, status);
+		}
+		else {
+			__controller_to_host_fc = 1; /* Start using Controller to Host Flow Control */
+		}
 		break;
 
 	default:
 		BT_DBG("%s Command complete: ogf HOST_CTL ocf %x", hdev->name, ocf);
 		break;
 	};

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#14 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 53 lines
Quoted 5 lines

it is not that complicated. We have to do this for a lot of commands that you can use from userspace and the kernel has to detect its execution. You might wanna do it anyway so you should have a look at the
examples in hci_event.c inside the kernel code.

I'm almost done with the implementation. I'm testing it currently, but there is a problem. According to the spec, for Host Number of Completed Packets command, no event is generated by the controller if there is no error. But, I think the BlueZ stack is expecting an event for this command. Can you suggest how can I prevent waiting for an event for this command?

Dmesg shows the following:

Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Warning: null TTY for (d8:00) in tty_fasync
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
Sending Host No of Completed Packets:
hci_cmd_task: hci0 command tx timeout
Sending Host No of Completed Packets:

Quoted 4 lines

=======================================

Note that "Sending Host No of Completed Packets:" has been added by me. Can you tell me the reason for "hci_cmd_task: hci0 command tx timeout"

I have to see the source code. Otherwise it would be only a wild guess.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#16 lore raw
In reply to Mayank BATRA

Hi Marcel,

Quoted 10 lines

Here you go. Though, it is not the latest version of files that I am working
on.
It's a quick and dirty approach right now. Sending Host Number of Completed
Packets as soon as we receive ACL Data Packet on any connection handle.
Once this works, I'll try to send Host Number of completed packets after
reception of 8 packets.

I am still facing the same issue that since there is no event generated for Host Number of Completed packets command and the BlueZ stack is expecting an event for this command, the command finally times out. dmesg shows "hci_cmd_task: hci0 command tx timeout". The ACL data transfer stops after this. Also, when I disconnect, I see that all the remaining Host Number of completed packets commands that were queued earlier on, are sent finally.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#18 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 2 lines

you need to use the raw queue for sending this command. You can't use the normal sent queue. We do the same for vendor specific commands.

I am now using the raw queue for sending this command. Can you have a look at the attached hcidump log to see if the behaviour is what we need?

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#17 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 11 lines
Quoted 10 lines

Here you go. Though, it is not the latest version of files that I am working
on.
It's a quick and dirty approach right now. Sending Host Number of Completed
Packets as soon as we receive ACL Data Packet on any connection handle.
Once this works, I'll try to send Host Number of completed packets after
reception of 8 packets.

Quoted 6 lines

I am still facing the same issue that since there is no event generated for Host Number of Completed packets command and the BlueZ stack is expecting an event for this command, the command finally times out. dmesg shows "hci_cmd_task: hci0 command tx timeout". The ACL data transfer stops after this. Also, when I disconnect, I see that all the remaining Host Number of completed packets commands that were queued earlier on, are sent finally.

you need to use the raw queue for sending this command. You can't use the normal sent queue. We do the same for vendor specific commands.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#20 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 1 line

please use "hcidump -X -V"

Here is the log with hcidump -X -V

Quoted 2 lines

and if the HCI shows a wrong behavior with
any of the new commands, please fix it.

There is no wrong behaviour as such. Just that Host Number of completed packets is being sent as soon as we get ACL Data on any connection handle.

Do you think that the attached patch is decent enough for sending Host Number of completed packets to the raw queue? (or is there a better way than this?)

Regards,
Mayank

C:\hci_core.c renamed from C:\Copy of hci_core.c +22 -5
@@ -73,12 +73,13 @@
 #define HCI_MAX_PROTO	2
 struct hci_proto *hci_proto[HCI_MAX_PROTO];
 
 /* HCI notifiers list */
 static struct notifier_block *hci_notifier;
 
+extern int __controller_to_host_fc;
 
 /* ---- HCI notifications ---- */
 
 int hci_register_notifier(struct notifier_block *nb)
 {
 	return notifier_chain_register(&hci_notifier, nb);
@@ -221,24 +222,22 @@
 	/* Read Local Supported Features */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_LOCAL_FEATURES, 0, NULL);
 
 	/* Read Buffer Size (ACL mtu, max pkt, etc.) */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_BUFFER_SIZE, 0, NULL);
 
-#if 0
 	/* Host buffer size */
 	{
 		host_buffer_size_cp bs;
 		bs.acl_mtu = __cpu_to_le16(HCI_MAX_ACL_SIZE);
 		bs.sco_mtu = HCI_MAX_SCO_SIZE;
-		bs.acl_max_pkt = __cpu_to_le16(0xffff);
-		bs.sco_max_pkt = __cpu_to_le16(0xffff);
+		bs.acl_max_pkt = __cpu_to_le16(0x0008);
+		bs.sco_max_pkt = __cpu_to_le16(0x0008);
 		hci_send_cmd(hdev, OGF_HOST_CTL, OCF_HOST_BUFFER_SIZE,
 				HOST_BUFFER_SIZE_CP_SIZE, &bs);
 	}
-#endif
 
 	/* Read BD Address */
 	hci_send_cmd(hdev, OGF_INFO_PARAM, OCF_READ_BD_ADDR, 0, NULL);
 
 	/* Optional initialization */
 
@@ -1031,13 +1030,16 @@
 		memcpy(skb_put(skb, plen), param, plen);
 
 	BT_DBG("skb len %d", skb->len);
 
 	skb->pkt_type = HCI_COMMAND_PKT;
 	skb->dev = (void *) hdev;
-	skb_queue_tail(&hdev->cmd_q, skb);
+	if(ocf != OCF_HOST_NUM_OF_COMPLETED_PACKETS)
+		skb_queue_tail(&hdev->cmd_q, skb);
+	else
+		skb_queue_tail(&hdev->raw_q, skb);
 	hci_sched_cmd(hdev);
 
 	return 0;
 }
 
 /* Get data from the previously sent command */
@@ -1273,12 +1275,13 @@
 /* ACL data packet */
 static inline void hci_acldata_packet(struct hci_dev *hdev, struct sk_buff *skb)
 {
 	hci_acl_hdr *ah = (void *) skb->data;
 	struct hci_conn *conn;
 	__u16 handle, flags;
+	host_num_of_completed_packets_cp cp;
 
 	skb_pull(skb, HCI_ACL_HDR_SIZE);
 
 	handle = __le16_to_cpu(ah->handle);
 	flags  = acl_flags(handle);
 	handle = acl_handle(handle);
@@ -1287,12 +1290,26 @@
 
 	hdev->stat.acl_rx++;
 
 	hci_dev_lock(hdev);
 	conn = conn_hash_lookup_handle(hdev, handle);
 	hci_dev_unlock(hdev);
+
+	/* If flow control has been enabled from Controller to Host
+	 * send Host Number of Completed Packets Command
+	 * Note that there is no event generated for this command
+	 */
+
+	if(__controller_to_host_fc) {
+		cp.num_of_handles = 0x01;
+		cp.handle = handle;
+		cp.host_num_of_completed_packets = 0x01;
+		hci_send_cmd(hdev, OGF_HOST_CTL, OCF_HOST_NUM_OF_COMPLETED_PACKETS, 
+				OCF_HOST_NUM_OF_COMPLETED_PACKETS_CP_SIZE, &cp);
+		printk(KERN_INFO "Sending Host No of Completed Packets:\n");
+	}
 	
 	if (conn) {
 		register struct hci_proto *hp;
 
 		/* Send to upper protocol */
 		if ((hp = hci_proto[HCI_PROTO_L2CAP]) && hp->recv_acldata) {

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#22 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 1 line

I added the two missing decodings to hcidump now.

I see the following five missing decodings in hcidump. Which ones did you miss out?

(1)< HCI Command: Host Buffer Size (0x03|0x0033) plen 7
0000: 00 04 ff 08 00 08 00 .......

(2) > HCI Event: Command Complete (0x0e) plen 4
Host Buffer Size (0x03|0x0033) ncmd 1
0000: 00 .

(3) < HCI Command: Set Host Controller To Host Flow Control (0x03|0x0031) plen 1
0000: 01 .

(4) > HCI Event: Command Complete (0x0e) plen 4
Set Host Controller To Host Flow Control (0x03|0x0031) ncmd 1
0000: 00 .

(5) < HCI Command: Host Number of Completed Packets (0x03|0x0035) plen 5
0000: 01 28 00 01 00 .(...

Quoted 1 line

Need to check that. At least you also have to check for OGF.

That's true. No other choice.

Quoted 3 lines

You have to
store the setting for host_fc in hci_dev, because it can be different for separate controllers.

I agree. But how to provide the user with the facility to switch flow control on/off? Like we modify security settings through hcid.conf.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#19 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 5 lines
Quoted 2 lines

you need to use the raw queue for sending this command. You can't use the normal sent queue. We do the same for vendor specific commands.

I am now using the raw queue for sending this command. Can you have a look at the attached hcidump log to see if the behaviour is what we need?

please use "hcidump -X -V" and if the HCI shows a wrong behavior with any of the new commands, please fix it.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#23 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 16 lines
Quoted 1 line

I added the two missing decodings to hcidump now.

I see the following five missing decodings in hcidump. Which ones did you miss out?

(1)< HCI Command: Host Buffer Size (0x03|0x0033) plen 7
0000: 00 04 ff 08 00 08 00 .......

(2) > HCI Event: Command Complete (0x0e) plen 4
Host Buffer Size (0x03|0x0033) ncmd 1
0000: 00 .

(3) < HCI Command: Set Host Controller To Host Flow Control (0x03|0x0031) plen 1
0000: 01 .

Quoted 6 lines

(4) > HCI Event: Command Complete (0x0e) plen 4
Set Host Controller To Host Flow Control (0x03|0x0031) ncmd 1
0000: 00 .

(5) < HCI Command: Host Number of Completed Packets (0x03|0x0035) plen 5
0000: 01 28 00 01 00 .(...

the code in the CVS should now take care of all five.

Quoted 6 lines
Quoted 3 lines

You have to
store the setting for host_fc in hci_dev, because it can be different for separate controllers.

I agree. But how to provide the user with the facility to switch flow control on/off? Like we modify security settings through hcid.conf.

As I said, the kernel can track HCI command and their results. So you can actually detect inside the kernel if someone switched it on. See the page and inquiry scan for an example.

After that you can simply add an additional command to hciconfig to set the host flow control and everything is fine.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#21 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 3 lines
Quoted 1 line

please use "hcidump -X -V"

Here is the log with hcidump -X -V

I added the two missing decodings to hcidump now.

Quoted 9 lines
Quoted 2 lines

and if the HCI shows a wrong behavior with
any of the new commands, please fix it.

There is no wrong behaviour as such. Just that Host Number of completed packets is being sent as soon as we get ACL Data on any connection handle.

Do you think that the attached patch is decent enough for sending Host Number of completed packets to the raw queue? (or is there a better way than this?)

Need to check that. At least you also have to check for OGF. You have to store the setting for host_fc in hci_dev, because it can be different for separate controllers.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#24 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 6 lines · Mayank BATRA

There is no wrong behaviour as such. Just that Host Number of completed packets is being sent as soon as we get ACL Data on any connection handle.

Do you think that the attached patch is decent enough for sending Host Number of completed packets to the raw queue? (or is there a better way than this?)

I've noticed you sent a diff against hci.h from bluez-libs and not the one in the kernel, so please check that. One other thing is that you have to be careful with endianess issues (please check your patch against hci_core.c).

And I really think we should have a hci_send_cmd_raw() or something like that instead of messing with hci_send_cmd(). Or maybe a new function that creates a skb from scratch just to send the host number of completed packets command? Marcel, what do you think?

Regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#25 lore raw

Hi Ulisses,

Quoted 2 lines

I've noticed you sent a diff against hci.h from bluez-libs and not the one in the kernel, so please check that.

Oops. My mistake. Here is the diff for the one in the kernel.

Quoted 3 lines

One other thing is that you
have to be careful with endianess issues (please check your patch against hci_core.c).

Which one do you mean in particular? 0x0008 or connection handle?

Quoted 4 lines

And I really think we should have a hci_send_cmd_raw() or something like that instead of messing with hci_send_cmd(). Or maybe a new function that creates a skb from scratch just to send the host number of completed packets command? Marcel, what do you think?

Right.

Regards,
Mayank

C:\hci.h renamed from C:\Copy of hci.h +18 -0
@@ -266,20 +266,38 @@
 #define OCF_WRITE_CLASS_OF_DEV	0x0024
 typedef struct {
 	__u8 	dev_class[3];
 } __attribute__ ((packed)) write_class_of_dev_cp;
 #define WRITE_CLASS_OF_DEV_CP_SIZE 3
 
+#define OCF_SET_CONTROLLER_TO_HOST_FC   0x0031
+typedef struct {
+        uint8_t         flow_control_enable;
+} __attribute__ ((packed)) set_controller_to_host_fc_cp;
+#define SET_CONTROLLER_TO_HOST_FC_CP_SIZE       1
+typedef struct {
+        uint8_t         status;
+} __attribute__ ((packed)) set_controller_to_host_fc_rp;
+#define SET_CONTROLLER_TO_HOST_FC_RP_SIZE       1
+
 #define OCF_HOST_BUFFER_SIZE	0x0033
 typedef struct {
 	__u16 	acl_mtu;
 	__u8 	sco_mtu;
 	__u16 	acl_max_pkt;
 	__u16	sco_max_pkt;
 } __attribute__ ((packed)) host_buffer_size_cp;
 #define HOST_BUFFER_SIZE_CP_SIZE 7
+
+#define OCF_HOST_NUM_OF_COMPLETED_PACKETS       0x0035
+typedef struct {
+        uint8_t         num_of_handles;
+        uint16_t        handle;
+        uint16_t        host_num_of_completed_packets;
+} __attribute__ ((packed)) host_num_of_completed_packets_cp;
+#define OCF_HOST_NUM_OF_COMPLETED_PACKETS_CP_SIZE 5
 
 /* Link Control */
 #define OGF_LINK_CTL	0x01 
 #define OCF_CREATE_CONN		0x0005
 typedef struct {
 	bdaddr_t bdaddr;

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#27 lore raw
In reply to Marcel Holtmann

Hi Marcel,

Quoted 6 lines

please follow the names, I just introduced for the libraray. They don't
have to match, but I prefer if they do. The structs for setting the host
to host controller flow control are also not needed. Only the OCF value.

But actually, set controller to host flow control requires a parameter to tell which flow control we want to set. ACL, SCO or both. So a uint8_t parameter is required and hence the struct.

Quoted 2 lines

And the number of completed packets struct is variable. Please compare the number of completed packets events.

But a variable sized host number of completed packets command is required if we are sending number of completed packets for more than one connection handle in the same command, which is not the case currently.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#26 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 4 lines
Quoted 2 lines

I've noticed you sent a diff against hci.h from bluez-libs and not the one in the kernel, so please check that.

Oops. My mistake. Here is the diff for the one in the kernel.

please follow the names, I just introduced for the libraray. They don't have to match, but I prefer if they do. The structs for setting the host to host controller flow control are also not needed. Only the OCF value. And the number of completed packets struct is variable. Please compare the number of completed packets events.

Quoted 5 lines
Quoted 3 lines

One other thing is that you
have to be careful with endianess issues (please check your patch against hci_core.c).

Which one do you mean in particular? 0x0008 or connection handle?

Every parameter that is uint16 needs an endian conversation.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#40 lore raw
In reply to Ulisses Furquim

Hi Ulisses,

Quoted 4 lines

And I really think we should have a hci_send_cmd_raw() or something like that instead of messing with hci_send_cmd(). Or maybe a new function that creates a skb from scratch just to send the host number of completed packets command? Marcel, what do you think?

no additional function for only one call. We either make hci_send_cmd() aware of the special case or we need to queue this command by hand. I have to check the internals of the command flow before I can actually tell you what's the best way. Haven't looked at that for quite some time and don't know it from memory.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#28 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 10 lines
Quoted 6 lines

please follow the names, I just introduced for the libraray. They don't
have to match, but I prefer if they do. The structs for setting the host
to host controller flow control are also not needed. Only the OCF value.

But actually, set controller to host flow control requires a parameter to tell which flow control we want to set. ACL, SCO or both. So a uint8_t parameter is required and hence the struct.

we don't send it from the kernel, do we? And even if we do, please check the HCI Write Scan Enable command.

Quoted 6 lines
Quoted 2 lines

And the number of completed packets struct is variable. Please compare the number of completed packets events.

But a variable sized host number of completed packets command is required if we are sending number of completed packets for more than one connection handle in the same command, which is not the case currently.

Even if we don't do it at the moment, this doesn't mean that we mess up the kernel with wrong structs.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#29 lore raw

Hi Marcel, Mayank,

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

I haven't done the interface to change the hci_dev->host_flow_ctl parameter from user space and we're sending the host number of completed packtes command after each packet (ACL or SCO, depending on the host_flow_ctl value). We're gonna need counters on both hci_dev and hci_conn structures to "ack" more than one packet and change hci_send_host_num_comp_pkts().

I'm also still not sure when we should send the host number of completed packets command. The specification says this command must be sent after the buffers are freed on the host but I don't know if we have to be strict about this. :-)

Best regards,

-- Ulisses

include/net/bluetooth/hci.h +21 -0
index b2bdb1a..0c5cd2c 100644
@@ -184,6 +184,12 @@ #define HCI_LM_TRUSTED	0x0008
 #define HCI_LM_RELIABLE	0x0010
 #define HCI_LM_SECURE	0x0020
 
+/* Host flow control */
+#define HCI_HFC_NONE	0x00
+#define HCI_HFC_ACL	0x01
+#define HCI_HFC_SCO	0x02
+#define HCI_HFC_BOTH	0x03
+
 /* -----  HCI Commands ---- */
 /* OGF & OCF values */
 
@@ -286,6 +292,11 @@ struct hci_cp_write_voice_setting {
 	__le16   voice_setting;
 } __attribute__ ((packed));
 
+#define OCF_SET_HOST_FLOW_CTL	0x0031
+struct hci_cp_set_host_flow_ctl {
+	__u8     host_flow_ctl;
+} __attribute__ ((packed));
+
 #define OCF_HOST_BUFFER_SIZE	0x0033
 struct hci_cp_host_buffer_size {
 	__le16   acl_mtu;
@@ -294,6 +305,16 @@ struct hci_cp_host_buffer_size {
 	__le16   sco_max_pkt;
 } __attribute__ ((packed));
 
+#define OCF_HOST_NUM_COMP_PKTS	0x0035
+struct hci_cp_host_num_comp_pkts {
+	__u8     num_hndl;
+	/* variable length part */
+} __attribute__ ((packed));
+struct hci_cp_handle_num_comp_pkts {
+	__le16   handle;
+	__le16   num_comp_pkts;
+} __attribute__ ((packed));
+
 /* Link Control */
 #define OGF_LINK_CTL	0x01 
 #define OCF_CREATE_CONN		0x0005
include/net/bluetooth/hci_core.h +6 -0
index d84855f..dca6797 100644
@@ -82,6 +82,12 @@ struct hci_dev {
 	__u16		sniff_min_interval;
 	__u16		sniff_max_interval;
 
+	__u8		host_flow_ctl;
+	__u16		host_acl_mtu;
+	__u8		host_sco_mtu;
+	__u16		acl_max_pkt;
+	__u16		sco_max_pkt;
+
 	unsigned long	quirks;
 
 	atomic_t	cmd_cnt;
net/bluetooth/hci_core.c +51 -7

90 lines not on this page · raw message

net/bluetooth/hci_event.c +26 -2
index 3896dab..78795ff 100644
@@ -139,7 +139,7 @@ static void hci_cc_link_policy(struct hc
 /* Command Complete OGF HOST_CTL  */
 static void hci_cc_host_ctl(struct hci_dev *hdev, __u16 ocf, struct sk_buff *skb)
 {
-	__u8 status, param;
+	__u8 status, param, host_flow_ctl;
 	__u16 setting;
 	struct hci_rp_read_voice_setting *vs;
 	void *sent;
@@ -280,9 +280,33 @@ static void hci_cc_host_ctl(struct hci_d
 		hci_req_complete(hdev, status);
 		break;
 
+	case OCF_SET_HOST_FLOW_CTL:
+		sent = hci_sent_cmd_data(hdev, OGF_HOST_CTL,
+					 OCF_SET_HOST_FLOW_CTL);
+		if (!sent)
+			break;
+
+		status = *((__u8 *)skb->data);
+		host_flow_ctl = *((__u8 *)sent);
+
+		if (!status && hdev->host_flow_ctl != host_flow_ctl) {
+			hdev->host_flow_ctl = host_flow_ctl;
+			BT_DBG("%s: host flow ctl 0x%x", hdev->name,
+			       host_flow_ctl);
+		}
+		break;
+
 	case OCF_HOST_BUFFER_SIZE:
 		status = *((__u8 *) skb->data);
-		if (status) {
+		if (!status) {
+			struct hci_cp_set_host_flow_ctl cp;
+
+			if (!(cp.host_flow_ctl = hdev->host_flow_ctl))
+				break;
+
+			hci_send_cmd(hdev, OGF_HOST_CTL,
+				     OCF_SET_HOST_FLOW_CTL, sizeof(cp), &cp);
+		} else {
 			BT_DBG("%s OCF_BUFFER_SIZE failed %d", hdev->name, status);
 			hci_req_complete(hdev, status);
 		}

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#30 lore raw

Hi Ulisses,

Quoted 3 lines

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

I'll try this today.

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#31 lore raw
In reply to Ulisses Furquim

Hi Ulisses,

Quoted 3 lines

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

case OCF_HOST_BUFFER_SIZE:
status =3D *((__u8 *) skb->data);
- if (status) {
+ if (!status) {
+ struct hci_cp_set_host_flow_ctl cp;
+
+ if (!(cp.host_flow_ctl =3D hdev->host_flow_ctl))
+ break;
+
+ hci_send_cmd(hdev, OGF_HOST_CTL,
+ OCF_SET_HOST_FLOW_CTL, sizeof(cp),
&cp);
+ } else {
BT_DBG("%s OCF_BUFFER_SIZE failed %d", hdev->name,
status);
hci_req_complete(hdev, status);
}

If status =3D 0 it means that the command was success. But in the patch that you sent, it=92s the other way round. Is it a mistake?

Regards,
Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easi= er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#33 lore raw
In reply to Ulisses Furquim

Hi Ulisses, Marcel,

Quoted 3 lines

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

I think we will require the attached patch for setting the various parameters of hci_dev structure from hciconfig (through ioctls).

Regards,
Mayank

C:\Diffs\hci.h renamed from C:\Diffs\Copy of hci.h +4 -0
@@ -82,12 +82,16 @@
 #define HCISETENCRYPT   _IOW('H', 223, int)
 #define HCISETPTYPE     _IOW('H', 224, int)
 #define HCISETLINKPOL   _IOW('H', 225, int)
 #define HCISETLINKMODE  _IOW('H', 226, int)
 #define HCISETACLMTU    _IOW('H', 227, int)
 #define HCISETSCOMTU    _IOW('H', 228, int)
+#define HCISETHOSTFC    _IOW('H', 229, int)
+#define HCISETHOSTACLMTU    _IOW('H', 230, int)
+#define HCISETHOSTSCOMTU    _IOW('H', 231, int)
+
 
 #define HCIINQUIRY      _IOR('H', 240, int)
 
 /* HCI timeouts */
 #define HCI_CONN_TIMEOUT 	(HZ * 40)
 #define HCI_DISCONN_TIMEOUT 	(HZ * 2)
C:\Diffs\hci_core.c renamed from C:\Diffs\Copy of hci_core.c +14 -0
@@ -691,12 +691,26 @@
 		break;
 
 	case HCISETSCOMTU:
 		hdev->sco_mtu  = *((__u16 *)&dr.dev_opt + 1);
 		hdev->sco_pkts = *((__u16 *)&dr.dev_opt + 0);
 		break;
+		
+	case HCISETHOSTFC:
+		hdev->host_flow_ctl = (__u8) dr.dev_opt;
+		break;
+		
+	case HCISETHOSTACLMTU:
+		hdev->host_acl_mtu  = *((__u16 *)&dr.dev_opt + 1);
+		hdev->acl_max_pkts = *((__u16 *)&dr.dev_opt + 0);
+		break;
+
+	case HCISETHOSTSCOMTU:
+		hdev->host_sco_mtu  = *((__u16 *)&dr.dev_opt + 1);
+		hdev->sco_max_pkts = *((__u16 *)&dr.dev_opt + 0);
+		break;
 
 	default:
 		err = -EINVAL;
 		break;
 	}	
 	hci_dev_put(hdev);
C:\Diffs\hci_sock.c renamed from C:\Diffs\Copy of hci_sock.c +3 -0
@@ -233,12 +233,15 @@
 	case HCISETENCRYPT:
 	case HCISETPTYPE:
 	case HCISETLINKPOL:
 	case HCISETLINKMODE:
 	case HCISETACLMTU:
 	case HCISETSCOMTU:
+	case HCISETHOSTFC:
+	case HCISETHOSTACLMTU:
+	case HCISETHOSTSCOMTU:
 		if (!capable(CAP_NET_ADMIN))
 			return -EACCES;
 		return hci_dev_cmd(cmd, arg);
 
 	case HCIINQUIRY:
 		return hci_inquiry(arg);
C:\Diffs\hciconfig.c renamed from C:\Diffs\Copy of hciconfig.c +75 -0

99 lines not on this page · raw message

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#32 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 12 lines · Mayank BATRA
        case OCF_HOST_BUFFER_SIZE:
                status = *((__u8 *) skb->data);
net/bluetooth/hci_event.c +8 -1
-               if (status) {
+               if (!status) {
+                       struct hci_cp_set_host_flow_ctl cp;
+
+                       if (!(cp.host_flow_ctl = hdev->host_flow_ctl))
+                               break;
+
+                       hci_send_cmd(hdev, OGF_HOST_CTL,
+                                    OCF_SET_HOST_FLOW_CTL, sizeof(cp),

&cp);

Quoted 8 lines
+               } else {
                        BT_DBG("%s OCF_BUFFER_SIZE failed %d", hdev->name,
status);
                        hci_req_complete(hdev, status);
                }

If status = 0 it means that the command was success. But in the patch that you sent, it's the other way round. Is it a mistake?

I think it's right, take a look at the patch again (there's a !status there).

Regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

maintainer
#34 lore raw
In reply to Mayank BATRA

Hi Mayank,

Quoted 6 lines
Quoted 3 lines

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

I think we will require the attached patch for setting the various parameters of hci_dev structure from hciconfig (through ioctls).

no. The kernel will find out what host flow control mode to use when someone sends the HCI command. And hciconfig should only send this command.

Variable buffer size are not making sense in my opinion. We know what can handle and we should always accept the maximum. Let the chip decide the actual used buffer size.

Regards

Marcel

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#35 lore raw
In reply to Ulisses Furquim
Quoted 4 lines · Ulisses Furquim

I'm also still not sure when we should send the host number of completed packets command. The specification says this command must be sent after the buffers are freed on the host but I don't know if we have to be strict about this. :-)

Sending back the command gives a commitment to the chip that you will be able to take another maximum size block of data. Sending the command before this is true will lead to a disaster.

So, if you have only a finite amount of memory to hold data coming from the chip, you need to have at least enough space in that memory to hold the maximum amount of data the chip could send you at that point.

You need to worry about this most on resource limited systems. In which case, you almost certainly want to preallocate the memory for the receive so that you can guarantee that it will be available when the packet arrives.

If you preallocate a static buffer then as soon as the data is passed out of the buffer the space being held in that buffer by that message can be freed. This is the earliest the command could be issued. This works nicely with ring buffers and is the scenario the spec is thinking of.

It's then a system problem to make sure that you can't take messages out of that buffer and queue them for their recipients so fast that you deplete the memory of the entire system. In this case you can put in some flow control mechanism internally in your system and take messages out of the static buffer only when flow control allows.

With a dynamic allocation strategy, you should really be sending back the command once you've allocated enough memory to receive the next packet from the chip. Again, this could involve a flow control interlock with the rest of the system.

One strategy for flow control is for the final consumer of the message to inform you that the message has been processed and at that point you could allocate memory to hold a new from chip message and send the command. Alternatively, you could put flow control between each layer of the stack so that the stop indication gradually flows back from a stalled layer until the host stops issuing flow control tokens to the controller.

Implementing host controller to host flow control without also implementing some flow control mechanism through the layers of your stack (if necessary, all the way to the application) just pushes any memory exhaustion issues to other points in the system.

On a big system (with multiple megabytes of memory free) this may not be a significant issue. On a small embedded system where you need to track to the kilobyte level, it can be.

Apart from avoiding a crash, the other issue of interest is bandwidth. You want to make sure that the link from the controller never stalls. To do this, you must make sure that the controller never runs out of flow control tokens, that is, you want to return them in advance of the controller running out. How much in advance depends on the reaction time of the controller. I would have thought that provided you're returning tokens, let's say, at least 5 ms and at least 2 tokens before the controller will run out then it shouldn't stall. However, if you can afford it, a much larger safety margin would be nicer.

It can be more efficient on bandwidth limited host transports (UART) to return multiple tokens in a single command. This suggests that you shouldn't queue up lots of commands each to free up one token. Ideally you'd note that you needed to send a token, but not actually fill in the command payload until the host transport was free to send the command. If the transport were immediately free then you'd send just a single token but if the transport were busy (say, sending a large data packet to the controller) then you might be able to send multiple tokens in a single command once the transport freed up.

One thing you may want to watch is whether the controller can track all the tokens you give it. If it can't then it may be able to use just a subset. I which case, if you're waiting for the number of outstanding tokens to hit a watermark, you may find that flow control stops long before that point because the controller has run out of resources to track outstanding packets.

These are all advanced techniques. For the moment, it's probably easiest just to send tokens as soon as they become available. Worry about optimising it once it's working properly.

Don't forget that when a disconnection occurs, all outstanding flow control tokens for that handle are returned implicitly.

- Steven

Signature · 11 lines
To access the latest news from CSR copy this link into a web browser:  http://www.csr.com/email_sig.php

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#36 lore raw

Hi Steven,

Quoted 3 lines · Steven Singer

Sending back the command gives a commitment to the chip that you will be able to take another maximum size block of data. Sending the command before this is true will lead to a disaster.

Yes, you're right. The problem seems to be knowing when this commitment can be given if we don't have a preallocated static buffer or some dynamic allocation strategy implemented.

[ snip ]

Quoted 3 lines

These are all advanced techniques. For the moment, it's probably easiest just to send tokens as soon as they become available. Worry about optimising it once it's working properly.

Thanks for pointing all that out. :-) We're trying to make it work but we really have to know when we can be sure a flow control token became avaialble.

Quoted 2 lines

Don't forget that when a disconnection occurs, all outstanding flow control tokens for that handle are returned implicitly.

Right, I won't forget, thanks.

Best regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#37 lore raw
In reply to Ulisses Furquim

Hi Marcel, Ulisses,

I am wondering whether this code(i.e. controller to host flow control) has been included in one of the -mh kernel patch.
Can you please confirm?

Best Regards,
Mayank

Quoted 14 lines · Ulisses Furquim

Hi Marcel, Mayank,

how about something like the attached patch? I've used some of Mayank's code and added some other parts. It's not complete and it's only compile-tested yet.

I haven't done the interface to change the hci_dev->host_flow_ctl parameter from user space and we're sending the host number of completed packtes command after each packet (ACL or SCO, depending on the host_flow_ctl value). We're gonna need counters on both hci_dev and hci_conn structures to "ack" more than one packet and change hci_send_host_num_comp_pkts().

Quoted 9 lines

I'm also still not sure when we should send the host number of completed packets command. The specification says this command must be sent after the buffers are freed on the host but I don't know if we have to be strict about this. :-)

Best regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#38 lore raw

Hi Mayank,

Quoted 3 lines · Mayank BATRA

I am wondering whether this code(i.e. controller to host flow control) has been included in one of the -mh kernel patch.
Can you please confirm?

I don't think so. You're probably confusing it with the L2CAP retransmission and flow control patch that is included in the latest -mh patches.

Regards,

-- Ulisses

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#39 lore raw

Hi Ulisses,

Quoted 8 lines
Quoted 4 lines

I am wondering whether this code(i.e. controller to host flow control) has
been included in one of the -mh kernel patch. Can you please confirm?

I don't think so. You're probably confusing it with the L2CAP retransmission and flow control patch that is included in the latest -mh patches.

Of course I am not confused between the two.
Just that I wanted to know whether the Host Flow control patch is inside a -mh patch.
So I think it is not there.

Best Regards,

Mayank

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel