1. What is wpa_supplicant?
Wpa_supplicant is the source code of an open-source project. It was modified by Google and added to the Android mobile platform. It is mainly used to support WEP, WPA/wpa2 and WAPI wireless protocols and encryption authentication, the actual work is to report data to the user through the socket (whether wpa_supplicant communicates with the upper layer or wpa_supplicant communicates with the driver) and the driver, you can use a socket to send a command to wpa_supplicant to mobilize the driver to operate the WiFi chip.
To put it simply, wpa_supplicant is a Wi-Fi driver and user Transfer Station plus support for protocol and encryption authentication.
Shows the architecture of the android WiFi system:
The entry function implemented by the wpa_supplicant process is: external/wpa_supplicant_8/wpa_supplicant/main. main function in C. This program runs in hardware/libhardware_legacy/WiFi/wifi. in C, wifi_start_supplicant_common is started (property_set ("CTL. start ",
Daemon_cmd )).