rajan72 / android-wifi-tether

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

Access Control Not Working with WEP Encryption #406

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which device (manufacturer, type)?
Motorola Droid

Which firmware is installed?
Froyo FRF57

What version of wireless tether are you using?
2.02

What steps will reproduce the problem?

The access control and/or WIFI encryption work just fine when used separately. 
However, if I enable both, internet traffic is stopped. If I enable one or the 
other, traffic is restored.

When both are enabled, I press the screen to start the tethering. When it 
starts, a message is displayed saying "tethering started with some errors, 
please check show log."

Original issue reported on code.google.com by samisham...@gmail.com on 23 Jun 2010 at 10:27

GoogleCodeExporter commented 8 years ago
And ... what shows-up if you open "show log"? I mean the real error-message 
would be helpful.

You could also try to start from command-line (via adb for instance). This will 
generate more debug output.

adb shell
su
cd /data/data/android.tether/bin
./tether start 1

Original comment by harald....@gmail.com on 24 Jun 2010 at 8:33

GoogleCodeExporter commented 8 years ago
Sorry, here is the log generated from the adb shell:

/ $ su
su
/ # cd /data/data/android.tether/bin
cd /data/data/android.tether/bin
/data/data/android.tether/bin # ./tether start 1
./tether start 1
about to run: [/system/bin/wlan_loader -f /system/etc/wifi/fw_wlan1271.bin -e /p
roc/calibration -i /system/etc/wifi/tiwlan.ini]
ERROR - IPC_STA_Private_Send - error sending Wext private IOCTL to STA driver (i
octl_cmd = 8000000,  res = -1, errno = 22)
Wlan_loader: Error sending init command (DRIVER_INIT_PARAM) to driver
Set property wlan.driver.status = failed - Ok
about to run: [/data/data/android.tether/bin/ifconfig tiwlan0 192.168.2.254 netm
ask 255.255.255.0]
about to run: [/data/data/android.tether/bin/ifconfig tiwlan0 up]
about to run: [/data/data/android.tether/bin/iwconfig tiwlan0 mode ad-hoc]
about to run: [/data/data/android.tether/bin/iwconfig tiwlan0 essid Sami_Rocks]
about to run: [/data/data/android.tether/bin/iwconfig tiwlan0 channel 6]
about to run: [/data/data/android.tether/bin/iwconfig tiwlan0 commit]
Error for wireless request "Commit changes" (8B00) :
    SET failed on device tiwlan0 ; Operation not supported on transport endpoint
.
about to run: [/data/data/android.tether/bin/iwconfig tiwlan0 mode ad-hoc essid
AndroidTether persist &]
about to run: [cd /data/local/tmp; mkdir /data/local/tmp/wpa_supplicant; wpa_sup
plicant -B -Dwext -itiwlan0 -c/data/data/android.tether/conf/wpa_supplicant.conf
]
mkdir: cannot create directory '/data/local/tmp/wpa_supplicant': File exists
about to run: [/data/data/android.tether/bin/iptables -N wireless-tether]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
iptables: Chain already exists
about to run: [/data/data/android.tether/bin/iptables -F wireless-tether]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -t nat -F PREROUTING]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -t nat -F POSTROUTING]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -t nat -F]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -m stat
e --state ESTABLISHED,RELATED -j ACCEPT]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -s 192.
168.2.0/24 -j ACCEPT]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -A wireless-tether -j DROP
]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -A FORWARD -j wireless-tet
her]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/iptables -t nat -I POSTROUTING -s 1
92.168.2.0/24 -j MASQUERADE]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
about to run: [/data/data/android.tether/bin/dnsmasq -i tiwlan0 --resolv-file=/d
ata/data/android.tether/conf/resolv.conf --conf-file=/data/data/android.tether/c
onf/dnsmasq.conf]

dnsmasq: failed to bind DHCP server socket: Address already in use
about to run: [/data/data/android.tether/bin/iptables -t nat -I PREROUTING -s 19
2.168.2.0/24 -j DROP]
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
getsockopt for multiport failed strangely: No such file or directory
iptables: No chain/target/match by that name
script result was []
/data/data/android.tether/bin #

Original comment by samisham...@gmail.com on 24 Jun 2010 at 9:02

GoogleCodeExporter commented 8 years ago
Same problem with error:
getsockopt for multiport failed strangely: No such file or directory
on using droidwall application:
http://code.google.com/p/droidwall/issues/detail?id=29

Original comment by Mur...@gmail.com on 6 Jul 2010 at 2:19