A method for accessing a wireless network, comprising: acquiring, by a terminal, a Service Set Identifier, SSID, and a password of the wireless network; controlling a WIFI working mode of the terminal to be an Access Point, AP, mode, and transmitting a signal of an SSID of the terminal; detecting a smartcard that accesses the terminal, and sending the SSID and password of the wireless network to the smartcard; connecting the smartcard to the wireless network according to the received SSID and password of the wireless network and returning, by the smartcard, a connection result to the terminal; wherein connecting the smartcard to the wireless network according to the received SSID and password of the wireless network and returning, by the smartcard, a connection result to the terminal comprises: connecting, by the smartcard, to the wireless network and if the connection succeeds, returning a connection result that comprises a success code to the terminal; and if the connection result that is returned by the smartcard and received by the terminal indicates a connection success, controlling, according to the received result of the connection success, the terminal to switch to a Station, STA, working mode, to connect to the wireless network and to search for the smartcard that has already accessed the wireless network so as to perform control on the smartcard. acquiring, by a terminal, a Service Set Identifier, SSID, and a password of the wireless network; controlling a WIFI working mode of the terminal to be an Access Point, AP, mode, and transmitting a signal of an SSID of the terminal; detecting a smartcard that accesses the terminal, and sending the SSID and password of the wireless network to the smartcard; connecting the smartcard to the wireless network according to the received SSID and password of the wireless network and returning, by the smartcard, a connection result to the terminal; wherein connecting the smartcard to the wireless network according to the received SSID and password of the wireless network and returning, by the smartcard, a connection result to the terminal comprises: connecting, by the smartcard, to the wireless network and if the connection succeeds, returning a connection result that comprises a success code to the terminal; and if the connection result that is returned by the smartcard and received by the terminal indicates a connection success, controlling, according to the received result of the connection success, the terminal to switch to a Station, STA, working mode, to connect to the wireless network and to search for the smartcard that has already accessed the wireless network so as to perform control on the smartcard. connecting, by the smartcard, to the wireless network and if the connection succeeds, returning a connection result that comprises a success code to the terminal; and if the connection result that is returned by the smartcard and received by the terminal indicates a connection success, controlling, according to the received result of the connection success, the terminal to switch to a Station, STA, working mode, to connect to the wireless network and to search for the smartcard that has already accessed the wireless network so as to perform control on the smartcard.