configuring hotspot on androix-x86

869 views
Skip to first unread message

praveera M

unread,
Sep 16, 2014, 4:59:29 AM9/16/14
to andro...@googlegroups.com
hi,

i am trying to configure my hardware (Intel NUC DN2820FYKH) for Hotspot functionality in Android-x86, i dont find the setting for it. I have tried a little to configure it. but dint succeed. May i please know the reason for not implementing it, i mean whether it is possible to implement it or not. if it is possible please help me get started with it.

I couldn't find any related discussions in this group or anywhere else.

Some useful info of my hardware:

Android-x86 running on Intel NUC- celeron processor 64 bit, wifi hardware supports AP mode, iwlwifi driver in use.

Thanks,

Praveera

Antony Stone

unread,
Sep 16, 2014, 6:15:05 AM9/16/14
to andro...@googlegroups.com
On Tuesday 16 September 2014 at 10:59:29 (EU time), praveera M wrote:

> hi,
>
> i am trying to configure my hardware (Intel NUC DN2820FYKH) for Hotspot
> functionality in Android-x86, i dont find the setting for it.

What do you mean by "Hotspot functionality"?

Can your machine connect to your own wireless network?

> I have tried a little to configure it. but dint succeed. May i please know
> the reason for not implementing it, i mean whether it is possible to
> implement it or not. if it is possible please help me get started with it.

Can you give us an example of another Android device which supports what
you're trying to do, and tell us where it's found in the menus?


Antony.

--
"640 kilobytes (of RAM) should be enough for anybody."

- Bill Gates

Please reply to the list;
please *don't* CC me.

Ralf ranfyy

unread,
Sep 16, 2014, 6:59:19 AM9/16/14
to andro...@googlegroups.com, antony...@android.open.source.it

Am Dienstag, 16. September 2014 12:15:05 UTC+2 schrieb Antony Stone:
... 
Can you give us an example of another Android device which supports what
you're trying to do, and tell us where it's found in the menus?

He means this:
Settings | More ... | Tethering &  portable hotspot | portable Wi-Fi hotspot

Maybe it is only visible when a mobile network can be used?


Antony.

 

Antony Stone

unread,
Sep 16, 2014, 7:17:21 AM9/16/14
to andro...@googlegroups.com
On Tuesday 16 September 2014 at 12:59:19 (EU time), Ralf ranfyy wrote:

> Am Dienstag, 16. September 2014 12:15:05 UTC+2 schrieb Antony Stone:
> ...
>
> > Can you give us an example of another Android device which supports what
> > you're trying to do, and tell us where it's found in the menus?
>
> He means this:
> Settings | More ... | Tethering & portable hotspot | portable Wi-Fi hotspot

Aha - that!

> Maybe it is only visible when a mobile network can be used?

Nope.

I just checked my Android tablet (no ethernet, no SIM slot) and it doesn't
have the menu entry at all.

I just turned off the SIM card on my Android phone, and the menu entry remains
available, and can even be turned on (although of course it doesn't actually
work without the SIM card being available).

I would have thought on an x86 machine, one could use ethernet for the data
link (this does work on x86) and (so long as the WiFi chipset supports it) the
machine could then act as a hotspot / access point.


Antony.

--
In Heaven, the beer is Belgian, the chefs are Italian, the supermarkets are
British, the mechanics are German, the lovers are French, the entertainment is
American, and everything is organised by the Swiss.

In Hell, the beer is American, the chefs are British, the supermarkets are
German, the mechanics are French, the lovers are Swiss, the entertainment is
Belgian, and everything is organised by the Italians.

praveera M

unread,
Sep 17, 2014, 1:17:26 AM9/17/14
to andro...@googlegroups.com, antony...@android.open.source.it
Hotspot functionality means I am trying to configure my Android-X86 device as wireless Access Point.

Yes. My machine has no problem in connecting to other APs.

praveera M

unread,
Sep 17, 2014, 1:25:30 AM9/17/14
to andro...@googlegroups.com
yea.. i meant the same..


Settings | More ... | Tethering &  portable hotspot | portable Wi-Fi hotspot



praveera M

unread,
Oct 9, 2014, 3:24:42 AM10/9/14
to andro...@googlegroups.com, antony...@android.open.source.it
Finally i am able to build the hostapd(from wpa_supplicant). I am getting the executable binaries, hostapd and hostapd_cli. hostapd_cli is getting packaged into final iso generated, but not the hostapd. I dont know how to add that into the package. Could please someone help me in this regard.What are the changes i should be making to include this binary. i have no UI/or Java files. Just the command line utility.

thanks in advance. 

Chih-Wei Huang

unread,
Nov 1, 2014, 5:49:16 AM11/1/14
to Android-x86

You may add hostapd to PRODUCT_PACKAGES of packages.mk.

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.

praveera M

unread,
Nov 4, 2014, 8:00:10 AM11/4/14
to andro...@googlegroups.com
Thanks Chih-wei-huang

I got the hotspot working on my machine..:)  If anyone is interested in the work, please let me know. I will post all the necessary changes to be made.

Antony Stone

unread,
Nov 4, 2014, 8:23:13 AM11/4/14
to andro...@googlegroups.com
On Tuesday 04 November 2014 at 14:00:09 (EU time), praveera M wrote:

> Thanks Chih-wei-huang
>
> I got the hotspot working on my machine..:) If anyone is interested in the
> work, please let me know. I will post all the necessary changes to be made.

Please do!


Antony.

--
This sentence contains exactly threee erors.

praveera M

unread,
Nov 7, 2014, 1:14:45 AM11/7/14
to andro...@googlegroups.com
Changes to be made for configuring hotspot..!!
This doesn't contain the UI, but only command line..

1. /$source/Device/generic/x86/Boardconfig.mk

BOARD_HOSTAPD_DRIVER ?= NL80211  
BOARD_HOSTAPD_PRIVATE_LIB := private_lib_driver_cmd

2. $source/build/core/product.mk

Add BOARD_HOSTAPD_DRIVER \ to _product_stash_var_list += \

3. $source/system/netd

Edit Android.mk with

ifneq ($(BOARD_HOSTAPD_DRIVER),)
  LOCAL_CFLAGS += -DHAVE_HOSTAPD
endif

4. $source/system/netd
 Changes in SoftapController.cpp and SoftapController.h (Please find the attched files).

Hope with these changes and a proper hostapd.conf file you should be able to run hotspot from terminal.
Make sure to run DHCP server before running hostaps, so that your device can assign addresses to connecting device.
Dnsmasq will do the thing.

If any one configured the UI please post the required changes.

Thanks...:)


               

On Tuesday, September 16, 2014 2:29:29 PM UTC+5:30, praveera M wrote:
SoftapController.h
TetherController.cpp

teddyj...@gmail.com

unread,
Dec 17, 2014, 3:40:41 AM12/17/14
to andro...@googlegroups.com

Hi,
By which Interface, did your device connects to the Internet while acting as AP. Is it though Ethernet or any other means?
Reply all
Reply to author
Forward
0 new messages