No Wi-Fi with adsbx_buster image

Discussion in 'Feeding' started by Mike Kloko, Nov 3, 2020.

  1. Mike Kloko

    Mike Kloko New Member

    Hello,
    Hope this will be simple! I'm a Linux/Debian veteran, but my knowledge of wifi is woefully lacking - normally it just works when I set up wpa_supplicant.conf or I can quickly google my way to sanity. So far, no dice this time.

    Anyway, just got my first Raspberry Pi for feeding. Got it booting w/ the adsbx_buster.1.0 image (version 1.0.6 Sept 8th 2020) with no problems, but the wifi isn't doing anything.

    So far I:
    - Missed the step to create an initial /boot/wpa_supplicant.conf, so I manually edited /etc/wpa_supplicant/wpa_supplicant.conf
    - Tried the raspi-config tool which only edited the above file as I had already done manually
    - Tried re-flashing the image and created the intiial wpa_supplicant.conf
    - Tried iwlist wlan0 scan and can see networks, so the wifi adapter is confirmed to be functional

    I have not seen anything in the system logs pertaining to wlan0 (specifically worth mentioning is /var/log/messages shows nothing, which is where my other Linux machines typically puts such info).

    I can provide additional information on request, but not sure at the moment what would be needed.

    Any advice is appreciated! Thank you for reading.
     
  2. wiedehopf

    wiedehopf Administrator Staff Member

    sudo wpa_cli -i wlan0
    scan
    .... wait a bit ....
    scan_results


    That should show you if that is working?
    Have you correctly set the country in wpa_supplicant.conf?
    Posting that configuration file .. might be helpful.
     
  3. Mike Kloko

    Mike Kloko New Member

    As I mentioned, I tried the command "iwlist wlan0 scan" and it is able to find my network, so I know it's physically working....

    And sorry, I don't know why I didn't post my config but it is as follows (names have been changed to protect the innocent):

    Code:
    ctrl_interface=/var/run/wpa_supplicant
    update_config=1
    country=US
    
    network={
        ssid="MySSID"
        psk="MyPassword"
    }
     
  4. wiedehopf

    wiedehopf Administrator Staff Member

    So the Raspbian how-to shows this line (not sure if it's relevant):
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev


    In regards to the network section, there can be issue with quotes being converted to start / end quotes but i suppose that shouldn't happen if you are using a keyboard connected to the pi (typical OS X thing).
    Other thing are issues with certain special characters i think.

    Anyhow ... let's try this:

    sudo wpa_cli -i wlan0
    log_level debug
    reconfigure

    Post the output after a minute.
     
  5. Mike Kloko

    Mike Kloko New Member

    So it looks like changing that ctrl_interface line you mentioned may have gotten me somewhere. Before that, it was showing many lines like this (when running with log_level debug as you instructed):

    Code:
    <3>CTRL-EVENT-NETWORK-NOT-FOUND
    <3>CTRL-EVENT-SCAN-STARTED
    <3>CTRL-EVENT-SCAN-RESULTS
    <4>Failed to initiate sched scan
    After fixing that I just get these like normal:
    Code:
    <3>CTRL-EVENT-SCAN-RESULTS
    And it's definitely seeing my network when I check the scan_results, however, still no joy on connecting. Still not seeing anything wlan/wpa_supplicant related in the system logs.

    Code:
    systemctl wpa_supplicant status
    shows that indeed wpa_supplicant is starting without errors. Just never seems to do anything after that.

    Also, I did notice my keyboard layout was set to EN-UK, so I've sorted that now, but don't think it caused any problem in the config...seems like I'd get an error, if so.
     
    Last edited: Nov 4, 2020
  6. wiedehopf

    wiedehopf Administrator Staff Member

    Well if you correctly input your SSID and it's in the scan results you should also get this:
    Trying to associate with SSID "myssid"

    If you don't get that your network block doesn't work for some reason.
    As i said some non alphanumeric characters can cause issues .... i'd just avoid those.
     
  7. Mike Kloko

    Mike Kloko New Member

    O.
    M.
    G.

    I just realized the problem. I am so sorry to have wasted your time. A few weeks ago, I went full tilt on my security - bought a pfsense firewall and setup a MAC whitelist on my wifi router. Completely forgot about it. All is well after adding wlan0's mac address.

    Gimme a donation link and I'll buy you a beer or two :)
     
    Last edited: Nov 4, 2020
  8. wiedehopf

    wiedehopf Administrator Staff Member