用wpa_cli工具时候报错

来源:互联网 发布:中国移动宽带测速软件 编辑:程序博客网 时间:2024/05/16 10:50

网上搜索了很多信息都搞不定,最后只有看源码了,跟踪到bind报错是如此目录和文件,原来文件系统是只读的,而且也没有/tmp的目录,所以我改了下目录。改到可以读写的目录下就可以,wpa_lic可以连接上了,ret = os_snprintf(ctrl->local.sun_path, sizeof(ctrl->local.sun_path),  "/mnt/mtd/jsyjzz/wpa_ctrl_%d-%d", getpid(), counter); 在这个wpa_ctrl_open函数里面。





wpa_cli v0.7.3

Copyright (c) 2004-2010, Jouni Malinen <j@w1.fi> and contributors

This program is free software. You can distribute it and/or modify it
under the terms of the GNU General Public License version 2.

Alternatively, this software may be distributed under the terms of the
BSD license. See README and COPYING for more details.


Selected interface 'wlan0'

Could not connect to plicant - re-trying


原因:在makefile中CONFIG_CTRL_IFACE=unix 改成CONFIG_CTRL_IFACE=udp这样就可以连接上了

           在.config中udp = UDP sockets using localhost (127.0.0.1) 打开。unix注销掉,

总结,估计是不支持unix传输,只是支持udp传输

原创粉丝点击