* BT_ADDR not updated
@ 2013-02-16 14:51 Randy Yates
2013-02-18 8:55 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Randy Yates @ 2013-02-16 14:51 UTC (permalink / raw)
To: linux-bluetooth
This question is regarding bluez 5.2:
i'm changing bt addr "on-the-fly" via a vendor-specific hcitool
command but the bluetoothctl is not seeing the new address, even
after a hciconfig hci0 reset
however i do see the new address via "hcitool dev", so it's
getting changed in the device
is there some bug in bluez updating the device address on a reset?
--
Randy Yates
Digital Signal Labs
http://www.digitalsignallabs.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: BT_ADDR not updated
2013-02-16 14:51 BT_ADDR not updated Randy Yates
@ 2013-02-18 8:55 ` Johan Hedberg
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2013-02-18 8:55 UTC (permalink / raw)
To: Randy Yates; +Cc: linux-bluetooth
Hi Randy,
On Sat, Feb 16, 2013, Randy Yates wrote:
> This question is regarding bluez 5.2:
>
> i'm changing bt addr "on-the-fly" via a vendor-specific hcitool
> command but the bluetoothctl is not seeing the new address, even
> after a hciconfig hci0 reset
>
> however i do see the new address via "hcitool dev", so it's getting
> changed in the device
>
> is there some bug in bluez updating the device address on a reset?
The address is assumed to stay unchanged from the moment that the
existence of the controller is presented to user space, i.e. there is no
event through which user space would be notified of changes to its
address. If your hardware requires this kind of initialization (e.g. if
it doesn't have a proper address from the start) the best place for
writing the address would probably be the HCI driver's initialization
routine.
Johan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-18 8:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-16 14:51 BT_ADDR not updated Randy Yates
2013-02-18 8:55 ` Johan Hedberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox