linuxwifiwpawpa-supplicant

Could not connect to wpa_supplicant: wlan0 - re-trying


I work on embedded device and I am configuring the WLAN module (QCA6174 - ath10k driver) with wpa_supplicant.

everything seems to work fine. I see the wlan0 interface,I can scan with iwlist, /var/run/wpa_supplicant/wlan0 exist.

Do you have any hints how can I track down the problem ?


Solution

  • After issuing

    strace wpa_cli -i wlan0
    

    the problem with /tmp folder was reported:

    bind(3, {sa_family=AF_FILE, path="/tmp/wpa_ctrl_1095-5"}, 110) = -1 EROFS (Read-only file system)
    

    After mounting tmpfs:

    mount -t tmpfs -o size=12m tmpfs /tmp/
    

    everything works fine.