0

My android version is 6.0.1 and i make this work with WI-Fi Protected Setup (WPS) for that i followed some instruction. I was executed some commands before that i enabled the hotspot in my phone. The hotspot working fine. But, the commands are not executed properly.​

root@sabresd_6dq:/ # **hostapd_cli**
hostapd_cli v2.5-devel-6.0.1
Copyright (c) 2004-2015, Jouni Malinen <[email protected]> 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**
Rui F Ribeiro
  • 55,929
  • 26
  • 146
  • 227
VINOTHKUMAR S
  • 53
  • 3
  • 7
  • See the [README-WPS](https://github.com/cucumber-tony/hostap/blob/master/hostapd/README-WPS) – GAD3R Jul 12 '17 at 13:22

2 Answers2

0

To be able to connect with the hostapd_cli tool you need to give it the place where to find the socket. Default path to the socket is /var/run/hostapd. On Android 5.1.1 this path is /data/misc/wifi/hostapd

So the command I use is

hostapd_cli -p /data/misc/wifi/hostapd all_sta
Tomy
  • 1
-1

The command is:

hostapd_cli  wps_pbc
Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
VKS
  • 21
  • 1