Patent Publication Number: US-2016227412-A1

Title: Wireless Terminal Configuration Method, Apparatus, and Wireless Terminal

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
     This application is a National Stage of International Application No. PCT/CN2014/072516, filed on Feb. 25, 2014, which claims priority to Chinese Patent Application No. 201310058832.4, filed on Feb. 25, 2013, both of which are hereby incorporated by reference in their entireties. 
    
    
     TECHNICAL FIELD 
     Embodiments of the present disclosure relate to communications technologies, and in particular, to a wireless terminal configuration method, an apparatus, and a wireless terminal. 
     BACKGROUND 
     With development of network technologies, Wi-Fi networks become increasingly popular, and more wireless terminals are used. 
     To simplify a user&#39;s operation in setting up a wireless local area network (WLAN), the Wi-Fi Alliance defines the Wi-Fi protected setup (WPS) specification, such that the user can conveniently set up the WLAN and configure a wireless terminal, and the wireless terminal acquires WLAN credentials and subsequently securely accesses the WLAN through a wireless access device. A WLAN having a wireless access device is referred to as an infrastructure network. In particular, after a simple modification is made to the current WPS specification, the WPS specification may be further used in a peer-to-peer (P2P) Wi-Fi network. In the P2P network technical specification released by the Wi-Fi Alliance. A P2P topology is a P2P workgroup including one group owner (GO) and multiple clients that are connected in a 1: n form, where n is an integer that is greater than or equal to 1. The group owner is equivalent to the wireless access device in the infrastructure network, and provides functions similar to those of a base station subsystem for the clients that are associated with the group owner. In addition, the group owner further has various functions of a registration apparatus in the WPS specification, and can perform a configuration process with the clients in the WPS specification to establish secure connections. 
     In the WPS specification, a most frequently used configuration mode is a personal identification number (PIN) mode. When a wireless terminal accesses a WLAN through a wireless access device, a user must first enter PIN information of the wireless terminal on a registration apparatus associated with the wireless access device. Then the wireless terminal acquires, by performing eight message exchange processes with the registration apparatus, configuration information that is provided by the registration apparatus, and finally the configuration of the wireless terminal by the registration apparatus is completed. 
     In the prior art, the user needs to enter an 8-digit PIN on the registration apparatus associated with the wireless access device, and the wireless terminal needs to perform eight message exchange processes with the registration apparatus before the configuration information is obtained. Consequently, the configuration process of the wireless terminal is too complex. 
     SUMMARY 
     Embodiments of the present disclosure provide a wireless terminal configuration method, an apparatus, and a wireless terminal to simplify a configuration process of a wireless terminal. 
     According to a first aspect, an embodiment of the present disclosure provides a wireless terminal configuration method, including scanning, by a registration apparatus, a multi-dimensional code of a wireless terminal to acquire multi-dimensional code information, where the multi-dimensional code information includes a configuration password of the wireless terminal, and encrypting, by the registration apparatus, configuration information based on the configuration password, and sending the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal accesses the wireless access device according to the configuration information. 
     With reference to the first aspect, in a first possible implementation manner of the first aspect, the encrypting, by the registration apparatus, configuration information based on the configuration password, and sending the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus includes generating, by the registration apparatus, a first random nonce, sending the first random nonce to the wireless terminal through the wireless access device, and receiving a second random nonce that is sent by the wireless terminal through the wireless access device, performing, by the registration apparatus, calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and encrypting, by the registration apparatus, the configuration information using the first key, and sending the encrypted configuration information to the wireless terminal through the wireless access device. 
     With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, after the sending, by the registration apparatus, the encrypted configuration information to the wireless terminal through a wireless access device, the method further includes receiving, by the registration apparatus, a configuration completion confirmation message that is sent by the wireless terminal through the wireless access device. 
     With reference to the first aspect, in a third possible implementation manner of the first aspect, the encrypting, by the registration apparatus, configuration information based on the configuration password, and sending the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus includes generating, by the registration apparatus, a third random nonce; encrypting, by the registration apparatus, the third random nonce and the configuration information using the configuration password, and sending, by the registration apparatus, the third random nonce and the configuration information that are encrypted by the registration apparatus to the wireless terminal through the wireless access device. 
     With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, after the sending, by the registration apparatus, the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, the method further includes receiving, by the registration apparatus, the third random nonce that is encrypted by the wireless terminal and sent by the wireless terminal through the wireless access device, decrypting, by the registration apparatus using the configuration password, the third random nonce that is encrypted by the wireless terminal, to acquire the third random nonce, and verifying, by the registration apparatus, whether the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, and if consistent, sending a configuration completion confirmation message to the wireless terminal through the wireless access device. 
     With reference to the first aspect or any one of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the first aspect or any one of the first to fourth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the first aspect or any one of the first to fourth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the registration apparatus is integrated into the wireless access device, the wireless access device is a group owner in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     With reference to the first aspect or any one of the first to seventh possible implementation manners of the first aspect, in an eighth possible implementation manner of the first aspect, before the scanning, by a registration apparatus, a multi-dimensional code of a wireless terminal to acquire multi-dimensional code information, the method further includes receiving, by the registration apparatus, a probe request message that is sent by the wireless terminal through the wireless access device, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning the multi-dimensional code, and the scanning, by a registration apparatus, a multi-dimensional code of a wireless terminal to acquire multi-dimensional code information includes identifying, by the registration apparatus, the wireless terminal using the device identifier of the wireless terminal, and scanning the multi-dimensional code of the wireless terminal to acquire the multi-dimensional code information. 
     With reference to the first aspect or any one of the first to eighth possible implementation manners of the first aspect, in a ninth possible implementation manner of the first aspect, the multi-dimensional code information is dynamic multi-dimensional code information or static multi-dimensional code information. 
     According to a second aspect, an embodiment of the present disclosure provides a wireless terminal configuration method, including receiving, by a wireless terminal, configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus, where a multi-dimensional code is set in the wireless terminal, such that the registration apparatus scans the multi-dimensional code and acquires multi-dimensional code information, where the multi-dimensional code information includes the configuration password of the wireless terminal, and decrypting, by the wireless terminal, the encrypted configuration information based on the configuration password to acquire the configuration information, and accessing the wireless access device according to the configuration information. 
     With reference to the second aspect, in a first possible implementation manner of the second aspect, the decrypting, by the wireless terminal, the encrypted configuration information based on the configuration password to acquire the configuration information includes generating, by the wireless terminal, a second random nonce, sending the second random nonce to the registration apparatus through the wireless access device, and receiving a first random nonce that is sent by the registration apparatus through the wireless access device, performing, by the wireless terminal, calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and decrypting, by the wireless terminal, the encrypted configuration information using the first key, to acquire the configuration information. 
     With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, after the wireless terminal acquires the configuration information, the method further includes sending, by the wireless terminal, a configuration completion confirmation message to the registration apparatus through the wireless access device. 
     With reference to the second aspect, in a third possible implementation manner of the second aspect, the receiving, by a wireless terminal, configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus includes, receiving, by the wireless terminal, a third random nonce and the configuration information that are encrypted by the registration apparatus using the configuration password and sent by the registration apparatus through the wireless access device, where the third random nonce is generated by the registration apparatus, and the decrypting, by the wireless terminal, the encrypted configuration information based on the configuration password to acquire the configuration information includes decrypting, by the wireless terminal using the configuration password, the third random nonce and the configuration information that are encrypted by the registration apparatus, to acquire the third random nonce and the configuration information. 
     With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, after the wireless terminal acquires the configuration information, the method further includes encrypting, by the wireless terminal using the configuration password, the third random nonce that is acquired through decryption, and sending the third random nonce encrypted by the wireless terminal to the registration apparatus through the wireless access device, and receiving, by the wireless terminal, a configuration completion confirmation message that is sent by the registration apparatus through the wireless access device after the registration apparatus verifies that the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, where the decrypted third random nonce is the third random nonce that is acquired by the registration apparatus after the third random nonce encrypted by the wireless terminal is decrypted using the configuration password. 
     With reference to the second aspect or any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the second aspect or any one of the first to fourth possible implementation manners of the second aspect, in a sixth possible implementation manner of the second aspect, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the second aspect or any one of the first to fourth possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the registration apparatus is integrated into the wireless access device, the wireless access device is a GO in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     With reference to the second aspect or any one of the first to seventh possible implementation manners of the second aspect, in an eighth possible implementation manner of the second aspect, before the receiving, by a wireless terminal, configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus, the method further includes sending, by the wireless terminal, a probe request message to the registration apparatus through the wireless access device, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning the multi-dimensional code. 
     With reference to the second aspect or any one of the first to eighth possible implementation manners of the second aspect, in a ninth possible implementation manner of the second aspect, the multi-dimensional code information is dynamic multi-dimensional code information or static multi-dimensional code information. 
     According to a third aspect, an embodiment of the present disclosure provides a registration apparatus for configuring a wireless terminal, where the registration apparatus includes a scanning module configured to scan a multi-dimensional code of the wireless terminal to acquire multi-dimensional code information, where the multi-dimensional code information includes a configuration password of the wireless terminal, and a configuration information encryption module configured to encrypt configuration information based on the configuration password, and send the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal accesses the wireless access device according to the configuration information. 
     With reference to the third aspect, in a first possible implementation manner of the third aspect, the configuration information encryption module is further configured to generate a first random nonce, send the first random nonce to the wireless terminal through the wireless access device, and receive a second random nonce that is sent by the wireless terminal through the wireless access device, perform calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and encrypt the configuration information using the first key, and send the encrypted configuration information to the wireless terminal through the wireless access device. 
     With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the apparatus further includes a message receiving module configured to receive a configuration completion confirmation message that is sent by the wireless terminal through the wireless access device after the configuration information encryption module sends the encrypted configuration information to the wireless terminal through the wireless access device associated with the registration apparatus. 
     With reference to the third aspect, in a third possible implementation manner of the third aspect, the configuration information encryption module is further configured to generate a third random nonce; encrypt the third random nonce and the configuration information using the configuration password, and send the third random nonce and the configuration information that are encrypted by the registration apparatus to the wireless terminal through the wireless access device. 
     With reference to the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the apparatus further includes a random nonce receiving module configured to receive the third random nonce that is encrypted by the wireless terminal and sent by the wireless terminal through the wireless access device after the configuration information encryption module sends the encrypted configuration information to the wireless terminal through the wireless access device associated with the registration apparatus, a random nonce decryption module configured to decrypt, using the configuration password, the third random nonce that is encrypted by the wireless terminal, to acquire the third random nonce, and a verification module configured to verify whether the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, and if consistent, send a configuration completion confirmation message to the wireless terminal through the wireless access device. 
     With reference to the third aspect or any one of the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the third aspect or any one of the first to fourth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the third aspect or any one of the first to fourth possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the registration apparatus is integrated into the wireless access device, the wireless access device is a group owner in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     With reference to the third aspect or any one of the first to seventh possible implementation manners of the third aspect, in an eighth possible implementation manner of the third aspect, the apparatus further includes a request receiving module configured to receive, before the scanning module scans the multi-dimensional code of the wireless terminal to acquire the multi-dimensional code information, a probe request message that is sent by the wireless terminal through the wireless access device, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning the multi-dimensional code, and an identification module configured to identify the wireless terminal using the device identifier of the wireless terminal, and scan the multi-dimensional code of the wireless terminal to acquire the multi-dimensional code information. 
     With reference to the third aspect or any one of the first to eighth possible implementation manners of the third aspect, in a ninth possible implementation manner of the third aspect, the multi-dimensional code information is dynamic multi-dimensional code information or static multi-dimensional code information. 
     According to a fourth aspect, an embodiment of the present disclosure provides a wireless terminal, including an information receiving module configured to receive configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus, where a multi-dimensional code is set in the wireless terminal, such that the registration apparatus scans the multi-dimensional code and acquires multi-dimensional code information, where the multi-dimensional code information includes the configuration password of the wireless terminal, a configuration information decryption module configured to decrypt the encrypted configuration information based on the configuration password to acquire the configuration information, and an access module configured to access the wireless access device according to the configuration information. 
     With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the configuration information decryption module is further configured to generate a second random nonce, send the second random nonce to the registration apparatus through the wireless access device, and receive a first random nonce that is sent by the registration apparatus through the wireless access device, perform calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and decrypt the encrypted configuration information using the first key, to acquire the configuration information. 
     With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the wireless terminal further includes, a confirmation module configured to send a configuration completion confirmation message to the registration apparatus through the wireless access device after the configuration information decryption module acquires the configuration information. 
     With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the information receiving module is further configured to receive a third random nonce and the configuration information that are encrypted by the registration apparatus using the configuration password and sent by the registration apparatus through the wireless access device, where the third random nonce is generated by the registration apparatus, and the configuration information decryption module is further configured to decrypt, using the configuration password, the third random nonce and the configuration information that are encrypted by the registration apparatus, to acquire the third random nonce and the configuration information. 
     With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the wireless terminal further includes a random nonce encryption module configured to after the configuration information decryption module acquires the configuration information, encrypt, using the configuration password, the third random nonce that is acquired by means of decryption, and send the third random nonce encrypted by the wireless terminal to the registration apparatus through the wireless access device, and a confirmation receiving module configured to receive a configuration completion confirmation message that is sent by the registration apparatus through the wireless access device after the registration apparatus verifies that the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, where the decrypted third random nonce is the third random nonce that is acquired by the registration apparatus after the third random nonce encrypted by the wireless terminal is decrypted using the configuration password. 
     With reference to the fourth aspect or any one of the first to fourth possible implementation manners of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the fourth aspect or any one of the first to fourth possible implementation manners of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     With reference to the fourth aspect or any one of the first to fourth possible implementation manners of the fourth aspect, in a seventh possible implementation manner of the fourth aspect, the registration apparatus is integrated into the wireless access device, the wireless access device is a group owner in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     With reference to the fourth aspect or any one of the first to seventh possible implementation manners of the fourth aspect, in an eighth possible implementation manner of the fourth aspect, the wireless terminal further includes a message sending module configured to send a probe request message to the registration apparatus through the wireless access device before the information receiving module receives the configuration information that is encrypted based on the configuration password and sent by the registration apparatus through the wireless access device associated with the registration apparatus, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning the multi-dimensional code. 
     With reference to the fourth aspect or any one of the first to eighth possible implementation manners of the fourth aspect, in a ninth possible implementation manner of the fourth aspect, the multi-dimensional code information is dynamic multi-dimensional code information or static multi-dimensional code information. 
     The embodiments provide a wireless terminal configuration method, an apparatus, and a wireless terminal. In the method, a registration apparatus acquires a configuration password of a wireless terminal by scanning a multi-dimensional code of the wireless terminal, and does not require a manual input by a user on the registration apparatus. The registration apparatus encrypts configuration information based on the configuration password, and sends the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal decrypts the encrypted configuration information to acquire the configuration information. Interaction processes between the wireless terminal and the registration apparatus are greatly reduced, and a configuration process of the wireless terminal is simplified. 
    
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
       To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show some embodiments of the present disclosure, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts. 
         FIG. 1  is a flowchart of Embodiment 1 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 2  is a flowchart of Embodiment 2 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 3  is a flowchart of Embodiment 3 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 4  is a signaling flowchart of Embodiment 4 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 5  is a signaling flowchart of Embodiment 5 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 6  is a signaling flowchart of Embodiment 6 of a wireless terminal configuration method according to the present disclosure; 
         FIG. 7  is a schematic diagram of a structure of Embodiment 1 of a registration apparatus for configuring a wireless terminal according to the present disclosure; 
         FIG. 8  is a schematic diagram of a structure of Embodiment 2 of a registration apparatus for configuring a wireless terminal according to the present disclosure; 
         FIG. 9  is a schematic diagram of a structure of Embodiment 3 of a registration apparatus for configuring a wireless terminal according to the present disclosure; 
         FIG. 10  is a schematic diagram of a structure of Embodiment 1 of a wireless terminal according to the present disclosure; 
         FIG. 11  is a schematic diagram of a structure of Embodiment 2 of a wireless terminal according to the present disclosure; 
         FIG. 12  is a schematic diagram of a structure of Embodiment 3 of a wireless terminal according to the present disclosure; 
         FIG. 13  is a schematic diagram of a structure of Embodiment 4 of a registration apparatus for configuring a wireless terminal according to the present disclosure; and 
         FIG. 14  is a schematic diagram of a structure of Embodiment 4 of a wireless terminal according to the present disclosure. 
     
    
    
     DESCRIPTION OF EMBODIMENTS 
     To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure. 
       FIG. 1  is a flowchart of Embodiment 1 of a wireless terminal configuration method according to the present disclosure. The wireless terminal configuration method provided by this embodiment may be executed by an apparatus that executes the wireless terminal configuration method. The apparatus may be implemented by software and/or hardware. The apparatus further has a scanning function. The apparatus may be configured in a registration apparatus as an execution body, or may be a registration apparatus itself, where the registration apparatus may execute the wireless terminal configuration method in this embodiment. As shown in  FIG. 1 , the method in this embodiment may include the following steps. 
     Step  101 : A registration apparatus scans a multi-dimensional code of a wireless terminal to acquire multi-dimensional code information, where the multi-dimensional code information includes a configuration password of the wireless terminal. 
     Step  102 : The registration apparatus encrypts configuration information based on the configuration password, and sends the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal accesses the wireless access device according to the configuration information. 
     In a specific implementation process, the wireless terminal configuration method provided by this embodiment may be further applied to two scenarios. One scenario is a wireless terminal configuration scenario in the WPS specification, and one scenario is a wireless terminal configuration scenario in the P2P specification. 
     In the WPS specification, the registration apparatus in this embodiment may be a registration apparatus in the WPS specification, and is used to manage creation of a WLAN network, addition or removal of a wireless terminal. In a possible implementation manner, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. For example, the registration apparatus may be integrated into an external device such as another wireless terminal or a computer, and the wireless access device may be integrated into a wireless switch or may be an independent device. In another possible implementation manner, the registration apparatus is integrated into the wireless access device, that is, built in the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. In the two possible implementation processes, the registration apparatus may manage the wireless access device, and may further discover a wireless terminal requesting to access the wireless access device, and send, to the wireless terminal, configuration information for accessing the wireless access device. The wireless access device is an infrastructure in the WLAN network, that is, an access point supporting the 802.11 protocol. In a specific implementation process, the registration apparatus sends the encrypted configuration information to the wireless terminal. After the wireless terminal acquires the correct configuration information, the configuration is completed, and the wireless terminal may subsequently access the wireless access device according to the configuration information. 
     The registration apparatus and the wireless access device in this embodiment are separately integrated into two independent devices. The registration apparatus may be integrated into another intelligent terminal, and the intelligent terminal is used to implement functions of the registration apparatus, such that the wireless access device may have only a wireless access function, achieving a simple design and a low cost. The registration apparatus in this embodiment may also be integrated into the wireless access device, such that the wireless access device has the functions of the registration apparatus, and therefore, no other device is required, which facilitates use by a user. Persons skilled in the art may understand that in a specific implementation process, an appropriate implementation manner may be selected according to an actual situation and respective advantages of the two implementation manners. 
     In the P2P specification, two wireless terminals are connected not using a wireless access point. Instead, a direct connection is established between the two wireless terminals. Furthermore, in a process of interconnecting the two wireless terminals in the P2P specification, after the two wireless terminals discover each other, negotiation is performed according to calculation capabilities and bandwidths of the two wireless terminals and whether the two wireless terminals have a function of a wireless access device. Finally, it is determined, according to a negotiation result, that one of the wireless terminals is a group owner in a non-infrastructure-based WLAN, and this wireless terminal is used as a wireless access device. Persons skilled in the art may understand that in this case, the wireless access device is the group owner in the non-infrastructure-based WLAN, while the other wireless terminal is a client in the non-infrastructure-based WLAN. Persons skilled in the art may understand that the two wireless terminals may be set to directly determine the group owner and the client. In particular, the registration apparatus is further integrated into the wireless access device. In a specific implementation process, the registration apparatus integrated into the wireless access device sends the encrypted configuration information to the client. After the client acquires the correct configuration information, the configuration is completed, and the client may subsequently access the group owner according to the configuration information. In this embodiment, the wireless access device is the group owner in the non-infrastructure-based WLAN, and the wireless terminal is the client in the non-infrastructure-based WLAN, such that the wireless terminal configuration method in this embodiment may be further applied to a scenario of the P2P specification to implement wireless terminal configuration in the P2P specification. 
     Persons skilled in the art may understand that a WLAN includes an infrastructure-based WLAN and a non-infrastructure-based WLAN. The infrastructure-based WLAN may further refer to a WLAN that has a wireless access point. The non-infrastructure-based WLAN may refer to a WLAN that does not have a wireless access point. 
     Therefore, it can be seen that the client in the P2P specification and the wireless terminal in the WPS specification are essentially the same, and are only different in names because of different scenarios. The wireless terminal hereinafter may not only be the wireless terminal in the WPS specification, but also be the client in the P2P specification. In addition, in the foregoing two scenarios, the registration apparatus sends the configuration information to the wireless terminal, such that the wireless terminal accesses the wireless access device. The specific process may include step  101  and step  102 . The following describes step  101  and step  102  in detail. 
     In step  101 , when a user of the wireless terminal needs to use the wireless terminal to join the wireless access device, the user of the wireless terminal triggers the registration apparatus to perform wireless terminal configuration. First, the wireless terminal provides the multi-dimensional code for the registration apparatus, and the registration apparatus scans the multi-dimensional code of the wireless terminal to acquire the multi-dimensional code information. The multi-dimensional code information may be static multi-dimensional code information or dynamic multi-dimensional code information. The multi-dimensional code information may be one-dimensional code information, two-dimensional code information, or three-dimensional code information. The multi-dimensional code information may include a large amount of information, and may further include information such as the configuration password and a wireless terminal identifier. The configuration password may be a key of 128 bits, 256 bits, or another length, or may be a 16-byte PIN key or character string password. Persons skilled in the art may understand that the configuration password obtained by scanning may be long, which makes it difficult to crack the configuration password by brute force, and ensures security of the configuration information. 
     In step  102 , the registration apparatus encrypts the configuration information based on the configuration password. In a specific implementation process, the registration apparatus may encrypt the configuration information by directly using the configuration password, or may encrypt the configuration information using a password derived from the configuration password, or may encrypt the configuration information using the configuration password and a password derived from another random nonce. The configuration information includes information such as credentials generated by the registration apparatus. After the registration apparatus encrypts the configuration information, the registration apparatus sends the encrypted configuration information to the wireless terminal through the wireless access device associated with the registration apparatus. The wireless access device associated with the registration apparatus is a wireless access device managed by the registration apparatus. The registration apparatus first sends the encrypted configuration information to the wireless access device, and then the wireless access device forwards the encrypted configuration information to the wireless terminal. The wireless terminal may decrypt the encrypted configuration information using the configuration password, to acquire the configuration information. After the wireless terminal acquires the configuration information, the configuration of the wireless terminal by the registration apparatus is completed, and then the wireless terminal accesses the wireless access device according to the credentials in the configuration information. 
     In the wireless terminal configuration method provided by this embodiment, a registration apparatus acquires a configuration password of a wireless terminal by scanning a multi-dimensional code of the wireless terminal, and does not require a manual input by a user on the registration apparatus. The registration apparatus encrypts configuration information based on the configuration password, and sends the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal decrypts the encrypted configuration information to acquire the configuration information. Interaction processes between the wireless terminal and the registration apparatus are greatly reduced, and a configuration process of the wireless terminal is simplified. 
       FIG. 2  is a flowchart of Embodiment 2 of a wireless terminal configuration method according to the present disclosure. The wireless terminal configuration method provided by this embodiment may be executed by an apparatus that executes the wireless terminal configuration method. The apparatus may be implemented by software and/or hardware, and configured in a wireless terminal as an executor, where the wireless terminal may execute the wireless terminal configuration method in this embodiment. In this embodiment, on a basis of Embodiment 1, an operation process of a wireless terminal is described in detail. As shown in  FIG. 2 , the method in this embodiment may include the following steps. 
     Step  201 : A wireless terminal receives configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus, where a multi-dimensional code is set in the wireless terminal, such that the registration apparatus scans the multi-dimensional code and acquires multi-dimensional code information, where the multi-dimensional code information includes the configuration password of the wireless terminal. 
     Step  202 : The wireless terminal decrypts the encrypted configuration information to acquire the configuration information, and accesses the wireless access device according to the configuration information. 
     Persons skilled in the art may understand that an application scenario of step  201  and step  202  may also be a scenario in the WPS specification and a scenario in the P2P specification. The specific application scenario is not further described herein in this embodiment. Reference may be made to Embodiment 1. 
     In step  201 , when a user of the wireless terminal needs to use the wireless terminal to join the wireless access device, the user of the wireless terminal triggers the registration apparatus to perform a wireless terminal configuration. In this case, the multi-dimensional code is set in the wireless terminal, such that the registration apparatus scans the multi-dimensional code to acquire the multi-dimensional code information. The multi-dimensional code information may be static or dynamic multi-dimensional code information. The static multi-dimensional code information may be generated when the wireless terminal is delivered from a factory, and is printed on an exterior of the wireless terminal or stored in the wireless terminal. The dynamic multi-dimensional code information may be multi-dimensional code information generated when the wireless terminal joins the wireless access device. The multi-dimensional code stored in the wireless terminal and the multi-dimensional code dynamically generated by the wireless terminal may be displayed to the registration apparatus through a display interface of the wireless terminal. The multi-dimensional code information includes information such as the configuration password of the wireless terminal and a wireless device identifier. 
     In step  201  and step  202 , the wireless terminal receives the configuration information that is encrypted based on the configuration password and sent by the registration apparatus through the wireless access device associated with the registration apparatus. The wireless terminal decrypts the encrypted configuration information to acquire the configuration information. A person skilled in the art may understand that a decryption key used in this embodiment corresponds to an encryption key for encrypting the configuration information by the registration apparatus in Embodiment 1. Therefore, the decryption key is an encryption key based on the configuration password. After acquiring the configuration information, the wireless terminal may access the wireless access device according to credentials in the configuration information. 
     In the wireless terminal configuration method provided by this embodiment, a multi-dimensional code is set in a wireless terminal, such that a registration apparatus acquires a configuration password by scanning the multi-dimensional code and does not require a manual input to the registration apparatus. The wireless terminal receives configuration information that is encrypted based on the configuration password and sent by the registration apparatus through a wireless access device associated with the registration apparatus. The wireless terminal decrypts the encrypted configuration information to acquire the configuration information. A configuration process of the wireless terminal is simplified. 
     On a basis of Embodiment 1 and Embodiment 2, and in particular, in a wireless terminal configuration scenario in the WPS specification and the P2P specification, a wireless terminal configuration may be further triggered by a wireless terminal. A specific process may be shown in  FIG. 3 .  FIG. 3  is a flowchart of Embodiment 3 of a wireless terminal configuration method according to the present disclosure. As shown in  FIG. 3 , the method in this embodiment may include the following steps. 
     Step  301 : A wireless terminal sends a probe request message to a registration apparatus through a wireless access device. 
     Step  302 : The registration apparatus receives the probe request message that is sent by the wireless terminal through the wireless access device. 
     Step  303 : The registration apparatus identifies the wireless terminal using a device identifier of the wireless terminal, and scans a multi-dimensional code of the wireless terminal to acquire multi-dimensional code information. 
     In a specific implementation process, the wireless access device sends a beacon frame to the wireless terminal in a broadcast mode. After receiving the beacon frame sent by the wireless access device, when the wireless terminal determines to access the wireless access device, the wireless terminal sends a probe request to the wireless access device. The wireless access device forwards the probe request to the registration apparatus (as shown in step  301 ). The probe request message includes the device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire a configuration password by scanning. 
     In step  302 , the registration apparatus receives the probe request message that is sent by the wireless terminal through the wireless access device, and obtains the device identifier of the wireless terminal. In step  303 , the registration apparatus identifies the wireless terminal using the device identifier of the wireless terminal, and scans the multi-dimensional code information of the wireless terminal. In a specific implementation process, the registration apparatus may further send a registration setup message to the wireless access device, where the registration setup message includes a message indicating that the wireless terminal has been registered. Then the wireless access device sends the registration setup message to the wireless terminal using a beacon frame. 
     Persons skilled in the art may understand that after step  303 , steps in Embodiment 1 and Embodiment 2 may continue to be executed, which is not further described herein in this embodiment. 
     In the wireless terminal configuration method provided by this embodiment, a wireless terminal configuration is triggered by a wireless terminal, and no manual intervention is required, such that the wireless terminal can acquire configuration information by itself. 
     On a basis of Embodiment 1 to Embodiment 3, there are mainly two possible implementation manners in which a registration apparatus encrypts configuration information based on a configuration password, and sends the encrypted configuration information to a wireless terminal through a wireless access device associated with the registration apparatus, and the wireless terminal decrypts the encrypted configuration to acquire the configuration information. In one possible implementation manner, the wireless terminal obtains the configuration information by means of decryption, and determines that the configuration is completed. In the other possible implementation manner, the registration apparatus verifies that a random nonce returned by the wireless terminal is correct, and determines that the configuration is completed. 
     The possible implementation manner in which the wireless terminal determines that the configuration is completed may include two cases. One case is shown in  FIG. 4 , and the other case is shown in  FIG. 5 . 
       FIG. 4  is a signaling flowchart of Embodiment 4 of a wireless terminal configuration method according to the present disclosure. As shown in  FIG. 4 , the method in this embodiment may include the following steps. 
     Step  401 : A registration apparatus generates a first random nonce. 
     Step  402 : A wireless terminal generates a second random nonce. 
     Persons skilled in the art may understand that there is no strict time sequence relationship between step  401  and step  402 . The first random nonce and the second random nonce may be numeric values randomly generated by the registration apparatus or the wireless terminal, or may be fresh nonces constructed in a manner, for example, values obtained by combining randomly generated numeric values and some fixed values. 
     Step  403 : The registration apparatus sends the first random nonce to the wireless terminal through a wireless access device, where the first random nonce sent by the registration apparatus may not be encrypted, or may be the first random nonce encrypted using a configuration password. 
     Step  404 : The wireless terminal performs calculation on the first random nonce, the second random nonce, and a configuration password using a first preset algorithm, to obtain a first key. 
     In this embodiment, the first preset algorithm may be a hash algorithm, or the like. In an actual application process, an appropriate first preset algorithm may be selected according to difficulty levels and data security. A specific manner of selecting the first preset algorithm is not particularly limited herein in this embodiment. 
     Step  405 : The wireless terminal sends the second random nonce to the registration apparatus through the wireless access device, where the second random nonce sent by the wireless terminal may not be encrypted, or may be the second random nonce encrypted using the configuration password. 
     Persons skilled in the art may understand that this step may occur before step  403  or step  404 , which is not particularly limited herein in this embodiment. 
     Step  406 : The registration apparatus performs calculation on the first random nonce, the second random nonce, and the configuration password using the first preset algorithm, to obtain the first key, and encrypts configuration information using the first key. 
     Persons skilled in the art may understand that the first preset algorithm in this step and the first preset algorithm in step  404  need to be a same type of algorithm. The first key is a shared key between the registration apparatus and the wireless terminal. 
     Step  407 : The registration apparatus sends the encrypted configuration information to the wireless terminal through the wireless access device. 
     Step  408 : The wireless terminal decrypts the encrypted configuration information using the first key, to acquire the configuration information. 
     Because the configuration information is encrypted by the registration apparatus using the first key, the wireless terminal decrypts the encrypted configuration information using the first key, to acquire the configuration information. In addition, step  403  and step  404  can only be executed after step  402  and before step  408 . 
     Step  409 : The wireless terminal sends a configuration completion confirmation message to the registration apparatus through the wireless access device. 
     After both the wireless terminal and the registration apparatus confirm that the configuration is completed, the wireless terminal may access the wireless access device according to credentials in the configuration information. 
     In the wireless terminal configuration method provided by this embodiment, only four interaction processes are needed before a configuration process of a wireless terminal is completed, which greatly simplifies the configuration process. In addition, a registration apparatus and the wireless terminal perform calculation on a first random nonce, a second random nonce, and a configuration password using a first preset algorithm, to obtain a first key, where security of the first key is high. The registration apparatus encrypts configuration information using the first key, and the wireless terminal decrypts the configuration information using the first key, to acquire the configuration information, which ensures security of the configuration process. 
       FIG. 5  is a signaling flowchart of Embodiment 5 of a wireless terminal configuration method according to the present disclosure. As shown in  FIG. 5 , the method in this embodiment may include the following steps. 
     Step  501 : A registration apparatus generates a first random nonce. 
     Step  502 : A wireless terminal generates a second random nonce. 
     Persons skilled in the art may understand that there is no strict time sequence relationship between step  501  and step  502 . The first random nonce and the second random nonce may be any string of numbers, letters, or symbols, or any combination thereof. 
     Step  503 : The wireless terminal sends the second random nonce to the registration apparatus through a wireless access device, where the second random nonce sent by the wireless terminal may not be encrypted, or may be the second random nonce encrypted using a configuration password. 
     Step  504 : The registration apparatus performs calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and encrypts configuration information using the first key. 
     In this embodiment, the first preset algorithm may be a hash algorithm, an algorithm derived from a hash algorithm, or any other algorithm, or the like. In an actual application process, an appropriate first preset algorithm may be selected according to difficulty levels and data security. A specific manner of selecting the first preset algorithm is not particularly limited herein in this embodiment. 
     Step  505 : The registration apparatus sends the first random nonce and the encrypted configuration information to the wireless terminal through the wireless access device, where the first random nonce sent by the registration apparatus may not be encrypted, or may be the first random nonce encrypted using the configuration password. 
     In this step, the registration apparatus may send the first random nonce and the encrypted configuration information to the wireless access device simultaneously, which may simplify an interaction process between the registration apparatus and the wireless terminal. 
     Step  506 : The wireless terminal performs calculation on the first random nonce, the second random nonce, and the configuration password using the first preset algorithm, to obtain the first key, and decrypts the configuration information using the first key, to acquire the configuration information. 
     Persons skilled in the art may understand that the first preset algorithm in this step and the first preset algorithm in step  504  need to be a same type of algorithm. The first key is a shared key between the registration apparatus and the wireless terminal. 
     Step  507 : The wireless terminal sends a configuration completion confirmation message to the registration apparatus through the wireless access device. 
     After both the wireless terminal and the registration apparatus confirm that the configuration is completed, the wireless terminal may access the wireless access device according to credentials in the configuration information. 
     In the wireless terminal configuration method provided by this embodiment, only three interaction processes are needed before a configuration process of a wireless terminal is completed, which greatly simplifies the configuration process. In addition, a registration apparatus and the wireless terminal perform calculation on a first random nonce, a second random nonce, and a configuration password using a first preset algorithm, to obtain a first key, where security of the first key is high. The registration apparatus encrypts configuration information using the first key, and the wireless terminal decrypts the configuration information using the first key, to acquire the configuration information, which ensures security of the configuration process. 
     It can be known above that Embodiment 4 and Embodiment 5 of the present disclosure are essentially the same, and are only slightly different in the time sequence relationship between steps. Sending or receiving in each step may be implemented by sending or receiving a handshake message, where the handshake message may carry a sent random nonce or key or the like. In Embodiment 4, a 4-way handshake is needed between the registration apparatus and the wireless terminal. In Embodiment 5, a 3-way handshake is needed between the registration apparatus and the wireless terminal. Persons skilled in the art may understand that Embodiment 4 and Embodiment 5 are only exemplary embodiments. In a specific implementation process, there is no strict time sequence relationship between steps, so long as the following is implemented. The registration apparatus generates the first random nonce, sends the first random nonce to the wireless terminal through the wireless access device, and receives the second random nonce that is sent by the wireless terminal through the wireless access device. The wireless terminal generates the second random nonce, sends the second random nonce to the registration apparatus through the wireless access device, and receives the first random nonce that is sent by the registration apparatus through the wireless access device, and so long as the following is ensured. The wireless terminal and the registration apparatus can perform calculation on the first random nonce, the second random nonce, and the configuration password using the first preset algorithm, to obtain the first key. The registration apparatus encrypts the configuration information using the first key, and the wireless terminal decrypts the configuration information using the first key, to acquire the configuration information. 
     In the possible implementation manner in which the registration apparatus determines that the confirmation is completed, a specific process may be shown in  FIG. 6 . 
       FIG. 6  is a signaling flowchart of Embodiment 6 of a wireless terminal configuration method according to the present disclosure. As shown in  FIG. 6 , the method in this embodiment may include the following steps. 
     Step  601 : A registration apparatus generates a third random nonce. 
     The third random nonce may be a numeric value randomly generated by the registration apparatus, or may be a fresh nonce constructed in a manner, for example, a value obtained by combining randomly generated numeric values and some fixed values. 
     Step  602 : The registration apparatus encrypts the third random nonce and configuration information using a configuration password. 
     Step  603 : The registration apparatus sends the encrypted third random nonce and configuration information to a wireless terminal through a wireless access device. 
     Step  604 : The wireless terminal decrypts, using the configuration password, the third random nonce and the configuration information that are encrypted by the registration apparatus, to acquire the third random nonce and the configuration information, and encrypts the third random nonce using the configuration password. 
     Step  605 : The wireless terminal sends the third random nonce encrypted by the wireless terminal to the registration apparatus through the wireless access device. 
     Step  606 : The registration apparatus decrypts, using the configuration password, the third random nonce encrypted by the wireless terminal, to acquire the third random nonce, and verifies that the third random nonce decrypted by the registration apparatus is consistent with the third random nonce generated by the registration apparatus. 
     Persons skilled in the art may understand that in a specific implementation process, the registration apparatus receives encrypted third random nonces that are sent by multiple wireless terminals through a wireless access device, but a wireless terminal may send an incorrect third random nonce to the registration apparatus if a malicious attack occurs in a third random nonce transmission process or if the wireless terminal is not an owner of the configuration information. Therefore, for the registration apparatus, if the registration apparatus decrypts the third random nonce successfully and acquires the decrypted third random nonce and determines, by means of verification, that the decrypted third random nonce is consistent with the generated third random nonce, it indicates that the third random nonce is not maliciously attacked in the transmission process or that the wireless terminal is the real owner of the configuration information. 
     Step  607 : The registration apparatus sends a configuration completion confirmation message to the wireless terminal through the wireless access device. 
     In this embodiment, completion of the configuration is determined mainly by means of a verification process performed by the registration apparatus. In the wireless terminal configuration method provided by this embodiment, only three interaction processes are needed before a configuration process of a wireless terminal is completed, which greatly simplifies the configuration process. In addition, a registration apparatus generates a third random nonce, and sends the third random nonce and configuration information that are encrypted using a configuration password to the wireless terminal. The wireless terminal decrypts the third random nonce and the configuration information using the configuration password, and returns the third random nonce encrypted using the configuration password to the registration apparatus, and the registration apparatus verifies that the third random nonce obtained by means of decryption is consistent with the generated third random nonce, and determines that the configuration is completed, thereby ensuring security of the configuration process. 
     In each interaction process in Embodiment 4 to Embodiment 6, each network element may be identified using an identifier of the network element. The identifier of each network element may be further a media access control (MAC) address of each network element. A specific identification process is not further described herein in this embodiment. 
     In conclusion, persons skilled in the art may understand that Embodiment 4 to Embodiment 6 may be understood as an authentication process. When a wireless terminal is acquiring configuration information, this authentication process is performed synchronously. When the authentication succeeds, the wireless terminal acquires the correct configuration information. Therefore, while security is ensured using a configuration password, the configuration process in which the wireless terminal acquires the correct configuration information is simplified. 
       FIG. 7  is a schematic diagram of a structure of Embodiment 1 of a registration apparatus for configuring a wireless terminal according to the present disclosure. As shown in  FIG. 7 , in this embodiment, the registration apparatus for configuring a wireless terminal includes a scanning module  71  and a configuration information encryption module  72 . 
     The scanning module  71  is configured to scan a multi-dimensional code of the wireless terminal to acquire multi-dimensional code information, where the multi-dimensional code information includes a configuration password of the wireless terminal. 
     The configuration information encryption module  72  is configured to encrypt configuration information based on the configuration password, and send the encrypted configuration information to the wireless terminal through a wireless access device associated with the registration apparatus, such that the wireless terminal accesses the wireless access device according to the configuration information. 
     The registration apparatus for configuring a wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 1 of the wireless terminal configuration method according to the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 8  is a schematic diagram of a structure of Embodiment 2 of a registration apparatus for configuring a wireless terminal according to the present disclosure. As shown in  FIG. 8 , on a basis of Embodiment 1 of the registration apparatus for configuring a wireless terminal according to the present disclosure, in this embodiment, the configuration information encryption module  72  is further configured to generate a first random nonce, send the first random nonce to the wireless terminal through the wireless access device, and receive a second random nonce that is sent by the wireless terminal through the wireless access device, perform calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and encrypt the configuration information using the first key, and send the encrypted configuration information to the wireless terminal through the wireless access device. 
     The apparatus further includes a message receiving module  73  configured to receive a configuration completion confirmation message that is sent by the wireless terminal through the wireless access device after the configuration information encryption module sends the encrypted configuration information to the wireless terminal through the wireless access device associated with the registration apparatus. 
     The registration apparatus for configuring a wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 4 or Embodiment 5 of the wireless terminal configuration method. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 9  is a schematic diagram of a structure of Embodiment 3 of a registration apparatus for configuring a wireless terminal according to the present disclosure. As shown in  FIG. 9 , on a basis of Embodiment 1 of the registration apparatus for configuring a wireless terminal according to the present disclosure, in this embodiment, the configuration information encryption module  72  is further configured to generate a third random nonce, encrypt the third random nonce and the configuration information using the configuration password, and send the third random nonce and the configuration information that are encrypted by the registration apparatus to the wireless terminal through the wireless access device. 
     The apparatus further includes a random nonce receiving module  74  configured to receive the third random nonce that is encrypted by the wireless terminal and sent by the wireless terminal through the wireless access device after the configuration information encryption module sends the encrypted configuration information to the wireless terminal through the wireless access device associated with the registration apparatus, a random nonce decryption module  75  configured to decrypt, using the configuration password, the third random nonce that is encrypted by the wireless terminal, to acquire the third random nonce, and a verification module  76  configured to verify whether the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, and if consistent, send a configuration completion confirmation message to the wireless terminal through the wireless access device. 
     The registration apparatus for configuring a wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 6 of the wireless terminal configuration method according to the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
     On a basis of Embodiment 1 to Embodiment 3 of the registration apparatus for configuring a wireless terminal according to the present disclosure, optionally, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     Optionally, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     Optionally, the registration apparatus is integrated into the wireless access device, the wireless access device is a group owner in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     On a basis of Embodiment 1 to Embodiment 3 of the registration apparatus for configuring a wireless terminal according to the present disclosure, the apparatus provided by this embodiment further includes a request receiving module  77  and an identification module  78 . 
     The request receiving module  77  is configured to receive, before the scanning module scans the multi-dimensional code of the wireless terminal to acquire the multi-dimensional code information, a probe request message that is sent by the wireless terminal through the wireless access device, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning. 
     The identification module  78  is configured to identify the wireless terminal using the device identifier of the wireless terminal, and scan the multi-dimensional code information of the wireless terminal. 
     Optionally, the multi-dimensional code information is dynamic multi-dimensional code information or static multi-dimensional code information. 
     The registration apparatus for configuring a wireless terminal in this embodiment may be used to execute the technical solution of the wireless terminal configuration method provided by any embodiment of the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 10  is a schematic diagram of a structure of Embodiment 1 of a wireless terminal according to the present disclosure. The wireless terminal provided by this embodiment may be configured in a wireless terminal. As shown in  FIG. 10 , the wireless terminal in this embodiment includes an information receiving module  81 , a configuration information decryption module  82 , and an access module  83 . 
     The information receiving module  81  is configured to receive configuration information that is encrypted based on a configuration password and sent by a registration apparatus through a wireless access device associated with the registration apparatus, where a multi-dimensional code is set in the wireless terminal, such that the registration apparatus scans the multi-dimensional code and acquires multi-dimensional code information, where the multi-dimensional code information includes the configuration password of the wireless terminal. 
     The configuration information decryption module  82  is configured to decrypt the encrypted configuration information based on the configuration password to acquire the configuration information. 
     The access module  83  is configured to access the wireless access device according to the configuration information. 
     The wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 2 of the wireless terminal configuration method according to the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 11  is a schematic diagram of a structure of Embodiment 2 of a wireless terminal according to the present disclosure. On a basis of Embodiment 1 of the wireless terminal according to the present disclosure, in this embodiment, the configuration information decryption module  82  is further configured to generate a second random nonce, send the second random nonce to the registration apparatus through the wireless access device, and receive a first random nonce that is sent by the registration apparatus through the wireless access device, perform calculation on the first random nonce, the second random nonce, and the configuration password using a first preset algorithm, to obtain a first key, and decrypt the encrypted configuration information using the first key, to acquire the configuration information. 
     Optionally, the wireless terminal further includes a confirmation module  84  configured to send a configuration completion confirmation message to the registration apparatus through the wireless access device after the configuration information decryption module acquires the configuration information. 
     The wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 4 or 5 of the wireless terminal configuration method according to the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 12  is a schematic diagram of a structure of Embodiment 3 of a wireless terminal according to the present disclosure. On a basis of Embodiment 1 of the wireless terminal according to the present disclosure, in this embodiment, the information receiving module  81  is further configured to receive a third random nonce and the configuration information that are encrypted by the registration apparatus using the configuration password and sent by the registration apparatus through the wireless access device, where the third random nonce is generated by the registration apparatus. 
     The configuration information decryption module  82  is further configured to decrypt, using the configuration password, the third random nonce and the configuration information that are encrypted by the registration apparatus, to acquire the third random nonce and the configuration information. 
     Optionally, the wireless terminal further includes a random nonce encryption module  85  configured to, after the configuration information decryption module acquires the configuration information, encrypt, using the configuration password, the third random nonce that is acquired by means of decryption, and send the third random nonce encrypted by the wireless terminal to the registration apparatus through the wireless access device, and a confirmation receiving module  86  configured to receive a configuration completion confirmation message that is sent by the registration apparatus through the wireless access device after the registration apparatus verifies that the decrypted third random nonce is consistent with the third random nonce generated by the registration apparatus, where the decrypted third random nonce is the third random nonce that is acquired by the registration apparatus after the third random nonce encrypted by the wireless terminal is decrypted using the configuration password. 
     The wireless terminal in this embodiment may be used to execute the technical solution of Embodiment 6 of the wireless terminal configuration method according to the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
     On a basis of Embodiment 1 to Embodiment 3 of the wireless terminal according to the present disclosure, optionally, the registration apparatus and the wireless access device are separately integrated into two independent devices, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     Optionally, the registration apparatus is integrated into the wireless access device, and the wireless access device is a wireless access point in an infrastructure-based WLAN. 
     Optionally, the registration apparatus is integrated into the wireless access device, the wireless access device is a GO in a non-infrastructure-based WLAN, and the wireless terminal is a client in the non-infrastructure-based WLAN. 
     On a basis of Embodiment 1 to Embodiment 3 of the wireless terminal according to the present disclosure, in this embodiment, the wireless terminal further includes a message sending module  87  configured to send a probe request message to the registration apparatus through the wireless access device before the information receiving module receives the configuration information that is encrypted based on the configuration password and sent by the registration apparatus through the wireless access device associated with the registration apparatus, where the probe request message includes a device identifier of the wireless terminal and instruction information for instructing the registration apparatus to acquire the configuration password by scanning the multi-dimensional code. 
     The wireless terminal in this embodiment may be used to execute the technical solution of the wireless terminal configuration method provided by any embodiment of the present disclosure. The implementation principle and technical effect thereof are similar, and are not further described herein. 
       FIG. 13  is a schematic diagram of a structure of Embodiment 4 of a registration apparatus for configuring a wireless terminal according to the present disclosure. As shown in  FIG. 13 , a registration apparatus  90  in this embodiment may include a processor  91  and a memory  92 . The registration apparatus  90  may further include a transmitter  93  and a receiver  94 . The transmitter  93  and the receiver  94  may be connected to the processor  91 . The memory  92  stores an execution instruction. When the registration apparatus  90  runs, the processor  91  communicates with the memory  92 , and the processor  91  invokes the execution instruction in the memory  92 , and is configured to execute an operation of the registration apparatus in any one of Embodiment 1 to Embodiment 6 of the wireless terminal configuration method. 
       FIG. 14  is a schematic diagram of a structure of Embodiment 4 of a wireless terminal according to the present disclosure. As shown in  FIG. 14 , a wireless terminal  100  in this embodiment may include a processor  101  and a memory  102 . The wireless terminal  100  may further include a transmitter  103  and a receiver  104 . In particular, the wireless terminal  100  may further include a display configured to display a multi-dimensional code. The transmitter  103  and the receiver  104  may be connected to the processor  101 . The memory  102  stores an execution instruction. When the wireless terminal  100  runs, the processor  101  communicates with the memory  102 , and the processor  101  invokes the execution instruction in the memory  102 , and is configured to execute an operation of the wireless terminal in any one of Embodiment 1 to Embodiment 6 of the wireless terminal configuration method. 
     In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the unit or module division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or modules may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented using some interfaces. The indirect couplings or communication connections between the apparatuses or modules may be implemented in electronic, mechanical, or other forms. 
     The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one position, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual requirements to achieve the objectives of the solutions of the embodiments. 
     Persons of ordinary skill in the art may understand that all or some of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes any medium that can store program code, such as a read-only memory (ROM), a random-access memory (RAM), a magnetic disk, or an optical disc. 
     Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure, but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present disclosure.