The wlan0 shown down and I dot found the SSID in my laptop… I tried by reading the forum and configured the wpa_supplicant accordingly.
[root@mygw01 ~]# iwconfig
wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
eth0 no wireless extensions.
lo no wireless extensions.
[root@mygw01 ~]# cat /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so:
# INTERFACES="-ieth1 -iwlan0"
INTERFACES="-iwlan0"
# Use the flag "-D" before each driver, like so:
# DRIVERS="-Dwext"
DRIVERS=""
# Other arguments
# -u Enable the D-Bus interface (required for use with NetworkManager)
# -f Log to /var/log/wpa_supplicant.log
# -P Write pid file to /var/run/wpa_supplicant.pid
# required to return proper codes by init scripts (e.g. double "start" action)
# -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d
OTHER_ARGS="-P /var/run/wpa_supplicant.pid"
[root@mygw01 ~]# wpa_cli -iwlan0
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Interactive mode
<3>CTRL-EVENT-SCAN-FAILED ret=-110 retry=1
<3>CTRL-EVENT-SCAN-FAILED ret=-110 retry=1
<3>CTRL-EVENT-SCAN-FAILED ret=-110 retry=1
<3>CTRL-EVENT-SCAN-FAILED ret=-110 retry=1
> [root@mygw01 ~]#
Please help to bring up the wlan0 to access the ssid which i configured
then run wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
to make sure /var/run/wpa_supplicant is there
then run
wpa_cli reconfigure
*please note you will have difficulties if your password has $ in it as it will ignore it and anything that comes after it also I’ve found using wifi on the Raspberry Pi can cause ssh to drop after a few seconds there is a work around but I can’t find it in my notes
NOW THE WLAN0 UP. but i do not found the ssid (myhome) found on the local machine. I want to turn the Pi as wireless AP, is that correct way to do it? or I missing something
In your network config you need to specify the gateway and if your using it as a wifi ap there is some more configuration to do as this will just connect to the wifi not become an access point are you connecting to the network with Ethernet and wanting to then have clients connect to the Raspberry Pi wifi ?