Bartlomiej Grzeskowiak
Bartlomiej Grzeskowiak

Reputation: 1019

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 ?

Upvotes: 5

Views: 26482

Answers (2)

courtyardz
courtyardz

Reputation: 73

I solved this by running sudo wpa_cli -i wlan0 in response to the "Read-only file system" permissions error.

In contrast to the accepted answer, this does not carry the side-effect of altering the permissions of the directory mounted at /tmp/.

Thank you @BartlomiejGrzeskowiak. I did not know about strace.

Upvotes: 2

Bartlomiej Grzeskowiak
Bartlomiej Grzeskowiak

Reputation: 1019

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.

Upvotes: 4

Related Questions