[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bluetooth-dev] RE: A question about the NBR_OF_COMLETED_PACKETS



Hi,

I think you are right there.

But if you change the code to: 

--------------------------------------
	start_index = 1 + 2;
   	stop_index = 1 + (4 * (*buf));

	for (i = start_index; i < stop_index; i += 4) {
   		hci_ctrl.hc_buf.acl_num += CHAR2INT16(buf[i+1], buf[i]);
   	}
---------------------------------------
I think it will work, or am I wrong ?

Ofcourse we need to take care of the HCI handlers as well to get full multipoint support, but we are working on that...

Best Regards
Mats

> -----Original Message-----
> From: shamirr@xxxxxxx.COM">mailto:shamirr@xxxxxxx.COM]
> Sent: Wednesday, October 04, 2000 3:00 PM
> To: matsf@xxxxxxx.com
> Subject: A question about the NBR_OF_COMLETED_PACKETS
> 
> 
> To Mats,
> First - Thanks for the fast reply !
> In HCI.C line 897 you wrote :
>                         start_index = 1 + (2 * (*buf));
>                         stop_index = 1 + (4 * (*buf));
> where *buf is the number of handels we have in the event -
> Does it mean that all the NOCP parameters are at the end of the parameter list and not as written
> in p. 532
> " Arrayed parameters are specified using the following notation: Parame-terA[
> i]. If more than one set of arrayed parameters are specified (e.g.
> ParameterA[i], ParameterB[i]), then the order of the parameters are as fol-lows:
> ParameterA[0], ParameterB[0], ParameterA[1], ParameterB[1],
> ParameterA[2], ParameterB[2], ... ParameterA[n], ParameterB[n] " ?
> 
> 
> Thanks,
> Shamir .