xs2ahmed
Posts: 7
Joined: Mon May 02, 2016 9:29 am

ifconfig command is not showing wifi

Wed Aug 07, 2019 6:59 pm

Hi,
I have following version on pi 3

Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch

and I have set it to boot to terminal

when it boots I see that that wifi is not connected, I can only ssh from ethernet lan connection

when I type ifconfig command it only shows eth0 and lo interfaces, no wifi wlan0

any idea what could be wrong

sudo ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.6 netmask 255.255.255.0 broadcast 192.168.10.255
inet6 fe80::2a36:9cc7:5d60:108b prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:7c:4d:4d txqueuelen 1000 (Ethernet)
RX packets 2632 bytes 1192005 (1.1 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2417 bytes 340280 (332.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 1157 bytes 431857 (421.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1157 bytes 431857 (421.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

DirkS
Posts: 10371
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: ifconfig command is not showing wifi

Wed Aug 07, 2019 7:30 pm

Is wifi disabled in config.txt?
Look for

Code: Select all

dtoverlay=pi3-disable-wifi

xs2ahmed
Posts: 7
Joined: Mon May 02, 2016 9:29 am

Re: ifconfig command is not showing wifi

Wed Aug 07, 2019 8:51 pm

DirkS wrote:
Wed Aug 07, 2019 7:30 pm
Is wifi disabled in config.txt?
Look for

Code: Select all

dtoverlay=pi3-disable-wifi
No I can not find the above line anywhere in the config.txt

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
# sdtv_mode=3



#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

User avatar
DougieLawson
Posts: 39301
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: ifconfig command is not showing wifi

Wed Aug 07, 2019 8:58 pm

What does ifconfig -a show?

Try
sudo -s
rmmod brcmfmac
rmmod brcmutil
rmmod cfg80211
modprobe brcmfmac
exit
dmesg
ifconfig -a
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Andyroo

Re: ifconfig command is not showing wifi

Wed Aug 07, 2019 10:25 pm

Have you configured the WiFi?

Can you post your wpa_supplicant.conf with the password redacted?

I have a 3B that refuses to show the WiFi at all without this file configured!

xs2ahmed
Posts: 7
Joined: Mon May 02, 2016 9:29 am

Re: ifconfig command is not showing wifi

Wed Aug 07, 2019 11:05 pm

Thank you everyone I have resolved it,

I started the user interface using startx and from there I checked the wifi was disabled, so I enabled it from the graphical user interface,

The after reboot it boots to terminal again and things are working normal, wlan0 now does show up in the ifconfig.

Even Though sorted it, I still have no idea how I could have resolved it from the terminal alone.

Return to “Troubleshooting”