wpa_supplicant 连接无线网络
2014-05-04 18:07:52 5 举报
wpa_supplicant是一个开源的Wi-Fi认证客户端,它能够使设备连接到无线网络。当设备启动时,wpa_supplicant会自动搜索可用的无线网络,并根据配置文件中的信息尝试连接。在连接过程中,wpa_supplicant会与无线接入点进行身份验证和密钥交换,以确保通信的安全性。一旦连接成功,设备就可以通过无线网络与其他设备进行通信了。此外,wpa_supplicant还支持多种认证方式,如WEP、WPA和WPA2,以满足不同用户的需求。总之,wpa_supplicant是一个非常实用的工具,它能够帮助用户轻松地连接到无线网络,享受便捷的网络生活。
作者其他创作
大纲/内容
wpa_supplicant_ctrl_iface_process
ADD_NETWORK
客户端发送的cmd由receive处理
wpa_supplicant_ctrl_iface_enable_network
wpa_supplicant_init_iface
wpa_config_get_network
wpa_supplicant_trigger_scan
分析2
wpa_supplicant_ctrl_iface_init
wpa_supplicant_associate
wpa_supplicant_rx_eapol
wpa_supplicant_event_assoc
wpa_sm_rx_eapol
NL80211_CMD_SCHED_SCAN_RESULTS
Add a new network with empty configuration
NL80211_CMD_TRIGGER_SCAN
wpa_supplicant_driver_init
case EVENT_ASSOC
wpa_supplicant_scan
wpa_supplicant_ctrl_iface_add_network
SET_NETWORK
wpa_config_readwpa_supplicant.conf
NL80211_CMD_CONNECT
do_process_drv_event
Get configured network based on id
process_global_event
cmd==NL80211_CMD_CONNECT
wpa_drv_get_scan_results2
分析3
wpa_supplicant_get_scan_results
分析1 165
wpa_driver_nl80211_connect
wpa_supplicant_ctrl_iface_set_network
send_scan_event
wpas_select_network_from_last_scan
4-way HandshakeGroup key Handshake
wpa_supplicant_update_mac_addr
wpa_driver_nl80211_try_connect
netlink的回调函数
wpa_supplicant_need_to_roam
wpa_supplicant_pick_network
mlme_event_connect
wpa_supplicant_enable_network
wpa_drv_associate
wpa_supplicant_connect
wpa_supplicant_req_scan
ENABLE_NETWORK
wpa_driver_nl80211_scan
设置完一些参数
CMD:NL80211_CMD_TRIGGER_SCAN
wpa_supplicant_event_scan_results
rx_callback
分析4
p186
开始disable为1,说明未启用,等待set_network打开,设置无线的默认项
wpa_config_add_network
0 条评论
下一页
为你推荐
查看更多