Thread (2 messages) flat view 2 messages, 1 author, 2022-07-23

bnep: Can't add bnep0 to the bridge btnap0: Invalid argument(22)

From: Dylan Van Assche <hidden>
Date: 2022-07-21 16:30:43

Hi,

I'm trying to setup a Bluetooth hotspot using NAP with BlueZ and
NetworkManager. However, I cannot fix the following error:

bnep: Can't add bnep0 to the bridge btnap0: Invalid argument(22)

I have created a network bridge as followed:

brctl addbr btnap0

and used test-nap [1] as followed:

test-nap btnap0

when the client connect, you can see in the logs that BlueZ tries to
link the bnep0 interface it is creating with the btnap0 bridge, but
fails to do that.

Logs:

profiles/network/server.c:confirm_event() BNEP: incoming connect from
XX:XX:XX:XX:XX:XX
profiles/network/bnep.c:bnep_getsuppfeat() supported features: 0x1
profiles/network/bnep.c:bnep_add_to_bridge() bnep: Can't add bnep0 to
the bridge btnap0: Invalid argument(22)
profiles/network/server.c:bnep_setup() BNEP server cannot be added

Environment:

BlueZ 5.64
postmarketOS edge / Alpine Linux (musl libc)
Qualcomm wcn3990 Bluetooth adaptor
Linux 5.18.3 (arm64)

Did I miss something to set this up?

Kind regards,
Dylan Van Assche

[1]
https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/test/test-nap
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help