openwrt上面如果想要使用无线中继上网的话,需要使用uci的配置+udhcpc进程进行配合使用,但是wpa_supplicant做为一个开源使用很普遍的工具,在很多终端设备上使用,有必要介绍使用
wpa_supplicant
开源sta使用的是wpa_supplicant,目前在安卓、linux系统(ubuntu\centos)等都大量使用。
wpa_supplicant主要提供两个功能,一个是作为sta连接上级的后台服务进程,另一个是提供了libwpa_client.so
库给用户使用,用户可以通过该库接口与后台服务进行进行通讯,如监听wifi事件变化、设置wifi信息等。
1.1 后台服务进程
启动参数:
wpa_supplicant v2.6
Copyright (c) 2003-2016, Jouni Malinen <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
This product includes software developed by the OpenSSL Project
for