0

I'm going mad with a stupid issue I can't solve.

During the testing of my Yocto project I always used connmactl in order to connect my board to the internet. Now I am going to release the product but before releasing I am working on an “internet connection manager”

I guess I can’t use connmanctl anymore since it consist in an interactive command (isn’t it?) so I’m going to use directly wpa_supplicant.

In my script I edit wpa_supplicant.conf as follow:

root@localhost:~# cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
bgscan=""

network={
    ssid="Obi_Lan_Kenobi"
    psk="TheForceIsStrongWithThisOne"
}
After that I try to start wpa_supplicant with this command:

wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf wext

as result of this command I get:

Successfully initialized wpa_supplicant

But if I try to ping google.com (or any other website) i seet that the network doesn’t work, In particular I get this message: ping: sendto: Network is unreachable

Everything is working under connmanctl, but not under wpa_supplicant.

The strange thing is that running iw command everything seems to be configurated in the right way:

root@localhost:~# iw dev mlan0 link
Connected to 56:0c:ff:37:1a:69 (on mlan0)
    SSID: Obi_Lan_Kenobi
    freq: 2412
    RX: 32154 bytes (310 packets)
    TX: 19436 bytes (128 packets)
    signal: -38 dBm
    rx bitrate: 1.0 MBit/s
    tx bitrate: 72.2 MBit/s MCS 7 short GI

    bss flags:  short-preamble short-slot-time
    dtim period:    2
    beacon int: 100

I honestly can’t understand why.

Does anybody have a suggestion about that?

Merlin
  • 11
  • 2

0 Answers0