Re: [Bluez-devel] TPL (transmit power level)

Marcel Holtmann
2005-02-21T23:24:51Z

Hi Flavio,

> I=B4m working with power control and i saw one thing that could be wron=
g:
>=20
> Transmit power level (tpl) : _1octet (signed integer);
> _range: -30<=3D N<=3D20;
> _units: dBm.
>=20
> In BlueZ the value of tpl is defined like unsigned int ( uint8_t level
> ) but i think that should be an int ( int8_t level ) like is defined
> in core of bluetooth.
>=20
> There is any particular reason for the level to be an unsigned int??

no, because this is bug. Thanks for spotting it. If you see more of
them, then simply send in a patch for it.

Regards

Marcel