用wpa_cli工具时候报错

网上搜索了很多信息都搞不定,最后只有看源码了,跟踪到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传输

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值