sssemil / android-wifi-tether

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

Subnet on bluetooth sharing is incorrect #1680

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
*Which device (manufacturer, type)?*
Motorola Milestone 2 A953

*Which firmware is installed?*
CyanogenMod 7 for Milestone2 by tezet.
Latest stable: cm7-120908-2319-NIGHTLY-Milestone2

*What version of wireless tether are you using?*
2.0.7

*What steps will reproduce the problem?*
1. Configure wireless tether to share the connection over bluetooth.
2. Enable sharing.
3. Connect any device over bluetooth
4. Check network settings and find that regardless of configuration in wireless 
tether all devices are getting an address in the 192.168.43.0/24 subnet.

*What is the expected output? What do you see instead?*
Check iptables output and find that wireless tether has configured iptables 
correctly as defined in the settings, however this doesn't match the interface 
subnet as defined in point 4.

This issue doesn't occur with wifi sharing.

*Please provide any additional information below.*
By editing the iptables config the connection starts working.  Simply doing 
```iptables -I wireless-tether 3 -s 192.168.43.0/24 -j ACCEPT``` does the job.

I found that editing the config file directly will make this work fine too.  In 
```/data/data/android.tether/shared_prefs/android.tether_preferences.xml
``` I changed the 'lannetworkpref' value to 192.168.43.0/24 and tested 
connectivity and all was fine.

The ideal scenario would be to have a free form entry field in the 
lannetworkpref setting in the UI.

Original issue reported on code.google.com by jinn.kor...@gmail.com on 2 Dec 2012 at 11:01