Sidvicious070724 / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 2 forks source link

Bluetooth PAN not assigning IP to laptop/ipad etc on HTC HD2/Leo #905

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
HTC HD2

Hyperdroid GBX v10, but tried multiple different roms and can never get it to 
work
What version of wireless tether are you using?

Wireless tether v 2.07

1.Load up wireless tether ( bluetooth mode enabled)
2.Enable Wireless tether
3.Pair with laptop
4.Laptop says it cannot get an IP
5.Wireless tether log says :  error : SIOCSIFFLAGS ( Cannot assign requested 
address)

I've tried several different ip ranges from the wireless tether config and get 
the same response.
Manually assigning an IP on my laptop still doesnt work.

Id expect it to connect as normal.

Please provide any additional information below.

# su -c "/data/data/android.tether/bin/pand --listen --role NAP --devup 
/data/data/android.tether/bin/blue-up.sh -n"
pand[5020]: Bluetooth PAN daemon version 3.36
pand[5336]: New connection from 00:23:12:59:F3:B3 at bnep0

Original issue reported on code.google.com by crunchie...@gmail.com on 24 Mar 2011 at 9:17

GoogleCodeExporter commented 9 years ago
ifconfig bnep0
bnep0     Link encap:Ethernet  HWaddr 43:29:B0:00:00:00  
          inet addr:172.20.21.254  Bcast:172.20.255.255  Mask:255.255.0.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:102 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:27987 (27.3 KiB)  TX bytes:0 (0.0 B)

Bluetooth HWaddr looks wrong?

Original comment by crunchie...@gmail.com on 24 Mar 2011 at 9:31

GoogleCodeExporter commented 9 years ago
I have this exact problem on my incredible running CM7.  (see issue 900)

There has to be something wrong with the HWaddr on the bluetooth interface, but 
I'm not sure if this would cause the SIOCSIFFLAGS.  (I wouldn't be surprised)

Original comment by ben.pfou...@gmail.com on 25 Mar 2011 at 6:07

GoogleCodeExporter commented 9 years ago
I have verified the problem is the incorrect MAC address.  I found a patch for 
CM7 which corrects the MAC on the incredible.  

http://forum.cyanogenmod.com/topic/18413-bluetooth-mac-address-incorrect/

I managed to get the patch into a custom boot image, and the bluetooth tether 
works.

Original comment by ben.pfou...@gmail.com on 26 Mar 2011 at 6:50

GoogleCodeExporter commented 9 years ago
Tytung's v9 beta kernel now support showing the correct MAC address but the 
error : SIOCSIFFLAGS ( Cannot assign requested address)
still persists with both my iPad and Laptop.

Original comment by crunchie...@gmail.com on 5 Apr 2011 at 1:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Tytung_r9 beta kernel only support a fake Bluetooth MAC address because we 
cannot get a REAL Bluetooth MAC address on HD2.

Will a fake BT address (43:29:B0:XX:XX:XX, e,g,: 43:29:B0:24:84:F3) cause any 
problem?
I mean is there any rule required for BT address?
Thanks.

Original comment by tyt...@gmail.com on 7 Apr 2011 at 1:41

GoogleCodeExporter commented 9 years ago
Yes, 43:29:B0:XX:XX:XX causes the problem.
Tytung_r9 kernel uses IEEE Standards 00:23:76:XX:XX:XX for HTC. -- 
http://standards.ieee.org/cgi-bin/ouisearch?00-23-76

Then Bluetooth PAN is working well.

Original comment by tyt...@gmail.com on 13 Apr 2011 at 9:14