A method for wireless fidelity, Wi-Fi fast connection, comprising: loading (S101, S201) a Wi-Fi driver and starting wpa_supplicant as a support library of Wi-Fi protected access, WPA, by a terminal device, after the terminal device detects that Wi-Fi is turned on by a user; triggering (S102, S202) a scanning operation for access points by an internal command in response to the detection of the Wi-Fi being turned on, by the terminal device, and performing in parallel therewith, by the terminal device, operations comprising loading pre-stored access points list, setting all the pre-stored access points to be connectable, updating a current connection state of the terminal device, turning on Wi-Fi peer-to-peer function, and setting parameters of the Wi-Fi peer-to-peer function, after the terminal device determines that the wpa_supplicant is started; connecting (S103, S203) to a first access point scanned according to a scanning result of the scanning operation for access points comprising the access points in the pre-stored access points list, by the terminal device, after the terminal device sets the parameters of the Wi-Fi peer-to-peer; after connecting to the first access point according to the scanning result of the scanning operation, searching, by the terminal device, for a second access point with the strongest signal strength from the scanning result; setting, by the terminal device, the second access point as an alternative access point of the first access point; and connecting directly, by the terminal device, to the second access point when the terminal device disconnects from the first access point; and wherein the method further comprises: disconnecting from the first access point and saving connection information of the first access point, by the terminal device, after a screen of the terminal device is locked; and connecting directly to the first access point according to the connection information, by the terminal device, after the screen of the terminal device is unlocked. loading (S101, S201) a Wi-Fi driver and starting wpa_supplicant as a support library of Wi-Fi protected access, WPA, by a terminal device, after the terminal device detects that Wi-Fi is turned on by a user; triggering (S102, S202) a scanning operation for access points by an internal command in response to the detection of the Wi-Fi being turned on, by the terminal device, and performing in parallel therewith, by the terminal device, operations comprising loading pre-stored access points list, setting all the pre-stored access points to be connectable, updating a current connection state of the terminal device, turning on Wi-Fi peer-to-peer function, and setting parameters of the Wi-Fi peer-to-peer function, after the terminal device determines that the wpa_supplicant is started; connecting (S103, S203) to a first access point scanned according to a scanning result of the scanning operation for access points comprising the access points in the pre-stored access points list, by the terminal device, after the terminal device sets the parameters of the Wi-Fi peer-to-peer; after connecting to the first access point according to the scanning result of the scanning operation, searching, by the terminal device, for a second access point with the strongest signal strength from the scanning result; setting, by the terminal device, the second access point as an alternative access point of the first access point; and connecting directly, by the terminal device, to the second access point when the terminal device disconnects from the first access point; and wherein the method further comprises: disconnecting from the first access point and saving connection information of the first access point, by the terminal device, after a screen of the terminal device is locked; and connecting directly to the first access point according to the connection information, by the terminal device, after the screen of the terminal device is unlocked. disconnecting from the first access point and saving connection information of the first access point, by the terminal device, after a screen of the terminal device is locked; and connecting directly to the first access point according to the connection information, by the terminal device, after the screen of the terminal device is unlocked.