【转】wpa_supplicant和hostapd的定义和区别

转自:https://blog.csdn.net/qq_21949217/article/details/44516225

一、hostapd 和 wap_supplicant

hostapd : user space daemon for access points, including, e.g., IEEE 802.1X/WPA/EAP Authenticator for number of Linux and BSD drivers, RADIUS client, integrated EAP server, and RADIUS authentication server

直译为: AP侧进程,包含:如 linux和BSD 驱动中的802.1x/WPA/EAP认证功能,RADIUS客户端,整合了EAP服务器和RADIUS认证服务器。

也就是说,hostapd是一个AP侧使用的进程,它的功能包含了802.1x、RADIUS认证等的处理。

wpa_supplicant:  user space IEEE 802.1X/WPA supplicant (wireless client) for number of Linux, BSD, and Windows drivers

直译为: 用户空间802.1x/WPA请求者(无线client端),适用于linux /BSD/Windows驱动

也就是说,wpa_supplicant是一个client侧使用的进程,它包含了802.1x、WPA的请求工作。

wpad is a hostapd + wpa_supplicant multicall binary

wpad是 包含了hostapd 和 wpa_supplicant 的合体。wpad 的使用如下:

root@hbg:/# wpad -h
Invalid command.
Usage: wpad wpa_supplicant|hostapd [<arguments>]

后面先加 wpa_supplicant 或 hostapd,然后再跟参数。

抄自:https://www.cnblogs.com/rohens-hbg/p/7422828.html

二、hostapd相关

hostapd使用

http://w1.fi/hostapd/

hostapd源代码分析(一):网络接口和BSS的初始化

hostapd源代码分析(二):hostapd的工作机制

hostapd源代码分析(三):管理帧的收发和处理

三、wpa_supplicant相关

http://w1.fi/wpa_supplicant/devel/

wpa_supplicant及wpa_cli使用方法

原文地址:https://www.cnblogs.com/cxt-janson/p/11542803.html