LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   RPi3 WiFi issues with onboard chip (https://www.linuxquestions.org/questions/slackware-arm-108/rpi3-wifi-issues-with-onboard-chip-4175596883/)

slackist 01-05-2017 07:55 PM

RPi3 WiFi issues with onboard chip
 
The onboard wifi seemed to die a while back after I used the rpi-update utility so I stopped using it and just stuck with the reliable Slackware-ARM+cabled ethernet but I'd like to resolve it.

On boot it throws up the following messages that seem to be related to the problem:

Code:

[    4.461534] usbcore: registered new interface driver brcmfmac
[    4.698592] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    4.729301] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.913421] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.729301] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.913421] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    4.920253] cfg80211: World regulatory domain updated:
[    4.926905] cfg80211:  DFS Master region: unset
[    4.927044] cfg80211:  (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    4.940538] cfg80211:  (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    4.947310] cfg80211:  (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    4.954525] cfg80211:  (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    4.961176] cfg80211:  (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    4.968485] cfg80211:  (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    4.975378] cfg80211:  (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    4.981916] cfg80211:  (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    4.988559] cfg80211:  (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

I've tried many google tips about setting the reg domain etc, tried messing with rc.inetd and a host of other things.

Network mode on my router is 802.11b/g/n
Domain is China
Channel is 7
Frequency bandwidth is 20MHz/40MHz

I have tried wpa_supplicant with everything I can find to resolve it (including turning off all authentication) and nothing seems to work. I have tried making rc.firewall not start at boot but no luck.

Have I fried the onboard wifi or am I just being thick as usual?

business_kid 01-06-2017 03:58 AM

I gather you upgraded. Does it work if you downgrade it?

glorsplitz 01-06-2017 08:43 AM

Your issue is wifi is just not working? Searching for "not a ISO3166 code" there's this

Code:

sudo iwconfig wlan0 power off
On a laptop I commented rate to let it default and got wifi to work better.

Penthux 01-06-2017 11:38 AM

Quote:

Originally Posted by slackist (Post 5651020)
Have I fried the onboard wifi or am I just being thick as usual?

Most probably "No", and certainly "No". :D

The RPi3 onboard WNIC is tricky at the best of times. I've stopped using it because it's just cheap and unreliable, in my experience. So without intentionally dancing around your question/problem I'd advise you to get hold of the easiest USB wireless adapter you can lay your hands on and use that instead. It's more than likely going to serve you better. However, if you don't have access to one of these, take a look at alienBOB's pretty comprehensive networking guide which might help to point you in the right direction:

http://alien.slackbook.org/dokuwiki/...eless_networks

Also, there's the following SARPi page which you might find useful:

http://sarpi.fatdog.eu/index.php?p=wireless-nic

Hope it helps. :cool:

titopoquito 01-08-2017 04:18 PM

Just a shot in the dark: If you have installed some HAT onto the Raspberry Pi there can be interferences. Lately I tried an Sound Hat (DAC) for example, but that one had reportedly a broken design, so that two parts of it are electro-magnetical interfering with the Raspberry's Wifi chip. So if you have installed any additional hardware part please be sure to test Wifi also without it.

slackist 01-09-2017 07:08 AM

Quote:

Originally Posted by business_kid (Post 5651132)
I gather you upgraded. Does it work if you downgrade it?

Nope, still no joy

Quote:

Originally Posted by glorsplitz (Post 5651221)
Your issue is wifi is just not working? Searching for "not a ISO3166 code" there's this

Code:

sudo iwconfig wlan0 power off

I've been through the Raspi forums and nothing suggested there works for me

Quote:

Originally Posted by Penthux (Post 5651296)
<snipped>

The RPi3 onboard WNIC is tricky at the best of times. I've stopped using it because it's just cheap and unreliable, in my experience. So without intentionally dancing around your question/problem I'd advise you to get hold of the easiest USB wireless adapter you can lay your hands on and use that instead. It's more than likely going to serve you better.

I've been through aliensBOB's excellent guide several times and I think I've got everything in the right place but the thing still won't connect. I've got an old wifi dongle and that will connect fine but it's slow so I think I'll just stick with wired and give up for now. It seems that somehow broadcom and my router just can't get along.

The most frustrating part is that iwlist scan shows the router with the correct ESSID but the %^&$$ thing just won't associate with it.

Quote:

Originally Posted by titopoquito (Post 5652185)
Just a shot in the dark: <snip>

Thanks for that, an intriguing idea. I don't have a HAT on it, just a ribbon cable to a T-cobbler. I disconnected it and it didn't make any difference unfortunately.

interndan 01-09-2017 12:47 PM

I don't know if this is any help for you since I don't have a RPI3, but I have found that installing wicd from extra and letting it handle wireless connections with broadcom cards works best. I never had any luck with networkmanager or manual configs. I also found after an upgrade that the newest drivers from broadcom (even though they are supposed to be compatible) didn't work consistently with my card. I had to download and build an older driver version to regain consistent operation.

SCerovec 01-12-2017 04:14 PM

1. aircrack-ng
2. kismet
3. wireshark
and try capture and analyze what Pi "hears" and what it "says" to the AP.

I had quite few times "almost" working drivers since 2k5 (PCI-ACX) over a wide variety if chips sometimes it's just the driver (kernel update and maybe even a patch only helps).

Not that I solved anything, but a point to an viable direction?

business_kid 01-13-2017 04:46 AM

I'm surprised that you couldn't restore function with a return to what was (I presume) a working system. What have you installed now?
When I have this issue, I try and narrow it down. Booted up & wifi started, post the output of these run one at a time in the given order (presuming wlan0 is your wifi device)
Code:

ifconfig wlan0 up
iwconfig wlan0
ping -c3 -I wlan0 <IP of your router, e.g. 192.168.1.1>
iwlist wlan0 scan

If these read ok, you're down to dhcp & wpa_supplicant. If they don't, it's probably the driver.

slackist 01-13-2017 08:52 AM

Thanks for those.

I've just (yesterday) had a cataract operation so it'll be a little while until I get back to trying this. I'll will post back when I start up trying again.

Cheers.

business_kid 01-13-2017 10:09 AM

My sympathies. I know about life's limitations. Get well soon.

slackist 02-06-2017 08:21 PM

Meh, I am convinced it's broken now or the firmware is simply not compatible with my router.

I put raspian onto a card and then openelec and neither can connect to my WiFi. Even if I fiddle with the router settings to turn off all security my (old) Android phone will happily connect, as will my Mrs' iPhone, an iMac we have in the house, her work laptop which is on Win10, an Android tablet and an ancient SMC EZConnect g wifi dongle.

Thanks to all of you that tried to help but I think it is a hardware issue, probably caused by me shorting out something or other while I play around with my breadboard!

business_kid 02-07-2017 03:43 AM

If you run through post #9 we might be able to call it for you.

justwantin 02-08-2017 12:51 AM

Darn hot out there and allot still to do but came in to cool off and saw this thread and thought I'd throw in my two cents/pence/whatever. This is my drill.

First check if your system sees a wifi something by as root running iwconfig if iwconfig returns with a wlan0 or so your system has loaded a module for your wireless device/chip and a wirless device wlanX has be created. If there is no wlanX then your wireless chip device has not been recognised and a device created.

If it has been created then here is what I would do if it was wlan0:

iwconfig wlan0 essid myessid # and if the essid is broken by a space put it in quotes

Then run iwconfig wlan0 to see what you get. Here's what I have out in the garden shed:
Code:

root@bpi9:/home/rick# iwconfig wlan0
wlan0    IEEE 802.11bg  ESSID:"gerrygarcia"  Nickname:"rtl_wifi"
          Mode:Managed  Frequency:2.462 GHz  Access Point: A0:63:91:74:C0:C4 
          Bit Rate:54 Mb/s  Sensitivity:0/0 
          Retry:off  RTS thr:off  Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****  Security mode:open
          Power Management:off
          Link Quality=68/100  Signal level=58/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

Now I would run ifconfig wlan0 up there should be nothing returned in the terminal and if so try to see what's about with iwlist wlan0 scan. If you see something returned indicating there is life out there, ie. your lan and anything else within range.

Ok you can now configure your wireless network connection using wicd very easily if you are GUI or an ssh X session after installing wicd as long as /etc/rc.d/rc.inet1.conf is clean and /etc/rc.d/rc.networkmanager is chmod -x and /etc/rc.d/rc.wicd is chmod +x

Maybe that will help. If you are working in a terminal you can use wicd-curses which is what I do when I can but there is a problem with the packaged wicd/curses/netentry_curses.pi in slackwarearm that will stuff things up. I have one that works but I am in remiss and having not yet submitted a patch and after this post I suppose I better learn how to make a diff!

slackist 02-08-2017 10:02 AM

Quote:

Originally Posted by business_kid (Post 5666401)
If you run through post #9 we might be able to call it for you.

I apologise business_kid for not responding to post #9, here are the results of the tests, I did issue ifconfig eth0 down and /etc/rc.d/rc.firewall stop before running the tests.
Code:

[root@darkmoon:~] # iwconfig wlan0
wlan0    IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=31 dBm 
          Retry short limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:on


[root@darkmoon:~] # ping -c3 -I wlan0 192.168.1.1
ping: Warning: source address might be selected on device other than wlan0.
PING 192.168.1.1 (192.168.1.1) from 192.168.1.19 wlan0: 56(84) bytes of data.
^C
--- 192.168.1.1 ping statistics ---
0 packets transmitted, 0 received
[root@darkmoon:~] # iwlist wlan0 scan

wlan0    Scan completed :
          Cell 01 - Address: 18:A3:E8:23:67:10
                    Channel:7
                    Frequency:2.442 GHz (Channel 7)
                    Quality=27/70  Signal level=-83 dBm 
                    Encryption key:on
                    ESSID:"House1000"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 80ms ago
                    IE: Unknown: 0009486F75736531303030
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030107
                    IE: Unknown: 050400010100
                    IE: Unknown: 2A0104
                    IE: Unknown: 32043048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0600E04C020160
                    IE: Unknown: DD180050F204104A00011010440001021049000600372A000120

For justwantin:

Code:

[root@darkmoon:~] # iwconfig wlan0
wlan0    IEEE 802.11bgn  ESSID:"House1000" 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=31 dBm 
          Retry short limit:7  RTS thr:off  Fragment thr:off
          Encryption key:off
          Power Management:on

In case this helps here is my wpa_supplicant.conf file with a bit removed:

Code:

[root@darkmoon:~] # cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
        scan_ssid=0
        ssid="House1000"
        proto=WPA WPA2
        key_mgmt=WPA-PSK WPA-EAP
        pairwise=CCMP TKIP
        group=CCMP TKIP
        psk=*removed*
}

And for extra info:
Code:

[root@darkmoon:~] # wpa_supplicant -Dnl80211 -i wlan0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="House1000" auth_failures=1 duration=10 reason=CONN_FAILED
^Cnl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
p2p-dev-wlan0: CTRL-EVENT-TERMINATING
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING


business_kid 02-09-2017 04:18 AM

Right, your wlan0 seems to be sitting there but not joining the network. The driver etc looks ok so far. You're down to wpa_supplicant, protocols, & dhcp.
1. Os the psk in wpa_supplicant.conf passed through wpa_passpgrase? You get an output to paste into wpa_supplicant.conf
Code:

bash-4.3$ wpa_passphrase My_ESSID My_Password
network={
        ssid="My_ESSID"
        #psk="My_Password"
        psk=116c4b8b7dc9419a4f2a7e12c80e721ccd7650942b17781f79e38fc9632e04fc
}

Try invoking wpa_supplicant by hand. Kill any wpa_supplicant & dhcpcd or dhclient processes, and of course stop networkmanager, which I find to be NetworkMismanager. Then run
Code:

wpa_supplicant -c/path/to/wpa_supplicant.conf -i wlan0 -Dwext >> some.log && dhcpcd wlan0 >>some.log
You can of course just use dhclient instead of dhcpcd if that's installed. some.log might be interesting. It stops errors going to /dev/null anyhow.

slackist 02-09-2017 10:01 AM

Quote:

1. Os the psk in wpa_supplicant.conf passed through wpa_passpgrase? You get an output to paste into wpa_supplicant.conf
Yes, I snipped the full psk out just in case my neighbours grow a brain but it was generated by wpa_passphrase.

Quote:

Try invoking wpa_supplicant by hand. Kill any wpa_supplicant & dhcpcd or dhclient processes, and of course stop networkmanager, which I find to be NetworkMismanager. Then run
NetworkMismanager is not installed as I also find it to be a PITA, I did run the command you posted. As usual dhcpd overwrote my resolv.conf with useless cruft.

Code:

[root@darkmoon:log] # wpa_supplicant -c/etc/wpa_supplicant.conf -i wlan0 -Dwext >> /var/log/bk.log && dhcpcd wlan0 >> /var/log/bk.log
I was running a tail -f on the syslog:
Code:

Feb  9 22:22:05 darkmoon kernel: [95066.510646] brcmfmac: brcmf_cfg80211_escan: Connecting: status (3)
Feb  9 22:22:05 darkmoon kernel: [95066.510668] brcmfmac: brcmf_cfg80211_scan: scan error (-11)
Feb  9 22:22:17 darkmoon kernel: [95078.184872] brcmfmac: brcmf_cfg80211_escan: Connecting: status (3)
Feb  9 22:22:17 darkmoon kernel: [95078.184895] brcmfmac: brcmf_cfg80211_scan: scan error (-11)
Feb  9 22:22:29 darkmoon kernel: [95089.857325] brcmfmac: brcmf_cfg80211_escan: Connecting: status (3)
Feb  9 22:22:29 darkmoon kernel: [95089.857348] brcmfmac: brcmf_cfg80211_scan: scan error (-11)

And /var/log/messages:
Code:

Feb  9 22:22:05 darkmoon kernel: [95066.279479] brcmfmac: power management disabled
Feb  9 22:22:05 darkmoon kernel: [95066.279977] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Feb  9 22:24:31 darkmoon dhcpcd[23270]: wlan0: adding address fe80::9f6d:a6c9:2c45:3095
Feb  9 22:24:31 darkmoon dhcpcd[23270]: wlan0: waiting for carrier
Feb  9 22:24:31 darkmoon kernel: [95212.014419] brcmfmac: power management disabled
Feb  9 22:24:31 darkmoon kernel: [95212.017674] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Feb  9 22:25:01 darkmoon dhcpcd[23270]: dhcpcd exited

And the log file generated:

Code:

[root@darkmoon:log] #cat /var/log/bk.log
Successfully initialized wpa_supplicant
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlan0: Association request to the driver failed
wlan0: Authentication with 18:a3:e8:23:67:10 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=18:a3:e8:23:67:10 reason=3 locally_generated=1
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlan0: Association request to the driver failed
wlan0: Authentication with 18:a3:e8:23:67:10 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=18:a3:e8:23:67:10 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="House1000" auth_failures=1 duration=10 reason=CONN_FAILED
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="House1000"
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlan0: Association request to the driver failed
wlan0: Authentication with 18:a3:e8:23:67:10 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=18:a3:e8:23:67:10 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="House1000" auth_failures=2 duration=23 reason=CONN_FAILED
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="House1000"
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlan0: Association request to the driver failed
wlan0: Authentication with 18:a3:e8:23:67:10 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=18:a3:e8:23:67:10 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="House1000" auth_failures=3 duration=46 reason=CONN_FAILED
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="House1000"
wlan0: Trying to associate with 18:a3:e8:23:67:10 (SSID='House1000' freq=2442 MHz)
ioctl[SIOCSIWFREQ]: Operation not supported
wlan0: Association request to the driver failed
wlan0: Authentication with 18:a3:e8:23:67:10 timed out.
wlan0: CTRL-EVENT-DISCONNECTED bssid=18:a3:e8:23:67:10 reason=3 locally_generated=1
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="House1000" auth_failures=4 duration=77 reason=CONN_FAILED
ioctl[SIOCSIWSCAN]: Resource temporarily unavailable
wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1
wlan0: CTRL-EVENT-TERMINATING
wlan0: adding address fe80::9f6d:a6c9:2c45:3095
wlan0: waiting for carrier
dhcpcd exited


business_kid 02-09-2017 01:44 PM

On that output, the software looks ok, and you have driver or firmware trouble. One thing to try is that there's another -D option for wpa_supplicant, e.g. nl802.11. That's easy.

The messier bit is getting a driver & firmware your system agrees with, especially as you're Arm based & not x86. I think there's a big endian/little endian thing going on between those 2.

If that doesn't sort it, and you get drivers that work for others & not you, we might end up calling the hardware dud. Ebay has usb wifi modules that plug into usb & provide wifi. I think you need the usbnet kernel module. I got one for the RasPi 1 I had, and it worked like a dream.

justwantin 02-09-2017 03:40 PM

@ slackist,
Sorry, been busy, I note that your system sets up wlan0 and that you have setup your essid, After that have you run ifconfig wlan0 up and then iwlist wlan0 scan? If you did and get a list of networks including your own then may I suggest that you forget about wpa supplicant et.al. and try using wicd. Wicd does not require you to have wpa supplicant configured, nor does network manager for that matter, but I find wicd easier to use. Just be sure that you have removed any entries you may have made in /etc/rc.d/rc.inet1.conf or wicd will not work. I never bothered with wpa supplicant so I'm not sure what you should do with that but probably it too would need any configs to be removed.

slackist 02-09-2017 07:47 PM

Quote:

Originally Posted by business_kid (Post 5667980)
On that output, the software looks ok, and you have driver or firmware trouble. One thing to try is that there's another -D option for wpa_supplicant, e.g. nl802.11. That's easy.

The messier bit is getting a driver & firmware your system agrees with, especially as you're Arm based & not x86. I think there's a big endian/little endian thing going on between those 2.

If that doesn't sort it, and you get drivers that work for others & not you, we might end up calling the hardware dud. Ebay has usb wifi modules that plug into usb & provide wifi. I think you need the usbnet kernel module. I got one for the RasPi 1 I had, and it worked like a dream.

I've tried the -Dnl80211 switch (the output is in the last bit of post #15) and as mentioned upthread I have an old WiFi dongle that works fine (when it's plugged in or removed the system loads and unloads a driver as reported by lsmod and /var/log/messages and wpa_supplicant works with it as wlan1) but it's so big that it effectively takes up 2 of the 4 USB ports, I know I could stick it into a USB hub but I've already got cables all over my desk plus it is slow being so old, hence the efforts to get the onboard WiFi working!

Quote:

Originally Posted by justwantin (Post 5668040)
@ slackist,
Sorry, been busy, I note that your system sets up wlan0 and that you have setup your essid, After that have you run ifconfig wlan0 up and then iwlist wlan0 scan? If you did and get a list of networks including your own then may I suggest that you forget about wpa supplicant et.al. and try using wicd. Wicd does not require you to have wpa supplicant configured, nor does network manager for that matter, but I find wicd easier to use. Just be sure that you have removed any entries you may have made in /etc/rc.d/rc.inet1.conf or wicd will not work. I never bothered with wpa supplicant so I'm not sure what you should do with that but probably it too would need any configs to be removed.

I’ve tried wicd via wicd-curses and the Xfce4 panel applet several times with all the rc.inet1.conf references commented out and wpa_supplicant.conf renamed but it rolls around trying to connect and then gives up with a 'not connected' message to my AP.

justwantin 02-09-2017 08:54 PM

This may be a wicd configuration problem.

That happened to me on an install to a bananapro. I had first gotten the pro up and running with a wired connection to my lan. When I then tried to configure to wireless with configs known to be correct it just rolled around. It turned out that wireless was turned off in wicd. I was able to connect once I turned it on. I was in an x session via ssh when I did it and don't remember exactly how now. Here's a link that might give you some ideas http://www.linuxquestions.org/questi...ff-4175475544/ I remember at the time I found some other references to this problem and solution so have a look.

SCerovec 02-10-2017 02:02 AM

May I chime in some?
tcpdump can rely some of the 802 frame headers
Also aircrack-ng might help a bit
If not, alone the RTFMing of the respective chapters of said apps might shed a light of the culprits?

IIRC the problem is the immature driver/firmware of the wifi MAC, so reading the module source might help even

But before anything:
/sbin/modinfo <module of ours>
Would yield a clue?

yustin 02-13-2017 05:39 AM

maybe this solves your problem ....

https://debianforum.de/forum/viewtop...142749#p935640

# /etc/modprobe.d/regdomain.conf
options cfg80211 ieee80211_regdom=[your_country_code]

have phun :)

business_kid 02-13-2017 02:13 PM

I'm not confident that will sort it as his wifi is puking on normal setup instructions. At the risk of repeating myself from post #20
Quote:

On that output, the software looks ok, and you have driver or firmware trouble.

SCerovec 02-14-2017 04:38 AM

Reminds me of the days of ACX100 and how it got from a patch to mainline :)

My bet: kernel side (=not ready yet).

Remedy: try upgrade kernel until it works?

adamsimms 11-21-2017 01:40 PM

I believe I'm having a very similar issue. My Raspberry Pi was connecting to a WiFi network for months without issue. About a week ago it suddenly stopped and will not associate with the AP.

`iwlist wlan0 scan` shows the network is available:

Code:

Cell 02 - Address: D6:D9:19:9A:00:5A
                  Channel:1
                  Frequency:2.412 GHz (Channel 1)
                  Quality=56/70  Signal level=-54 dBm 
                  Encryption key:on
                  ESSID:"DiscoPro"
                  Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                            11 Mb/s; 12 Mb/s; 18 Mb/s
                  Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                  Mode:Master
                  Extra:tsf=0000000000000000
                  Extra: Last beacon: 10650ms ago
                  IE: Unknown: 0008446973636F50726F
                  IE: Unknown: 010882848B0C12961824
                  IE: Unknown: 030101
                  IE: Unknown: 050400010000
                  IE: Unknown: 0706555320010B1E
                  IE: Unknown: 2A0100
                  IE: Unknown: 32043048606C
                  IE: Unknown: 2D1A2C0101FF00000000000000000000000000000000000000000000
                  IE: Unknown: 3D1601000000000000000000000000000000000000000000
                  IE: IEEE 802.11i/WPA2 Version 1
                      Group Cipher : CCMP
                      Pairwise Ciphers (1) : CCMP
                      Authentication Suites (1) : PSK
                  IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00


/etc/network/interfaces contents:

Code:

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
wireless-power off

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf


/etc/wpa_supplicant/wpa_supplicant.conf contents:

Code:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="DiscoPro"
        psk="XXXX"
}


When I run `wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf` I receive this error:

Code:

Successfully initialized wpa_supplicant
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="DiscoPro" auth_failures=1 duration=10 reason=CONN_FAILED

Any suggestions would be appreciated.

business_kid 11-22-2017 05:10 AM

If the config hasn't changed since the problems began, I would leave them. They look believeable.

What else happened around the same time as the problems? Kernel update? Software update? That's where to look. You also can specify more authentication methods than just ccmp. I believe one of them is going out (don't remember which), but you can hedge your bets there.

If that fails, I would start reinstalling packages, and finally suspect hardware.

adamsimms 11-22-2017 08:10 AM

Thanks, @business_kid.

It could have been a software and/or kernel update. I try to keep the PI updated.

What packages do you suggest that I reinstall?

Can you point me to where I could learn about other authentication methods other than ccmp?

business_kid 11-22-2017 12:35 PM

I would first disable WPA altogether and see if you can connect with dhcpcd. If you succeed, that clears the rest of it. Reinstall WPA supplicant


Man wpa_supplicant.conf provides info.

uwedamm 11-22-2017 02:46 PM

Hello together,
maybe offtopic, but just a really stupid idea, which should be checked: Move the Raspberry more near to the Router

Rationale:
Some years in the past I got an issue with RPI2 and USB-WLANstick, I dont remember much details, but after hours of trying to connect and finding out the issue I fixed it as follows:

Setup was:
RPI2, WLAN accesspoint configured
S2-smartphone tries to connect

Network (SSID of the RPI) showed up on the smartphone, all seemed fine, but from my seat (3m away from the router) I got always "Authentication failed".
Once moving the Smartphone near to the Raspberry all worked fine ...:-)

just an idea, ignore if it does not help

Good job, thank you really much for your deep analysis above! It gave me some more hints how to analyze issues with the WLAN!

best regards
Uwe
PS: I currently have got the same issue like above, in a few days I will move the RPI setup to the 1st floor, where the router resides ... maybe it helps for me :-)

glorsplitz 11-22-2017 08:06 PM

@adamsimms, I have 2 rpi3 running current all up to date no connectivity issues.

What raspberry pi versions? What slackware versions?

adamsimms 11-23-2017 08:47 AM

@glorsplitz It's a Raspberry Pi 3 running Jessie. Latest apt-get update && apt-get upgrade & apt-get dist-upgrade have been performed.

@business_kid I'm not sure if this is possible, but would I be able to hire you to help me troubleshoot this issue further?

business_kid 11-23-2017 01:13 PM

There's no need to hire - this is a forum. You just need a little familiarity with this stuff. I found it a nightmare when I started. Here's a few commands to check.
<sudo iwconfig -a> lists all network devices. Presuming yours is wlan0
<sudo iwlist wlan0 scan |grep -C3 Quality> Should show you all local wifi points like this with channel numbers and quality
Code:

sudo iwlist wlan0 scan |grep -C3 Quality
    Cell 17 - Address: 14:49:E0:9E:B0:B9
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=20/70  Signal level=-90 dBm 
                    Encryption key:on
                    ESSID:"Horizon Wi-Free"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
--
          Cell 18 - Address: 5C:A3:9D:BA:B0:98
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=41/70  Signal level=-69 dBm 
                    Encryption key:on
                    ESSID:"UPC242033514"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
--
          Cell 19 - Address: 58:2A:F7:E1:F4:15
                    Channel:9
                    Frequency:2.452 GHz (Channel 9)
                    Quality=22/70  Signal level=-88 dBm 
                    Encryption key:on
                    ESSID:"eir_WiFi"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s[SNIP]

Post the Quality on your own service please.

I gather you're on some version of slackware? There's a DHCP_KEEPRESOLV setting in /etc/rc.d/rc.inet1.conf which you need to uncomment and set to yes. That will stop dhcpcd overwriting resolv.conf. Look for it with grep -n, which gives you a line number. Also, the easiest way to start the wifi is
Code:

sudo /etc/rc.d/rc.inet1 restart

adamsimms 11-23-2017 02:44 PM

@business_kid Here is the output of sudo iwlist wlan0 scan |grep -C3 Quality

Code:

Cell 01 - Address: D6:D9:19:9A:00:5A
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=55/70  Signal level=-55 dBm 
                    Encryption key:on
                    ESSID:"DiscoPro"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s


business_kid 11-23-2017 02:50 PM

Ok. your card can see the wifi. Looks exactly like mine. That seems to clear that wifi.
If you can switch off encryption, you should be able to connect with
Code:

dhcpcd wlan0

adamsimms 11-23-2017 03:12 PM

@business_kid

I'm not able to disable the encryption. For a little more context, this is a remote solar powered Raspberry Pi connected with a USB LTE stick. I'm able to SSH into the Raspberry Pi via this connection.

I'm trying to connect to a GoPro AP to download images, which was working for months. The GoPro turns on, enables WiFi, takes an image, then goes to sleep every hour. Suddenly I'm not able to connect to it's WiFi. In this context, I can't change anything about the AP physically or software wise.

It could be a problem with the GoPro, but based on my Pi I can see that it still comes on and enables wifi every hour - which lead me to believe that this is still a Raspberry Pi issue. If you would like to SSH into the Pi and take a look you are welcome. The purpose of my system is not working so anything will help.

Thanks!

business_kid 11-24-2017 04:29 AM

I don't see how I can ssh in if you haven't got internet.
Ok. Let's presume the card is working, dhcp is working, and get down to wpa_supplicant. Humour me and copy your wpa -supplicant.conf into /etc, as that's the usual location in my Slackware anyhow. Then start wpa_supplicant. Here's what I used, and what I got.
Code:

root@RoseViolet:~# wpa_supplicant  -iwlan0 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
wlan0: SME: Trying to authenticate with 34:81:c4:e0:4b:88 (SSID='MY_ESSID' freq=2437 MHz)
wlan0: Trying to associate with 34:81:c4:e0:4b:88 (SSID='MY_ESSID' freq=2437 MHz)
wlan0: Associated with 34:81:c4:e0:4b:88
wlan0: CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=IE
wlan0: WPA: Key negotiation completed with 34:81:c4:e0:4b:88 [PTK=CCMP GTK=TKIP]
wlan0: CTRL-EVENT-CONNECTED - Connection to 34:81:c4:e0:4b:88 completed [id=0 id_str=]

And the Network looks like this
Code:

bash-4.3$ iwconfig wlan0
wlan0    IEEE 802.11  ESSID:"MY_ESSID" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 34:81:C4:E0:4B:88 
          Bit Rate=135 Mb/s  Tx-Power=15 dBm 
          Retry short limit:7  RTS thr:off  Fragment thr:off
          Power Management:off
          Link Quality=62/70  Signal level=-48 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:17  Missed beacon:0

Now I would have to start dhcpcd to get myself an IP & route. If wpa_supplicant fails, reinstall that, retry, and add '-d' to the command shown. Paste the output to pastebin, and we'll have to grok it for clues. What's your kernel? Distro, or home built?

adamsimms 11-24-2017 11:53 AM

wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf outputs:

Code:

Successfully initialized wpa_supplicant
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: Trying to associate with d6:d9:19:9a:00:5a (SSID='DiscoPro' freq=2412 MHz)
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=16
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="DiscoPro" auth_failures=1 duration=10 reason=CONN_FAILED

wpa_supplicant v2.3

Linux version 4.9.64-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1053 SMP Tue Nov 21 14:56:27 GMT 2017

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"

business_kid 11-24-2017 03:18 PM

If everything's correct, and wpa has been reinstalled, you've one last option, which is to check it's loading firmware and that the firmware is good. Also the manufacturer's site for downloads. Errors of that sort are SSID/PSK, firmware, reception, or occasionally hardware.I've asked about all of them, but haven't always been answered. Check for a driver bug also. I would next suggest a usb wifi from ebay which can stay under the 100mA. The one I got had some weirdo realtek chip but I was able to compile a driver for the early ras-pi I had. You mightn't get that with 802.11n, but you can make the choices. If you have the wpa config, the wpa package, or anything else wrong, of course, it won't work.

SCerovec 11-25-2017 01:36 AM

There are Atheros USB WiFi dongles out there - buy, compile the (mainline) kernel module (if not already present) and off You go.
They do cost a bit more than the realtek ones, but it pays off later, in the setup.

my 2c

business_kid 11-25-2017 03:59 AM

Just thinking, if you don't like this and have another box on hand, you can set up a wifi & dhcp server on that, and try logging in with your raspi. You may even go to setting up wpa_supplicant in server mode and completely duplicate your own setup. That way,you'll be able to fool around and gradually narrow things down. If you keep coming up against wpa_supplicant, and have reinstalled it, it could be hardware. But you eliminate everything else first. It's unusual for hardware to fail that way; Not impossible, but unusual.

Penthux 11-26-2017 01:33 PM

There's a "Setting up a wireless network connection on Slackware ARM on a Raspberry Pi 1, 2 or 3" guide/tutorial on the SARPi website if it helps at all.


All times are GMT -5. The time now is 04:44 AM.