In the the android terminal I got "iwconfig eth0" details on my HTC Desire (CM7):
$ iwconfig eth0
eth0 IEEE 802.11-DS ESSID:"xxxxx" Nickname:""
Mode:Managed Frequency:2.427 GHz Access Point: xx:xx:xx:xx:xx:xx
Bit Rate=54 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementmode:All packets received
Link Quality=5/5 Signal level=-47 dBm Noise level=-90 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:3 Invalid misc:0 Missed beacon:0
The Tx-Power shows 32 dBm or 1580mW !! You may know that the maximum Tx-Power of home WiFi routers is about (for instance) 50~100mW (or 20 dBm), but 32 dBm!!? How is that possible?
Related
I've been having serious problem with Wifi on my SK17i when connected to the PEAP 802.11x wireless network at work.
At first I thought it was the wireless connection attempting to maintain too high a link speed but more testing suggests it's more fundamental than that.
What I've discovered is that I can set up an ICMP ping to the default gateway that will work fine as long as that is the only traffic but soon after I start transferring data outside the network the pings to the default gateway start failing (with the message ping: sendmsg: No buffer space available) and no network traffic goes anywhere over the wifi connection until I turn it off and on again, but if I do that then as soon as I start sending real data again the connection will collapse once more.
$ ping -c 50 10.4.0.1
ping -c 50 10.4.0.1
PING 10.4.0.1 (10.4.0.1) 56(84) bytes of data.
64 bytes from 10.4.0.1: icmp_seq=1 ttl=63 time=45.9 ms
...
64 bytes from 10.4.0.1: icmp_seq=28 ttl=63 time=31.7 ms
ping: sendmsg: No buffer space available
I've tested this with stock 4.0.2.A.0.58 (both rooted and unrooted) and CM7 FXP046.
Has anyone else seen anything similar or have any ideas what can be done about it (I've raised it as a bug with SE [though who knows if they'll even read it] and also on the Free Xperia issue tracker)
I use PEAP too, and I have not experienced problems with 4.0.2.A.0.58
That's very interesting...
Can you post your wpa_supplicant.conf (with ssid, id and password removed of course) to check which settings your connection is using ?
Hello,
I'm new to the forum, and I've tried to get this working on my own, but I'm stumped and am hoping someone out there can help me out.
I just bought a shiny new Nexus 7 tablet and would like to tether it to my Galaxy S III phone. I'm currently on a pay as you go plan on my phone where I have an "internet browsing" plan (via SpeakOut). This appears to limit my data services so I can't tether my tablet to the phone and get internet service on the tablet. Tethering works fine if the phone is connected to WiFi, an option I don't have when I'm on the train, doing my commute to work.
So, I've been trying to get OpenVPN set up at home to route all my mobile traffic through that and get tethering working for the tablet. But, I'm stuck with getting the tablet to route traffic over the VPN tunnel. The phone itself has no problems connecting and using the VPN link, but the tethered tablet (via WiFi or Bluetooth) gets no service. The best I can do is ping the phone and traceroutes go to the phone, but never get past it.
I've tried to read the man pages for OpenVPN, but each example uses its own IP blocks and it makes piecing it all together really confusing. In any case, I'm hoping someone here can help me out with this setup.
Here's my setup:
Code:
HOME LAN NET: 192.168.1.0/24
HOME GATEWAY: 192.168.1.1
OPENVPN NET: 10.8.0.0/24
OPENVPN SERVER
LAN IP: 192.168.1.116
VPN (internal) IP: 10.8.0.1
VPN (external) IP: 10.8.0.2
PHONE
VPN IP: 10.8.0.6
WIFI TETHER NET: 192.168.43.0/24
WIFI TETHER IP: 192.168.43.1
TABLET
WIFI TETHER IP: 192.168.43.150
Here is my OpenVPN server.conf file:
Code:
port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-config-dir /etc/openvpn/ccd
route 192.168.43.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 4
and the client config file for the phone:
Code:
iroute 192.168.43.0 255.255.255.0
Please note, the OpenVPN server is a Mac running OS X 10.7.5 so I use the following script to set up the environment:
Code:
#!/bin/sh
sysctl -w net.inet.ip.fw.enable=1
sysctl -w net.inet.ip.forwarding=1
killall -9 natd
natd -interface en1 -u
ipfw -f flush
ipfw add divert natd ip from any to any via en1
here's my routing table on the server (netstat -rn):
Code:
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.1.1 UGSc 10 31915 en1
10.8/24 10.8.0.2 UGSc 0 0 tun0
10.8.0.2 10.8.0.1 UH 2 0 tun0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 0 765 lo0
169.254 link#5 UCS 0 0 en1
192.168.1 link#5 UCS 3 0 en1
192.168.1.1 98:fc:11:82:7d:4b UHLWIi 11 8799 en1 1171
192.168.1.116 127.0.0.1 UHS 2 153 lo0
192.168.1.120 0:1f:e2:88:af:a9 UHLWIi 0 1678 en1 1165
192.168.1.255 ff:ff:ff:ff:ff:ff UHLWbI 1 98 en1
192.168.43 10.8.0.2 UGSc 0 0 tun0
and the output of ipfw list:
Code:
00100 divert 8668 ip from any to any via en1
65535 allow ip from any to any
Any help with getting this running would be appreciated. Note, NEITHER the phone or tablet is rooted and I'd prefer to keep it that way, if possible. Secondly, I'd prefer to get the tethering set up via Bluetooth, so any guidance on that would be helpful, too. I have no idea how to inspect Bluetooth connectivity, though. Or, if you know a better way to get this tethering to work that doesn't involve OpenVPN I'd love to hear it.
Thanks!
Squeaky
Solution see cross-link
See http://forum.xda-developers.com/showpost.php?p=33749904&postcount=10
Recommended app, i use it to tether all the time
https://play.google.com/store/apps/details?id=com.opengarden.android.MeshClient&hl=en
I have a Pantech Flex and this LG Optimus G. I have this MTU changer app. The app can read the values of RMNet, RMNet_USB and WiFi.
On the Flex, the app reads the MTU value as 1410 on RMNet. RMNet_USB and WiFi values could not be read by the app.
On the OG, the app reads the MTU value at 2000 for RMNet, 1500 for RMNet_USB and WiFi.
On the Flex, browsing on the phone and on tethered devices work flawless.
On the OG, the MTU value for RMNet_USB has to be set to 1464 or lower for browsing to work on the phone. On default values, browsing is not possible. Even if MTU value is changed, tethered devices has browsing issues. Some sites would not load.
Any ideas? fix? Thanks for reading.
roshaun said:
I have a Pantech Flex and this LG Optimus G. I have this MTU changer app. The app can read the values of RMNet, RMNet_USB and WiFi.
On the Flex, the app reads the MTU value as 1410 on RMNet. RMNet_USB and WiFi values could not be read by the app.
On the OG, the app reads the MTU value at 2000 for RMNet, 1500 for RMNet_USB and WiFi.
On the Flex, browsing on the phone and on tethered devices work flawless.
On the OG, the MTU value for RMNet_USB has to be set to 1464 or lower for browsing to work on the phone. On default values, browsing is not possible. Even if MTU value is changed, tethered devices has browsing issues. Some sites would not load.
Any ideas? fix? Thanks for reading.
Click to expand...
Click to collapse
1465 is the breaking point for most HTTPS on AT&T LTE. The recommended MTU size on AT&T is 1430. The default has been 1410 for a while now.
Keep in mind the interface name for each network adapter can vary from android to android. Use terminal emulator on a rooted device; run netcfg to see which is the mobile adapter, then find its MTU value using "ip link list".
u can also push mtu to connecting devices:
http://kaffeine.cf/2016/02/05/forcing-mtu-for-clients-of-androidap/
Hello,
Overall, I need to change the metric of my two network interfaces - rmnet0 (mobile data) and wlan0 (wifi).
I wish that all network traffic goes first from rmnet0, and only then from wlan0.
I have tried to replace the routing rules in the 'main' table (added metrics), but it doesn't seem to affect.
ISSUE WAS SOLVED!
Copied default gateways from routing tables 'rmnet0' and 'wlan0' to table 'local', with appropriate metrics, and added the wireless' local subnet also to table 'local'.
works like a charm!
There are plenty of wifi issue not turning on under this forum, a lot of them were resolved by turning on and off, reload rom etc. But I narrowed down to some question possibly hardware related and need some clarification on settings.
I am playing with a old HP touchpad (I know it has it's own forum) and wifi was working on a older android mod. After a certain time left the machine, I dug it out recently to use it and wifi is "suck at the turning on phase". Android will also goes into a boot loop after 30 sec after boots.
So I went to recovery and looking at the hardware address , numbers and settings and discover few things.
The adaptor name is not the typical eth0, it's call dummy0. Also there is something call "lo" Link encap:Local Loopback under the hardware.
Here are the numbers:
dummy0 Link encap:Ethernet HWaddr DAlB0:37:5E:9F:93
BROADCASTS NOARP MTU:1500 METRIC:1
(follow by a bunch of 0s on RX packets etc etc)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 METRIC:1
(follow by a bunch of 0s on RX packets etc etc)
Now looking at this information, the dummy0 should be the wifi adapter information right? What is broadcast NOARP means?
I have tried to turn on the dummy0 device and it will show UP Broadcast, also turning on ARP (I read somewhere this should be default) and after booting back into android, these settings will revert back to the information above.
Can anyone shine a light on if this is the right place poking at the wifi adapter setting or it's some type of hardware failure causing the wifi not turning on?
The Wi-Fi settings are stored in Android's settings.db located at
/data/data/com.android.providers.settings/databases.
Note that you cannot access it unless you have root.
The SSIDs and passwords of the Wi-Fi networks are stored to
/data/misc/wifi/wpa_supplicant.conf
HTH