top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Crating a W-Fi access point on a wifi only device

+2 votes
220 views

Ideally, I need to connect a Wi-Fi only tablet (using a Nexus 10 with Android 4.2 for testing) to an ad-hoc access point, but since that is not possible without an unacceptable rooting & modification of the device to provide the ad-hoc mode that Google refuses to implement, I'm attempting to reverse the connection by establishing a Wi-Fi access point on the Android device and getting the other device to connect ti it instead.

The general method uses reflection to get access to the "setSifiApConfiguration" and "setWifiApEnabled" methods as described in many places including this
http://www.whitebyte.info/android/android-wifi-hotspot-manager-class
however, whilst this successfully sets up an access point I can connect to with another Wi-Fi device (Eg PC), I have not been able to associate a static IP address with the access point or alternatively get DHCP working, with the result whilst the access point is "connected", I have no IP connectivity.

The reflection method is documented by many people, but generally with respect to modifying the access point config on a device usually associated with having a "hot spot" like a phone. The Nexus 10 wifi only tablet doesn't have a "hot spot" feature, presumably since without GSM connectivity, there is usually no point.

If I run my test program, ie the one that establishes an access point but fails as described, on an Android phone instead off the Wi-Fi only tablet, then it indeed does turn on the access point, albeit with the configuration for the "hot spot" rather than the SSID I am trying to program.

Maybe this is just not possible, although I an reluctant to believe that without expert advice. If anybody has got an access point going on a Wi-Fi only ICS or later device, I love to hear about it.

posted May 15, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
I can't remember if we have tested it on the Nexus 10, but our Serval Mesh supports exactly this kind of AP/client fall-back for creating a "2nd-class mesh". Search for Serval Mesh on Play

Similar Questions
+1 vote

What is the use of WiFi HotSpot and what is the difference between WiFi HotSpot and WiFi Direct in device?

+3 votes

I have Ubuntu 12.04 and I can connect to my Android device via USB. I installed MTP support and it works fine, as it seems.

Also, my Ubuntu computer and the Android device is connected to the Internet via WiFi. Is there an easy way to connect them to each other via WiFi for easy file sharing? A step by step instruction would be nice, as I am not even sure where to start.

+1 vote

The Settings application takes care of showing up an interface which helps to connect to a WIFI. Switching off the router will disconnect the phone from WIFI.
Now, on switching the router back on, who takes care of reconnecting to this WIFI automatically? Is it the Settings application or is it done at the framework level?

0 votes

In my Android system, if I want to setup up some network traffic rules sort of like a firewall to disallow certain access points should I use iptables for this. What is the best approach to do something like this?

...