Skip to contentSkip to conversation

bnep module in 2.6.27 fails to provide bnep0 device

DISCUSSION Mick Semb Wever 1 participant 3 messages Jan 3, 2009 – Jun 28, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

This used to work for me but after some system updates is now broken.

I'm using the following combination on gentoo:

linux-2.6.27 (64-bit)
bluez-libs-3.36
bluez-utils-3.36

Restarting bluetooth, with the usb bluetooth dongle in, gives in the system log:

[hcid] Bluetooth HCI daemon
[hcid] Parsing /etc/bluetooth/main.conf failed: No such file or directory [hcid] Starting SDP server
[hcid] Unix socket created: 11
[hcid] Registered manager path:/org/bluez/audio
[hcid] Registered input manager path:/org/bluez/input
[hcid] Starting experimental netlink support
[kernel] pan0: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature. [hcid] Failed to find Bluetooth netlink family
[hcid] Can't init plugin /usr/lib64/bluetooth/plugins/netlink.so [hcid] bridge pan0 created
[hcid] Registered manager path:/org/bluez/network
[hcid] Registered server path:/org/bluez/network/nap
[hcid] Registered server path:/org/bluez/network/gn
[hcid] Registered server path:/org/bluez/network/panu
[hcid] Registered manager path:/org/bluez/serial
[hcid] HCI dev 0 registered
[hcid] HCI dev 0 already up
[hcid] Device hci0 has been added
[hcid] Starting security manager 0
[hcid] Device hci0 has been activated

Then running "pand -c XX" I get:

[pand] Connecting to 00:19:63:14:8C:6C
[hcid] link_key_request (sba=00:10:60:D1:7C:31, dba=00:19:63:14:8C:6C)
[pand] bnep0 connected
[/etc/init.d/net.bnep0] ERROR: interface bnep0 does not exist [/etc/init.d/net.bnep0] Ensure that you have loaded the correct kernel module for your hardware [/etc/init.d/net.bnep0] ERROR: net.bnep0 failed to start

It seems pand connects through the bnep0 device, and indeed the mobile phone i'm connecting to registers the connection and itself connects to the 3g network, but the kernel complains and the connection is quickly dropped...

I have googled around without any luck at all.
The bnep module is definitely loaded, i have tried reloading it, and restarting the system. And recompiling the kernel with modules built-in instead.

I'm quite lost here and hoping anybody can help, or instruct what more information is required.

~mck

ps this was original posted to http://gmane.linux.network which i presumed, too late, is an advanced development list. I gather this is the right list as it is the conglomeration of the previous bluez.users and bluez.devel lists.

Signature · 3 lines
"Don't use Outlook. Outlook is really just a security hole with a small
e-mail client attached to it." Brian Trosko 
| semb.wever.org | sesat.no | sesam.no |
#1 lore raw

Works in 2.6.26, broken in 2.6.27 & 2.6.28 [WAS: Re: bnep module in 2.6.27 fails to provide bnep0 device]

Quoted 6 lines

I'm using the following combination on gentoo:

linux-2.6.27 (64-bit)
bluez-libs-3.36
bluez-utils-3.36

The problem exists the same after an upgrade to kernel-2.6.28

Downgrading to 2.6.26 everything works well.
The same environment is being used so the userspace seems not at fault.

Working on 2.6.26 gives the kernel logging:

[pand] Bluetooth PAN daemon version 3.36
[pand] Connecting to 00:19:63:14:8C:6C
[hcid] link_key_request (sba=00:10:60:D1:7C:31, dba=00:19:63:14:8C:6C) [pand] bnep0 connected
[ifplugd(bnep0)] ifplugd 0.28 initializing. [ifplugd(bnep0)] Using interface bnep0/00:10:60:D1:7C:31 [ifplugd(bnep0)] Using detection mode: IFF_RUNNING [ifplugd(bnep0)] Initialization complete, link beat detected. [ifplugd(bnep0)] Executing '/etc/ifplugd/ifplugd.action bnep0 up'. [dhcpcd] bnep0: dhcpcd 4.0.7 starting
[ifplugd(bnep0)] client: bnep0: dhcpcd 4.0.7 starting [dhcpcd] bnep0: broadcasting for a lease
[ifplugd(bnep0)] client: bnep0: broadcasting for a lease [dhcpcd] bnep0: offered 89.8.70.95 from 89.8.70.93
...etc etc from a working connection...

~mck

Signature · 2 lines
"Do or do not there is no try." Yoda 
| semb.wever.org | sesat.no | sesam.no |
author
#2 lore raw

Re: [SOLUTION] Works in 2.6.26, broken in 2.6.27 & 2.6.28 [WAS: Re: bnep module in 2.6.27 fails to provide bnep0 device]

Quoted 11 lines
Quoted 5 lines

I'm using the following combination on gentoo:

linux-2.6.27 (64-bit)
bluez-libs-3.36
bluez-utils-3.36

The problem exists the same after an upgrade to kernel-2.6.28

Downgrading to 2.6.26 everything works well.
The same environment is being used so the userspace seems not at fault.

Ok, 6 months down the track i lose my phone and buy a new Sony Ericsson C901. I get the same behaviour but have found by luck a work around.

If i "Browse files on device..." (using gnome's bluetooth-applet) and connect to my phone (creating a obex connection) then run pand -c <bdaddr>

everything works fine, and it played well with NetworkManager.

The successful system log looked like:

Quoted 41 lines
Jun 25 15:30:31 [pand] Connecting to 00:25:E7:0D:5E:6D
Jun 25 15:30:32 [pand] bnep0 connected
Jun 25 15:30:32 [NetworkManager] <info>  (bnep0): driver 'btusb' does not support carrier detection.__You must switch to it manually._
Jun 25 15:30:32 [NetworkManager] <info>  (bnep0): new Ethernet device (driver: 'btusb')_
Jun 25 15:30:32 [NetworkManager] <info>  (bnep0): exported as /org/freedesktop/Hal/devices/net_00_03_7a_dc_47_18_
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): device state change: 1 -> 2_
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): bringing up device._
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): preparing device._
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): deactivating device (reason: 2)._
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): device state change: 2 -> 3_
Jun 25 15:30:37 [nm-system-settings] Added default wired connection 'Auto bnep0' for /org/freedesktop/Hal/devices/net_00_03_7a_dc_47_18
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) starting connection 'Auto bnep0'_
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): device state change: 3 -> 4_
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 1 of 5 (Device Prepare) scheduled..._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 1 of 5 (Device Prepare) started..._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 2 of 5 (Device Configure) scheduled..._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 1 of 5 (Device Prepare) complete._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 2 of 5 (Device Configure) starting..._
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): device state change: 4 -> 5_
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 2 of 5 (Device Configure) successful._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 3 of 5 (IP Configure Start) scheduled._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 2 of 5 (Device Configure) complete._
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 3 of 5 (IP Configure Start) started..._
Jun 25 15:30:37 [NetworkManager] <info>  (bnep0): device state change: 5 -> 7_
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Beginning DHCP transaction._
Jun 25 15:30:37 [NetworkManager] <info>  dhcpcd started with pid 20383_
Jun 25 15:30:37 [NetworkManager] <info>  Activation (bnep0) Stage 3 of 5 (IP Configure Start) complete._
Jun 25 15:30:37 [dhcpcd] bnep0: dhcpcd 4.0.13 starting
Jun 25 15:30:37 [NetworkManager] <info>  DHCP: device bnep0 state changed normal exit -> preinit_
Jun 25 15:30:37 [dhcpcd] bnep0: broadcasting for a lease
Jun 25 15:30:37 [dhcpcd] bnep0: offered ... from 10.252.177.241
Jun 25 15:30:37 [dhcpcd] bnep0: acknowledged ... from 10.252.177.241
Jun 25 15:30:37 [dhcpcd] bnep0: checking ... is available on attached networks
Jun 25 15:30:42 [dhcpcd] bnep0: leased ... for 300 seconds
Jun 25 15:30:42 [NetworkManager] <info>  DHCP: device bnep0 state changed preinit -> bound_
Jun 25 15:30:42 [NetworkManager] <info>  Activation (bnep0) Stage 4 of 5 (IP Configure Get) scheduled..._
Jun 25 15:30:42 [NetworkManager] <info>  Activation (bnep0) Stage 4 of 5 (IP Configure Get) started..._
Jun 25 15:30:42 [NetworkManager] <info>    address ..._
Jun 25 15:30:42 [NetworkManager] <info>    prefix 29 (255.255.255.248)_
Jun 25 15:30:42 [NetworkManager] <info>    gateway 10.252.177.243_
Jun 25 15:30:42 [NetworkManager] <info>    nameserver '212.169.123.67'_
Quoted 8 lines
Jun 25 15:30:42 [NetworkManager] <info>    nameserver '212.45.188.254'_
Jun 25 15:30:42 [NetworkManager] <info>  Activation (bnep0) Stage 5 of 5 (IP Configure Commit) scheduled..._
Jun 25 15:30:42 [NetworkManager] <info>  Activation (bnep0) Stage 4 of 5 (IP Configure Get) complete._
Jun 25 15:30:42 [NetworkManager] <info>  Activation (bnep0) Stage 5 of 5 (IP Configure Commit) started..._
Jun 25 15:30:43 [NetworkManager] <info>  (bnep0): device state change: 7 -> 8_
Jun 25 15:30:43 [NetworkManager] <info>  Policy set 'Auto bnep0' (bnep0) as default for routing and DNS._
Jun 25 15:30:43 [NetworkManager] <info>  Activation (bnep0) successful, device activated._
Jun 25 15:30:43 [NetworkManager] <info>  Activation (bnep0) Stage 5 of 5 (IP Configure Commit) complete._

~mck

Signature · 2 lines
"Some husbands are living proof that a woman can take a joke." 
| semb.wever.org | sesat.no | finn.no |