LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   wifi wps support on Hotspot settings (https://www.linuxquestions.org/questions/linux-mobile-81/wifi-wps-support-on-hotspot-settings-4175609068/)

vinothkumars 07-03-2017 03:53 AM

wifi wps support on Hotspot settings
 
Hi all,

Android version: Android6
Kernel Version : 3.14.52 (Linux localhost 3.14.52 #25 SMP PREEMPT Thu Jun 1 16:40:05 +0530 2017 armv7l)
Wi-Fi Chip : WL1831
Host processor : X86 linux os(ubuntu 12.04 LTS)
Target Board : IMX6Q sabresd Android Board


I always got error. When i execute hostapd command. I was changed everything in my hostapd.conf file but i got error.
hostapd_cli wps_pbc Failed to connect to hostapd - wpa_ctrl_open: No such file or directory


root@sabresd_6dq:/system/etc/wifi # hostapd_cli
hostapd_cli v2.5-devel-6.0.1 Copyright (c) 2004-2015, Jouni Malinen and contributors

This software may be distributed under the terms of the BSD license. See README for more details.

Could not connect to hostapd - re-trying

How to fix this.?

Thanks,
VinothS,

Jjanel 08-03-2017 07:02 AM

Hello VinothS & Welcome to LQ! Sorry that your post didn't receive a reply.
It might be because it's Android: there's a 'sibling' AndroidQuestions.org here; maybe try that!
(different than AndroidForums.com; I see you tried other sites, without any replys)

I tried searching the error and found a few things, but, since I don't know Android, Idk if relevant.
https://www.raspberrypi.org/forums/v...p?f=36&t=63045
Quote:

Solved it. The command does work, as long as /etc/hostapd/hostapd.conf includes:
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
https://dev.openwrt.org/ticket/9597 & https://translate.google.com/transla...hp%3Fid%3D8762 etc

Maybe you could attach (or post, using CODE tags!) your .conf (at other forums also). Maybe other info but Idk. Best wishes.

AwesomeMachine 08-11-2017 01:53 AM

Try putting this:
Code:

ctrl_interface=/var/run/hostapd
ctrl_interface_group=0

in /etc/hostapd/hostapd.conf


All times are GMT -5. The time now is 09:35 PM.