Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249824 - net-wireless/bluez-4.21: Can't add bnep0 to the bridge pan1: No such device(19)
Summary: net-wireless/bluez-4.21: Can't add bnep0 to the bridge pan1: No such device(19)
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 17:38 UTC by Balint Dobai-Pataky
Modified: 2010-09-07 10:30 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,4.19 KB, text/plain)
2008-12-07 07:15 UTC, Balint Dobai-Pataky
Details
strace (bluetoothd.strace,14.85 KB, text/plain)
2010-02-19 21:14 UTC, Balint Dobai-Pataky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Balint Dobai-Pataky 2008-12-04 17:38:45 UTC
since i had no luck with any of the previous bluez versions i installed:
net-wireless/bluez-4.21  USE="doc examples -old-daemons usb -alsa -cups -debug -gstreamer -test-programs"

looks good, less errors, needs to config than other versions, except it does not create pan1 bridge by default.

bluetoothd -d -n 
...
bluetoothd[5577]: Adapter /org/bluez/5577/hci0 has been enabled
bluetoothd[5577]: child 5579 exited
bluetoothd[5577]: Computer is classified as desktop
bluetoothd[5577]: Current device class is 0x0a2104
bluetoothd[5577]: Setting 0x000104 for major/minor device class

bluetoothd[5577]: link_key_request (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
bluetoothd[5577]: kernel auth requirements = 0x00
bluetoothd[5577]: stored link key type = 0x00
bluetoothd[5577]: adapter_get_device(00:1E:45:32:D1:45)
bluetoothd[5577]: hcid_dbus_bonding_process_complete: status=00
bluetoothd[5577]: adapter_get_device(00:1E:45:32:D1:45)
bluetoothd[5577]: hcid_dbus_bonding_process_complete: no pending auth request
bluetoothd[5577]: Added new connection: bnep0
bluetoothd[5577]: Can't add bnep0 to the bridge pan1: No such device(19)

Reproducible: Always




net-misc/bridge-utils-1.4
net-wireless/bluez-gnome-1.8
Comment 1 Wormo (RETIRED) gentoo-dev 2008-12-07 02:22:18 UTC
Please post output of 'emerge --info' as well (for instance, it will show kernel version and architecture)
Comment 2 Balint Dobai-Pataky 2008-12-07 07:15:04 UTC
Created attachment 174532 [details]
emerge --info
Comment 3 Balint Dobai-Pataky 2009-01-18 11:37:25 UTC
the same situation with:
net-wireless/blueman-0.5
net-wireless/bluez-gnome-0.28
net-wireless/bluez-libs-3.36
net-wireless/bluez-utils-3.36
net-wireless/gnome-bluetooth-0.11.0
x11-themes/blueglass-xcursors-0.4

server started from blueman
Jan 18 13:30:06 anubis hcid[3609]: link_key_request (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
Jan 18 13:30:07 anubis hcid[3609]: Added new connection: bnep0
Jan 18 13:30:07 anubis hcid[3609]: Can't add bnep0 to the bridge pan1: No such device(19)
Jan 18 13:30:07 anubis /etc/init.d/net.bnep0[4415]: net.bnep0: not allowed to be hotplugged
Jan 18 13:30:07 anubis hcid[3609]: link_key_notify (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
Jan 18 13:30:09 anubis /etc/init.d/net.bnep0[4441]: net.bnep0: not allowed to be hotplugged
Comment 4 Pacho Ramos gentoo-dev 2009-09-09 17:37:14 UTC
I suggest you to ask for help in http://www.bluez.org/development/lists/ :-)
Comment 5 Gustavo F. Padovan 2010-01-20 04:31:43 UTC
BlueZ 4.21 is not on portage anymore. Can anyone reproduce this bug on bluez-4.39-r2 or the 4.60 ebuild attached on bug #270859? 
Comment 6 Balint Dobai-Pataky 2010-01-20 18:20:54 UTC
anubis ~ # qlist -Iv bluez
dev-python/pybluez-0.16
dev-ruby/rbluez-0.1
net-wireless/bluez-4.39-r2

with net-wireless/blueman-1.21
Group Network and Network Access Point checked on
NAP settings: dnsmasq, NAT enabled

trying to connect with the phone, the syslog:
Jan 20 20:17:45 anubis bluetoothd[3203]: link_key_request (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
Jan 20 20:17:46 anubis bluetoothd[3203]: Added new connection: bnep0
Jan 20 20:17:46 anubis kernel: device bnep0 entered promiscuous mode
Jan 20 20:17:46 anubis kernel: device bnep0 left promiscuous mode
Jan 20 20:17:46 anubis bluetoothd[3203]: Can't add bnep0 to the bridge pan1: Invalid argument(22)
Jan 20 20:17:46 anubis kernel: usb 2-2:1.0: uevent
Jan 20 20:17:46 anubis kernel: usb 2-2: uevent
Comment 7 Gustavo F. Padovan 2010-01-20 18:24:51 UTC
 
> trying to connect with the phone, the syslog:
> Jan 20 20:17:45 anubis bluetoothd[3203]: link_key_request
> (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
> Jan 20 20:17:46 anubis bluetoothd[3203]: Added new connection: bnep0
> Jan 20 20:17:46 anubis kernel: device bnep0 entered promiscuous mode
> Jan 20 20:17:46 anubis kernel: device bnep0 left promiscuous mode
> Jan 20 20:17:46 anubis bluetoothd[3203]: Can't add bnep0 to the bridge pan1:
> Invalid argument(22)
> Jan 20 20:17:46 anubis kernel: usb 2-2:1.0: uevent
> Jan 20 20:17:46 anubis kernel: usb 2-2: uevent


please, send the complete dmesg.
 

Comment 8 Balint Dobai-Pataky 2010-01-20 20:19:43 UTC
those are the related rows from dmesg.
the complete dmesg would be irrelevant
Comment 9 Pacho Ramos gentoo-dev 2010-02-01 21:12:42 UTC
(In reply to comment #4)
> I suggest you to ask for help in http://www.bluez.org/development/lists/ :-)
> 

Did you finally asked there? They will probably know much more about where the problem could be. Good luck! :-)
Comment 10 Vinicius Gomes 2010-02-03 17:22:17 UTC
> trying to connect with the phone, the syslog:
> Jan 20 20:17:45 anubis bluetoothd[3203]: link_key_request
> (sba=11:11:11:11:11:11, dba=00:1E:45:32:D1:45)
> Jan 20 20:17:46 anubis bluetoothd[3203]: Added new connection: bnep0
> Jan 20 20:17:46 anubis kernel: device bnep0 entered promiscuous mode
> Jan 20 20:17:46 anubis kernel: device bnep0 left promiscuous mode
> Jan 20 20:17:46 anubis bluetoothd[3203]: Can't add bnep0 to the bridge pan1:
> Invalid argument(22)
> Jan 20 20:17:46 anubis kernel: usb 2-2:1.0: uevent
> Jan 20 20:17:46 anubis kernel: usb 2-2: uevent
> 

Please, try to load the bridge kernel module, it is called bridge, the kernel option is CONFIG_BRIDGE IIRC, then restart bluetoothd.
Comment 11 Balint Dobai-Pataky 2010-02-03 21:17:15 UTC
the bridge module was loaded, 
i saw pan1 in ifconfig
Comment 12 Gustavo F. Padovan 2010-02-04 23:03:38 UTC
(In reply to comment #11)
> the bridge module was loaded, 
> i saw pan1 in ifconfig
> 

So how will we fix this bug? I think it's not worth load bridge module when we load bluetoothd.
Comment 13 Vinicius Gomes 2010-02-04 23:24:04 UTC
(In reply to comment #12)
> So how will we fix this bug? I think it's not worth load bridge module when we
> load bluetoothd.
> 

I still don't know. The module is loaded in Balint's case and it is supposed to be autoloaded anyway.

Balint, I have some ideas about this, could you run bluetoothd tracing all calls to ioctl's? something like this would do: 

sudo strace -e trace=ioctl bluetoothd -dn

Trying with a current kernel would be useful too.

Anyway, feel free to drop by #bluez-users at freenode and ping me, my nick is vcgomes.
Comment 14 Pacho Ramos gentoo-dev 2010-02-19 13:43:15 UTC
Any news on this? Have you tried with 4.61? If still fails, please ask on linux-bluetooth@vger.kernel.org mailing list (I think that you don't need to subscribe to it, you can simply ask for help there)

Thanks and good luck!
Comment 15 Balint Dobai-Pataky 2010-02-19 21:14:20 UTC
Created attachment 220399 [details]
strace

sorry for the late reply.
my current bluez is net-wireless/bluez-4.61
the straceis attached
Comment 16 Pacho Ramos gentoo-dev 2010-03-15 21:21:34 UTC
Did you asked in mailing list?
Comment 17 Balint Dobai-Pataky 2010-03-16 07:16:30 UTC
no, i use my phone's wifi. sorry
Comment 18 Pacho Ramos gentoo-dev 2010-03-26 10:31:00 UTC
Have you tried with most recent kernel? (2.6.33)
Comment 19 Pacho Ramos gentoo-dev 2010-05-08 09:37:11 UTC
(In reply to comment #18)
> Have you tried with most recent kernel? (2.6.33)
> 

ping! :-)
Comment 20 Balint Dobai-Pataky 2010-05-08 12:28:10 UTC
(In reply to comment #19)
> (In reply to comment #18)
> > Have you tried with most recent kernel? (2.6.33)
> > 
> 
> ping! :-)
> 

no, and i can't in the near future.
Comment 21 Fai Wong 2010-05-11 15:38:41 UTC
I has the same issue and I tried "strace -e trace=ioctl bluetoothd -dn" with the following result when my mobile is connecting using bluetooth:


ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(24, 0x800448d3, 0xbfda26f8)       = -1 ENOENT (No such file or directory)
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
bluetoothd[32359]: link_key_request (sba=11:11:11:11:11:11, dba=00:24:EF:1B:53:60)
ioctl(23, 0x800448d7, 0xbfda29c7)       = 0
bluetoothd[32359]: kernel auth requirements = 0x04
bluetoothd[32359]: stored link key type = 0x00
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
bluetoothd[32359]: adapter_get_device(00:24:EF:1B:53:60)
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(24, 0x800448d3, 0xbfda26f8)       = -1 ENOENT (No such file or directory)
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(24, 0x800448d2, 0xb771d958)       = 0
ioctl(24, 0x800448d3, 0xbfda1584)       = 0
ioctl(23, 0x800448d4, 0xb770f240)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
bluetoothd[32359]: BNEP: incoming connect from 00:24:EF:1B:53:60
ioctl(9, 0x400442c8, 0xbfda22e0)        = 0
bluetoothd[32359]: Added new connection: bnep0
ioctl(24, SIOCGIFINDEX, {ifr_name="bnep0", ifr_index=27}) = 0
ioctl(10, 0x89a2, 0xbfda22dc)           = -1 EINVAL (Invalid argument)
bluetoothd[32359]: Can't add bnep0 to the bridge pan1: Invalid argument(22)
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(24, 0x800448d2, 0xb771db80)       = 0
ioctl(24, 0x800448d3, 0xbfda1584)       = 0
ioctl(23, 0x800448d4, 0xb771d958)       = 0
bluetoothd[32359]: hcid_dbus_bonding_process_complete: status=00
bluetoothd[32359]: adapter_get_device(00:24:EF:1B:53:60)
bluetoothd[32359]: hcid_dbus_bonding_process_complete: no pending auth request
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
ioctl(23, 0x800448d3, 0xb770e7a8)       = 0
Comment 22 Pacho Ramos gentoo-dev 2010-05-11 15:53:23 UTC
Can you please forward this to upstream mailing list as asked in comment #14 ?

Thanks
Comment 23 Pacho Ramos gentoo-dev 2010-07-13 12:01:09 UTC
Please try with bluez-4.67, it includes a fix for device detections on some setups