#### 本章主要内容 * 介绍wpa_supplicant的初始化 * 介绍EAP和EAPOL * 介绍wpa_supplicant如何加入无线网络 #### 本章所涉及的源代码文件名及位置 - BoardConfig.mk   `build/target/board/generic/BoardConfig.mk` - android.cfg   `externel/wpa_supplicant_8/wpa_supplicant/android.cfg` - wpa_supplicant.conf   `externel/wpa_supplicant_8/wpa_supplicant/wpa_supplicant.conf` - main.c   `externel/wpa_supplicant_8/wpa_supplicant/main.c` - wpa_supplicant.c   `externel/wpa_supplicant_8/wpa_supplicant/wpa_supplicant.c` - wpa_debug.c   `externel/wpa_supplicant_8/wpa_supplicant/wpa_debug.c` - eap_register.c   `externel/wpa_supplicant_8/wpa_supplicant/eap_register.c` - eap_i.h   `externel/wpa_supplicant_8/src/eap_peer/eap_i.h` - eloop.h   `externel/wpa_supplicant_8/src/utils/eloop.h` - eloop.c   `externel/wpa_supplicant_8/src/utils/eloop.c` - if.h   `externel/kernel-headers/original/linux/if.h` - config_ssid.h   `externel/wpa_supplicant_8/wpa_supplicant/config_ssid.h` - config_file.c   `externel/wpa_supplicant_8/wpa_supplicant/config_file.c` - config.c   `external/wpa_supplicant_8/wpa_supplicant/config.c` - drivers.mk   `external/wpa_supplicant_8/src/drivers/drivers.mk` - driver_nl80211.c  `externel/wpa_supplicant_8/src/drivers/driver_nl80211.c` - rfkill.c  `externel/wpa_supplicant_8/src/drivers/rfkill.c` - wpas_glue.c  `externel/wpa_supplicant_8/wpa_supplicant/wpas_glue.c` - ctrl_iface_unix.c  `externel/wpa_supplicant_8/wpa_supplicant/ctrl_iface_unix.c` - bss.c  `externel/wpa_supplicant_8/wpa_supplicant/bss.c` - wpa.c  `externel/wpa_supplicant_8/src/rsn_supp/wpa.c` - eap_defs.h  `external/wpa_supplicant_8/src/eap_common/eap_defs.h` - defs.h  `external/wpa_supplicant_8/src/common/defs.h` - eap.h  `external/wpa_supplicant_8/src/eap_peer/eap.`h - eapol_supp_sm.c  `external/wpa_supplicant_8/src/eapol_supp/eapol_supp_sm.c` - ctrl_iface.c `externel/wpa_supplicant_8/wpa_supplicant/ctrl_iface.c` - scan.c  `externel/wpa_supplicant_8/wpa_supplicant/scan.c` - wpa_i.h `externel/wpa_supplicant_8/src/rsn_supp/wpa_`i.h - wpa.c `externel/wpa_supplicant_8/src/rsn_supp/wpa.c` - eapol_supp_sm.c  `externel/wpa_supplicant_8/src/eapol_supp_sm.c`