Sidvicious070724 / android-wifi-tether

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

Access Control Not Working with WEP Encryption #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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.

I ran wifi tether through the ADB Shell and here is the debug report:

/ $ 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 
AndroidTether]
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 issue reported on code.google.com by samisham...@gmail.com on 25 Jun 2010 at 5:26

GoogleCodeExporter commented 9 years ago
I have experienced trouble getting access control to work on its own with 2.2 
(Froyo).  If I enable access control, it stops internet access for the iPhone 
that I had connected.

Original comment by screwedb...@aim.com on 6 Aug 2010 at 4:00

GoogleCodeExporter commented 9 years ago
Also having this issue, it would be nice to be able to control access via 
access-control but I could see it as being considered redundant and unnecessary 
with WEP enabled.

Original comment by Orpheus...@gmail.com on 20 Aug 2010 at 3:18

GoogleCodeExporter commented 9 years ago
I'm also having this problem.

Original comment by shawn.ha...@gmail.com on 20 Aug 2010 at 5:57

GoogleCodeExporter commented 9 years ago
Also having this issue, 2,2, no WEP

Original comment by JasonHoe...@gmail.com on 24 Oct 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Droid X 2.2 running 2.0.5-pre14 works flawlessly with WEP encryption enabled 
and ACL disabled. With both WEP encryption and ACL enabled gives "tethering 
started with some errors, please check show log" as described by samishamieh1.

Original comment by matt...@zhabinskiy.com on 29 Nov 2010 at 6:56

GoogleCodeExporter commented 9 years ago
If access control is MAC filtering why bother? MAC spoofing is orders of 
magnitude simpler than PSK cracking.

Original comment by lfu8b4sk...@spambox.us on 6 Sep 2011 at 7:30