Connecting to Wifi

Started by SteffenFuchs, October 13, 2023, 04:39:38 PM

Previous topic - Next topic

SteffenFuchs

Dear all,

this is maybe a simple question,

I am using the STMP1 SOM together with the evaluation board, but I cannot get Wifi to connect to an existing network.

When I use:
iwlist scan
several networks are shown, so I suppose the hardware is working:
wlx0cc65568400a  Scan completed :
          Cell 01 - Address: 24:D3:F2:9F:AB:DD
                    ESSID:"Some_ESSID"
                    Protocol:IEEE 802.11bgn
                    Mode:Master
                    Frequency:2.432 GHz (Channel 5)
                    Encryption key:on
                    Bit Rates:144 Mb/s
                    Extra:wpa_ie=dd1a0050f20101000050f20202000050f2020050f20401000050f202
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=30180100000fac020200000fac02000fac040100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD7D0050F204104A0001101044000102103B00010310470010BC329E001DD811B2860124D3F29FABDD102100035A54451023000C5A58484E20476174655761791024000456312E301042000831323334353637381054000800060050F2040001101100065A5445204150100800020380103C0001011049000600372A000120

But when I try
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlx0cc65568400a -D wext
the result was
Successfully initialized wpa_supplicant
rfkill: Cannot get wiphy information
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument

I first tried without -D wext, but then the response was
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlx0cc65568400a disabled_11b_rates=0
wlx0cc65568400a: Failed to initialize driver interface
wlx0cc65568400a: CTRL-EVENT-DSCP-POLICY clear_all

nmcli does not even show any listed networks, and can also not connect.

Does anyone have an idea how to successfully connect?
Thanks!

LubOlimex

I think it should work fine after this line "wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlx0cc65568400a -D wext" The first result seems like few warnings, but it should work. This guy had same issue:

https://bbs.archlinux.org/viewtopic.php?id=253326
Technical support and documentation manager at Olimex