[H-GEN] Bluetooth: pand: Connection failed. File exists(17)

Samuel Thibault samuel.thibault at ens-lyon.org
Tue Mar 21 14:58:19 UTC 2006


Geoff Shang, le Wed 22 Mar 2006 00:05:11 +1000, a écrit :
> Geoff Shang wrote:
> >Mar 10 18:35:46 data pand[16077]: Connection failed. File exists(17)
> Thanks to those who helpfully suggested I run pand under strace. 
> Unfortunately, for me at least, the results weren't particularly 
> illuminating.
> I'm assuming the following line from the panu side is significant:
> ioctl(3, 0x400442c8, 0xbffff210)        = -1 EEXIST (File exists)
> Anyone know what this means?

Ah, strace was not updated for bluez ioctls.

By digging in the source code, it seems to come from bnep_connadd():

        strcpy(req.device, dev);
        req.sock = sk;
        req.role = role;

        if (ioctl(ctl, bnepconnadd, &req))

Reading from the kernel code, it seems to mean that a session already
exists for the given destination.


More information about the Blinux-list mailing list