Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 5ce5b24

Browse files
nilsMontenegroglennrub
authored andcommitted
Bugfix: Fixing order of hciconfig hci0 reset and killall bluetoothd. (#3)
* Bugfix: Fixing order of hciconfig hci0 reset and killall bluetoothd. * Adding sleep after hciconfig.
1 parent e14749f commit 5ce5b24

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

patches/openwrt/bluetooth_6lowpand_5.30-1.patch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ index 0000000..cd9b3b4
3333
+ modprobe bluetooth_6lowpan
3434
+ sleep 1
3535
+ echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psm
36+
+ killall bluetoothd
37+
+ sleep 1
3638
+ hciconfig hci0 reset
3739
+ sleep 1
38-
+ killall bluetoothd
3940
+ bluetooth_6lowpand -w 3 -t 5 -a -d
4041
+}
4142
+

readme.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ Changes Note
3131
Known Issues
3232
===================================================
3333

34-
- bluetoothd daemon has to be killed to allow passkey/oob pairing.
35-
The command below should be executed before running the bluetooth_6lowpand daemon
34+
- bluetoothd daemon has to be killed and HCI interface has to be reset to allow passkey/oob pairing.
35+
The commands below should be executed before running the bluetooth_6lowpand daemon
3636
with the -a option if the bluetoothd daemon is running.
3737

3838
$ killall bluetoothd
39+
$ hciconfig hci0 reset
3940

4041

4142
- If all the devices are disconnected, the 6lowpan network interface on OpenWRT

src/bluetooth_6lowpand.init

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ case $1 in
1414
else
1515
echo 35 > /sys/kernel/debug/bluetooth/6lowpan_psm
1616
fi
17+
killall bluetoothd
18+
sleep 1
1719
hciconfig hci0 reset
1820
sleep 1
19-
killall bluetoothd
2021
bluetooth_6lowpand -w 3 -t 5 -a $2 -d
2122
;;
2223
stop)

0 commit comments

Comments
 (0)