Hi again,

How does hcid know what mode that is "best" for my application? I want to make sure that it is 1 (result with rssi), is there a way I can tell hcid to always choose that mode then?

Also, I would like to have as few external dependencies, so if possible I would prefer to not use d-bus. Is there a way to set the local name without d-bus and without root privileges?

-- Mikael

On 11/19/06, Marcel Holtmann <marcel@holtmann.org> wrote:
Hi Mikael,

> I've noticed that only the superuser may perform some hci commands,
> such as OCF_WRITE_LOCAL_NAME and OCF_WRITE_INQUIRY_MODE. How can I
> grant privileges for other users to perform those commands?
>
> The problem is that I have an application that needs to set those
> paramaters, but I don't want to run the application as root.

the inquiry mode should never be set by an application. It is up to hcid
to pick the best inquiry mode.

The local name can be set via the D-Bus interface and no root privileges
are needed.

Regards

Marcel



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users