树莓派3Bwifi命令行连接问题

Successfully initialized wpa_supplicant
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface 'DIR=/var/run/wpa_supplicant GROUP=netdev'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

nl80211: deinit ifname=wlan0 disabled_11b_rates=0

        今天做个小项目,需要命令行下连接wifi,但是问题出现了,每次配置完,就是连不上,只能重启,重启后就可以连上。

但是项目要求是每次通过特定途径获取wifi 的ssid和密码,重启就没什么价值了。报错如上。

看了下,猜到大概是进程运行问题:执行

sudo killall wpa_supplicant

然后执行

sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf

妥妥无压力,顺利连接了wifi

----------------------------------------------------------------------------------------------------------------------------------

下面说下树莓派wifi配置吧,参考博客:

https://www.cnblogs.com/shubin/p/7746399.html 写的非常不错。




扫描二维码关注公众号,回复: 124870 查看本文章

猜你喜欢

转载自blog.csdn.net/u013372900/article/details/78705498