You are not logged in.

#1 2016-07-07 13:35:37

p00h
Member
Registered: 2016-07-07
Posts: 9

Android & Linux deploy wireless issue

I have an Asus Zenfone 2 with Archlinux installation under Linux Deploy.
I would like to deploy the Wi-Fi access point based on that device.

[root@localhost android]# uname -a
Linux localhost 3.10.20-x86_64_moor #1 SMP PREEMPT Thu Aug 20 08:47:39 CDT 2015 x86_64 GNU/Linux
[root@localhost android]# lsmod | grep 802
cfg80211              442555  1 bcmdhd

iw list output containts all necessary modes:

[root@localhost android]# iw list
...
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
...

According to https://wiki.archlinux.org/index.php/so … cess_point manual, I try these steps:

[root@localhost android]# iw dev wlan0 interface add wlan0_sta type managed addr 12:34:56:78:ab:cd
... it works! The interface is being created successfully.

But when I try to:

[root@localhost android]# iw dev wlan0 interface add wlan0_ap  type wds addr 12:34:56:78:ab:ce
command failed: Operation not supported (-95)


At the same time:

[root@localhost android]# iw dev wlan0 scan
... scans and returns results with available networks

Tail of dmesg:

[ 9974.974643] usb 1-1: usb auto-suspend, wakeup 1
[ 9974.989320] hsic_port_suspend s3 wlock unlocked
[ 9975.489446] hub 1-0:1.0: hub_suspend
[ 9975.489506] usb usb1: bus auto-suspend, wakeup 1
[ 9975.489531] ehci-intel-hsic 0000:00:10.0: suspend root hub
[ 9975.509426] ehci-intel-hsic 0000:00:10.0: Port 1 phy low-power mode succeeded
[ 9975.509477] ehci-intel-hsic 0000:00:10.0: Port 0 phy low-power mode succeeded
[ 9975.509568] ehci-intel-hsic 0000:00:10.0: tangier_hsic_runtime_suspend --->
[ 9975.530054] ehci-intel-hsic 0000:00:10.0: Port 1 PHY low-power mode succeeded
[ 9975.530106] ehci-intel-hsic 0000:00:10.0: Port 0 PHY low-power mode succeeded
[ 9975.530160] ehci-intel-hsic 0000:00:10.0: hcd_pci_runtime_suspend: 0
[ 9975.530209] ehci-intel-hsic 0000:00:10.0: tangier_hsic_runtime_suspend <--- retval = 0
[ 9978.618837] ehci-intel-hsic 0000:00:10.0: hsic_wakeup_gpio_irq---> hsic wakeup gpio request irq: 326
[ 9978.618917] ehci-intel-hsic 0000:00:10.0: hsic_wakeup_gpio_irq<----
[ 9978.619027] ehci-intel-hsic 0000:00:10.0: wakeup_work---->
[ 9978.619281] ehci-intel-hsic 0000:00:10.0: tangier_hsic_runtime_resume --->
[ 9978.638490] ehci-intel-hsic 0000:00:10.0: hcd_pci_runtime_resume: 0
[ 9978.638530] ehci-intel-hsic 0000:00:10.0: tangier_hsic_runtime_resume <--- retval = 0
[ 9978.638568] usb usb1: usb auto-resume
[ 9978.638590] ehci-intel-hsic 0000:00:10.0: resume root hub
[ 9978.638624] hub 1-0:1.0: hub_resume
[ 9978.638682] hub 1-0:1.0: port 1: status 0507 change 0000
[ 9978.638839] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0000
[ 9978.658490] usb 1-1: usb auto-resume
[ 9978.698525] ehci-intel-hsic 0000:00:10.0: GetStatus port:1 status 001005 0  ACK POWER sig=se0 PE CONNECT
[ 9978.718455] usb 1-1: finish resume
[ 9978.719833] hsic_port_resume s3 wlock locked
[ 9978.719997] ehci-intel-hsic 0000:00:10.0: reused qh ffff8800739d8380 schedule
[ 9978.720062] usb 1-1: link qh1-0001/ffff8800739d8380 start 0 [2/0 us]
[ 9978.720674] ehci-intel-hsic 0000:00:10.0: reused qh ffff880075312b00 schedule
[ 9978.720716] usb 1-1: link qh8-0001/ffff880075312b00 start 3 [2/0 us]
[ 9978.721860] ehci-intel-hsic 0000:00:10.0: wakeup_work<----
[ 9979.906880] type=1400 audit(1467898210.333:144): avc: denied { syslog_read } for pid=7233 comm="dmesg" scontext=u:r:init:s0 tcontext=u:r:kernel:s0 tclass=system result=0

Of course the Android on its own works as AP without any problems.
Any clues would be greatly appreciated!

Last edited by p00h (2016-07-07 13:40:48)

Offline

#2 2016-07-07 14:38:58

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Android & Linux deploy wireless issue

Note to my fellow moderators:  This phone uses an Atom processor.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-07-07 15:16:08

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Android & Linux deploy wireless issue

ewaller wrote:

Note to my fellow moderators:  This phone uses an Atom processor.

I wonder why it uses a kernel from over 2 years ago?


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#4 2016-07-07 15:28:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Android & Linux deploy wireless issue

Alad wrote:

I wonder why it uses a kernel from over 2 years ago?

Boy, that is a good question.  My initial concern was that this was an ARM architecture question, which we cannot support.

Pooh,  First, I forgot to welcome you to the Arch Linux forums -- welcome smile

So, how does one install Arch under Linux Deploy?  Using the beginner's guide?  Or is there an image that gets installed?  How does one upgrade it? Pacman -Syu?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-07-07 16:29:13

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Android & Linux deploy wireless issue

ewaller wrote:
Alad wrote:

I wonder why it uses a kernel from over 2 years ago?

Boy, that is a good question.  My initial concern was that this was an ARM architecture question, which we cannot support.

Pooh,  First, I forgot to welcome you to the Arch Linux forums -- welcome smile

So, how does one install Arch under Linux Deploy?  Using the beginner's guide?  Or is there an image that gets installed?  How does one upgrade it? Pacman -Syu?

Thank your for your welcome! I'm not familiar with bb codes and quoting yet, so I beg you pardon)
At first, I've been using Arch for a veeeeery long time. But I couldnt manage this issue on my own, so I'm here.

Linux deploy gives me an opportunity to select a distro using the GUI way. It's as easy as pie. And the installation process as well.
It creates an qcow image where my archlinux is stored.
Actually, It creates a container, where the installation is located. All Android's infrastructure is shared with Arch: network interfaces, kernel modules, resources.
So every action I make inside the Arch applies to Android. And vice versa. Of course, there is a master-slave relationship: Android can enable/disable Arch.
I access Arch using SSH: just ssh to zenfone ip and i'm in. And as soon as ssh, i am inside full-featured Archlinux distro. But there is one exception: the environment is chrooted.

Last edited by p00h (2016-07-07 16:30:00)

Offline

#6 2016-07-07 16:31:35

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Android & Linux deploy wireless issue

AFAIK the entire project is possible due to LXC, Linux Containers. So the Linux Deploy uses that kernel feature.

Offline

#7 2016-07-07 16:38:46

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Android & Linux deploy wireless issue

ewaller wrote:
Alad wrote:

I wonder why it uses a kernel from over 2 years ago?

So, how does one install Arch under Linux Deploy?  Using the beginner's guide?  Or is there an image that gets installed?  How does one upgrade it? Pacman -Syu?

There is no need to make an installation from scratch. In a nutshell, the Linux Deploy do it on its own. And yes, I update the system with pacman -Syu

Offline

#8 2016-07-10 07:59:16

alive4ever
Member
Registered: 2016-07-10
Posts: 65

Re: Android & Linux deploy wireless issue

p00h wrote:
[root@localhost android]# iw list
...
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * P2P-client
		 * P2P-GO
		 * P2P-device
...

According to https://wiki.archlinux.org/index.php/so … cess_point manual, I try these steps:

[root@localhost android]# iw dev wlan0 interface add wlan0_sta type managed addr 12:34:56:78:ab:cd
... it works! The interface is being created successfully.

But when I try to:

[root@localhost android]# iw dev wlan0 interface add wlan0_ap  type wds addr 12:34:56:78:ab:ce
command failed: Operation not supported (-95)

From the output of 'iw list', it seems that the wireless module simply doesn't support wds.
You should just specify 'type managed' instead of 'type wds' and hostapd will automatically change it to 'ap' mode as necessary.

Offline

#9 2016-07-10 13:17:51

p00h
Member
Registered: 2016-07-07
Posts: 9

Re: Android & Linux deploy wireless issue

alive4ever wrote:

You should just specify 'type managed' instead of 'type wds' and hostapd will automatically change it to 'ap' mode as necessary.

Thanks alot! I've even had no such idea to try that wat. It worked actually, the interface wlan0_ap with managed type has been created! Trying to investigate more at the moment.

Added a bit later
It works perfectly! Fully operational. It appeared so obvious at last. Big thanks for everyone for your support!

Last edited by p00h (2016-07-10 13:22:10)

Offline

#10 2016-07-12 12:37:57

alive4ever
Member
Registered: 2016-07-10
Posts: 65

Re: Android & Linux deploy wireless issue

p00h wrote:
alive4ever wrote:

You should just specify 'type managed' instead of 'type wds' and hostapd will automatically change it to 'ap' mode as necessary.

Thanks alot! I've even had no such idea to try that wat. It worked actually, the interface wlan0_ap with managed type has been created! Trying to investigate more at the moment.

Added a bit later
It works perfectly! Fully operational. It appeared so obvious at last. Big thanks for everyone for your support!

Glad to see that Arch works on a phone. Just don't forget to mark this thread as solved.

Offline

Board footer

Powered by FluxBB