Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The technical scheme of the embodiment of the present invention can be applicable to WPS and consults in the processing procedure of access.More specifically, the embodiment of the present invention is by the WPS field of carrying in the WPS request message being sent according to STA by AP, judge and know the corresponding WPS version of described STA, and the rate set field of carrying in the WPS request message sending according to described STA judges the mode of operation of knowing described STA.Whether described AP is consistent with WPS version and the mode of operation of described STA with mode of operation by judging self current WPS version, if inconsistent, WPS version and mode of operation that the current WPS version of described AP self and mode of operation are set to described STA, and encryption mode is set to WPS version and the corresponding encryption mode of mode of operation with described STA, and simultaneous display/renewal WPS version, mode of operation and encryption mode information, carry out WPS with described STA and consult access, so that described STA is linked into described AP, can realize the compatibility of different WPS versions.Can solve in prior art exists the encryption mode of AP to fix, can not automatically carry out corresponding configuration according to WPS release type corresponding to user's STA, mode of operation information, cause incompatible between WPS different editions, and user is unclear to WPS agreement, the encryption mode of manual modification AP easily causes and does not mate, and also can cause problem incompatible between WPS different editions.
Fig. 1 is the processing method one embodiment flow chart that WPS provided by the invention consults access, and as shown in Figure 1, the present embodiment comprises:
101: the Wi-Fi protection that wireless access accessing points AP receiving workstation point STA sends arranges WPS request message, and wherein, described WPS request message comprises WPS version and the mode of operation that described STA is corresponding;
Wherein, the Wi-Fi protection that described STA sends arranges in WPS request message can carry WPS field and rate set field; Wherein, described WPS Related fields be the WPS version that described STA is corresponding, described rate set Related fields be the mode of operation of the WPS version that described STA is corresponding.
102: WPS version and the mode of operation of according to described WPS request message, knowing described STA;
Wherein, described WPS version and the mode of operation of knowing described STA according to described WPS request message, is specially:
AP can be known according to described WPS field the WPS version of described STA, knows the mode of operation of the WPS version of described STA according to described rate set field.
Wherein, described WPS version comprises: WPS V1.0 version and WPS V2.0 version.
Wherein, the corresponding relation between described WPS version and mode of operation comprises:
If the version of described WPS is WPS V1.0 version, described mode of operation can be IEEE802.11N pattern, IEEE802.11G pattern or IEEE802.11B pattern;
If the version of described WPS is WPS V2.0 version, described mode of operation is 11N pattern.
103: the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA;
Wherein, described WPS version and the corresponding encryption mode of mode of operation comprise:
If described WPS version is WPS V1.0 version, described mode of operation is 11N pattern, and corresponding encryption mode is WPA2-PSK/AES;
If described WPS version is WPS V1.0 version, when described mode of operation is 11B pattern, corresponding encryption mode is OPEN+NONE;
If described WPS version is WPS V1.0 version, when described mode of operation is 11G pattern, corresponding encryption mode is OPEN+NONE, WPA-PSK/TKIP or WPA2-PSK/AES;
If described WPS version is WPS V2.0 version, when described mode of operation is 11N pattern, corresponding encryption mode is WPA2-PSK/AES.
A kind of situation is, the WPS version of described STA is WPS V2.0 version, and described mode of operation is 11N pattern; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge that the current WPS version of described AP is not WPS V2.0 version, the WPS version of described AP is set to WPS V2.0 version;
Judge that the current mode of operation of described AP is not 11N pattern, the mode of operation of the WPS version of described AP is set to 11N pattern;
Described AP encryption mode is set to WPA2-PSK/AES encryption mode.
Another kind of situation is, the WPS version of described STA is WPS V1.0 version, and described mode of operation is 11N pattern; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge described AP current WPS version not for WPS V1.0 version, the WPS version of described AP is set to WPS V1.0 version;
Judge that the current mode of operation of described AP is not 11N pattern, the mode of operation of the WPS version of described AP is set to 11N pattern;
Described AP encryption mode is set to WPA2-PSK/AES encryption mode.
Another kind of situation is, the WPS version of described STA is WPS V1.0 version, and described mode of operation is 11B pattern; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge that the current WPS version of described AP is not WPS V1.0 version, the WPS version of described AP is set to WPS V1.0 version;
Judge that the current mode of operation of described AP is not 11B pattern, the mode of operation of the WPS version of described AP is set to 11B pattern;
Described AP encryption mode is set to OPEN+NONE encryption mode.
Further, described method also comprises:
Described AP receives the associated request message that described STA sends, and described associated request message comprises the encryption mode that described STA is corresponding.
Further, a kind of situation is, the WPS version of described STA is WPS V1.0 version, and described mode of operation is 11G pattern, and described encryption mode is OPEN+NONE encryption mode; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge that the current WPS version of described AP is not WPS V1.0 version, the WPS version of described AP is set to WPS V1.0 version;
Judge that the current mode of operation of described AP is not 11G pattern, the mode of operation of the WPS version of described AP is set to 11G pattern;
Described AP encryption mode is set to OPEN+NONE encryption mode.
Wherein, if the WPS version of described STA is WPS V1.0 version, when described mode of operation is 11G pattern, corresponding encryption mode is OPEN+NONE, WPA-PSK/TKIP or WPA2-PSK/AES, the fail safe of described WPA2-PSK/AES encryption mode will be higher than described WPA-PSK/TKIP encryption mode, the fail safe of described OPEN+NONE encryption mode is minimum, this scheme is when the corresponding encryption mode of described STA is described OPEN+NONE encryption mode, only considering to allow described STA to be linked into described AP, the encryption mode of described AP is set to the lower encryption mode of this fail safe of OPEN+NONE encryption mode.
Further, another kind of situation is, the WPS version of described STA is WPS V1.0 version, and described mode of operation is 11G pattern, and described encryption mode is WPA-PSK/TKIP encryption mode; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge that the current WPS version of described AP is not WPS V1.0 version, the WPS version of described AP is set to WPS V1.0 version;
Judge that the current mode of operation of described AP is not 11G pattern, the mode of operation of the WPS version of described AP is set to 11G pattern;
Described AP encryption mode is set to WPA-PSK/TKIP encryption mode.
Further, another kind of situation is, the WPS version of described STA is WPS V1.0 version, and described mode of operation is 11G pattern, and described encryption mode is WPA2-PSK/AES encryption mode; Corresponding, the WPS version and the mode of operation that judge WPS version that described AP is current and mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA, comprising:
Judge that the current WPS version of described AP is not WPS V1.0 version, the WPS version of described AP is set to WPS V1.0 version;
Judge that the current mode of operation of described AP is not 11G pattern, the mode of operation of the WPS version of described AP is set to 11G pattern;
Described AP encryption mode is set to WPA2-PSK/AES encryption mode.
104: described AP and described STA carry out WPS negotiation access by WPS version and the corresponding encryption mode of mode of operation of described STA.
Wherein, described AP and described STA carry out WPS negotiation access by WPS version and the corresponding encryption mode of mode of operation of described STA, comprising:
Described AP according to the current WPS version of the corresponding described WPS version of described STA, described mode of operation self and mode of operation be set to consistent with the described WPS version of described STA, described mode of operation after, and encryption mode is set to WPS version and the corresponding encryption mode of described mode of operation with described STA, when the described encryption mode that described AP arranges also consistent with WPS version and the corresponding encryption mode of described mode of operation of described STA, described AP and described STA carry out WPS negotiation, and allow described STA to be linked into described AP.
The embodiment of the present invention receives by AP the WPS request message that STA sends, WPS version, the mode of operation corresponding according to described STA, whether consistent with WPS version, the mode of operation of described STA by judging self current WPS version, mode of operation by AP, if inconsistent, self current WPS version and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and encryption mode is set to the corresponding encryption mode of WPS version, mode of operation with described STA.Can realize WPS version and the mode of operation of STA in the WPS request sending according to STA, self current WPS version, mode of operation and encryption mode is set consistent with it, realize the compatibility of different WPS versions, the STA that realizes different WPS versions is linked into AP.
Fig. 2 is another embodiment flow chart of processing method that WPS provided by the invention consults access, and as shown in Figure 2, the present embodiment comprises:
The WPS version that judges WPS version that described AP is current and described STA is inconsistent, and mode of operation is consistent with the mode of operation of described STA, and the WPS version of described AP is set to the WPS version of described STA;
Or, judging that the current WPS version of described AP is consistent with the WPS version of described STA, the mode of operation of mode of operation and described STA is inconsistent, and the mode of operation of described AP is set to the mode of operation of described STA;
Or, the WPS version that judges WPS version that described AP is current and described STA is inconsistent, the mode of operation of mode of operation and described STA is also inconsistent, and the WPS version of described AP is set to the WPS version of described STA, and mode of operation is set to the mode of operation of described STA;
The encryption mode of described AP is set to WPS version and encryption mode corresponding to mode of operation of described STA.
Optionally, the present embodiment is specially:
201:AP device start initial configuration are the encryption mode of customization or the encryption mode of acquiescence;
Wherein, if user to described AP device customizing encryption mode, after described AP device start, the encryption mode that initial configuration is described customization; If user is not to described AP device customizing encryption mode,, after described AP device start, initial configuration is the encryption mode of acquiescence.
202: described AP equipment receives the WPS request message that described STA equipment sends, according to described WPS request message, know WPS version and the mode of operation of described STA equipment;
Wherein, described AP equipment receives the WPS request message that described STA equipment sends, and knows WPS version and the mode of operation of described STA equipment according to described WPS request message, comprising:
In the WPS request message that described STA equipment sends, WPS field and rate set field have been carried;
Described AP equipment can be known the WPS version of described STA equipment according to described WPS field, can know the mode of operation of the WPS version of described STA equipment according to described rate set field.
Wherein, described WPS version comprises: WPS V1.0 version and WPS V2.0 version.
Wherein, the WPS version of described STA equipment and the corresponding relation between mode of operation are specially:
If the version of described WPS is WPS V1.0 version, described WPS mode of operation can be 11N pattern, 11G pattern or 11B pattern;
If the version of described WPS is WPS V2.0 version, described WPS mode of operation can be 11N pattern.
203: described AP equipment judges whether the described WPS version of described STA equipment is WPS V2.0, if so, carries out 204, otherwise, carry out 209;
204: described AP equipment judges whether self current WPS version is WPS V2.0, if so, carries out 205, otherwise, carry out 206;
205: described AP equipment judges whether self current mode of operation is 11N pattern, if so, carries out 208, otherwise, carry out 207;
Wherein, described WPS version is WPS V2.0 version, and described mode of operation is 11N pattern.
206: the current WPS version of described AP equipment self is set to WPS V2.0 version;
207: the current mode of operation of described AP equipment self is set to 11N pattern;
208: described AP equipment encryption mode is set to WPA2-PSK/AES encryption mode, and carries out 223;
209: described AP equipment judges whether the WPS version of self is WPS V1.0, if so, carries out 210, otherwise, carry out 211;
210: described AP equipment judges whether the described mode of operation of described STA equipment is 11N pattern, if so, carries out 205, otherwise, carry out 212;
211: described AP equipment self current WPS version be set to WPS V1.0 version;
212: described AP equipment judges whether the described mode of operation of described STA equipment is 11G pattern, if so, carries out 213, otherwise, carry out 220;
213: described AP equipment judges whether self current mode of operation is 11G pattern, if so, carries out 215, otherwise carries out 214;
214: the current mode of operation of described AP equipment self is set to 11G pattern;
Wherein, described AP equipment receives the associated request message that described STA equipment sends, and described associated request message comprises encryption mode corresponding to described STA equipment.
Wherein, the corresponding described WPS version of described STA equipment is WPS V1.0, and when described mode of operation is 11G, described encryption mode can be OPEN+NONE, WPA-PSK/TKIP or WPA2-PSK/AES encryption mode.
215: described AP equipment judges whether the described encryption mode that described STA equipment is corresponding is WPA2-PSK/AES, if so, carries out 216, otherwise, carry out 217;
216: the current encryption mode of described AP equipment self is set to WPA2-PSK/AES encryption mode, and carries out 223;
217: described AP equipment judges whether the described encryption mode that described STA equipment is corresponding is WPA-PSK/TKIP, if so, carries out 218, otherwise, carry out 219;
218: the current encryption mode of described AP equipment self is set to WPA-PSK/TKIP encryption mode, and carries out 223;
219: the current encryption mode of described AP equipment self is set to OPEN+NONE encryption mode, and carries out 223;
Wherein, this scheme is when the corresponding described encryption mode of described STA equipment is described OPEN+NONE encryption mode, only considering to allow described STA equipment access to described AP equipment, the encryption mode of described AP equipment is set to the lower encryption mode of described STA equipment this fail safe of corresponding described encryption mode OPEN+NONE encryption mode.
220: described AP equipment judges whether self current mode of operation is 11B pattern, if so, carries out 222, otherwise, carry out 221;
221: the current mode of operation of described AP equipment self is set to 11B pattern;
222: the current encryption mode of described AP self is set to OPEN+NONE encryption mode, and carries out 223;
223: described AP device synchronization shows/upgrade current WPS version, mode of operation and encryption mode;
Wherein, described AP device synchronization shows/upgrades that current WPS version, mode of operation and encryption mode are by synchronous refresh Internet user interface (World Wide Web User Interface, be called for short WEB UI) or light-emitting diode screen (Light Emitting Diode is called for short LED) realization.
224: described AP equipment and described STA equipment carry out WPS and consults access.
Wherein, described AP equipment and described STA equipment carry out WPS and consult access, comprising:
Described AP equipment is according to the corresponding described WPS version of described STA equipment, the WPS version that described mode of operation self is current and mode of operation are set to and the corresponding described WPS version of described STA equipment, after described mode of operation is consistent, and encryption mode is set to WPS version and the corresponding encryption mode of described mode of operation with described STA equipment, when the described encryption mode that described AP equipment arranges also consistent with described WPS version and the corresponding encryption mode of described mode of operation of described STA equipment, described AP equipment and described STA equipment carry out WPS negotiation, and allow described STA equipment access to described AP equipment.
The embodiment of the present invention receives by AP the WPS request message that STA sends, WPS version, the mode of operation corresponding according to described STA, whether consistent with WPS version, the mode of operation of described STA by judging self current WPS version, mode of operation by AP, if inconsistent, self current WPS version and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and encryption mode is set to the corresponding encryption mode of WPS version, mode of operation with described STA.Can realize WPS version and the mode of operation of STA in the WPS request sending according to STA, self current WPS version, mode of operation and encryption mode is set consistent with it, realize the compatibility of different WPS versions, the STA that realizes different WPS versions is linked into AP.
Fig. 3 is the structural representation of AP equipment one embodiment provided by the invention, and this AP equipment can be used for carrying out the processing method that above-mentioned relevant WPS consults access.As shown in Figure 3, the AP equipment of the present embodiment comprises: receiver module 31, know module 32, module 33 is set and consults access module 34;
Wherein, the Wi-Fi protection that receiver module 31 sends for receiving workstation point STA arranges WPS request message, and wherein, described WPS request message comprises WPS version and the mode of operation that described STA is corresponding; Know that module 32 is for knowing WPS version and the mode of operation of described STA according to described WPS request message; Module 33 is set inconsistent for judging WPS version and the mode of operation of WPS version that AP is current and mode of operation and described STA, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA; Consulting access module 34 carries out WPS for the WPS version by with described STA and the corresponding encryption mode of mode of operation with described STA and consults to access.
Wherein, the described concrete effect that module and described negotiation access module are set, with embodiment of the method is consistent accordingly, repeats no more herein.
In addition, the associated request message that described receiver module also sends for receiving described STA, described associated request message carries the encryption mode that described STA is corresponding.
Further, the described concrete effect that module and described negotiation access module are set, with embodiment of the method is consistent accordingly, repeats no more herein.
Wherein, the WPS that above-mentioned functions module can be used for carrying out the embodiment of the present invention to be provided consults the flow process of the processing method of access, be mainly used in receiving by the receiver module of AP equipment the WPS request message that STA sends, by knowing WPS request message that module receives according to described receiver module, know WPS version and the mode of operation of STA, by module being set according to the WPS version of STA and mode of operation arranges the current WPS version of AP and mode of operation is consistent with WPS version and the mode of operation of described STA, and encryption mode is set to WPS version and the corresponding encryption mode of mode of operation with described STA, by consulting access module, described STA is linked into described AP again, its specific works principle refers to the description of embodiment of the method, do not repeat them here.
By above-mentioned module, the WPS request message that the AP equipment of the present embodiment can send by receiving STA, know WPS version, mode of operation that described STA is corresponding, and judge that whether self current WPS version, mode of operation be consistent with WPS version, the mode of operation of described STA, if inconsistent, WPS version and mode of operation that self current WPS version and mode of operation are set to described STA, and encryption mode is set to the corresponding encryption mode of WPS version, mode of operation with described STA.Can realize WPS version and the mode of operation of STA in the WPS request sending according to STA, self current WPS version, mode of operation and encryption mode is set consistent with it, realize the compatibility of different WPS versions.
Fig. 4 is the structural representation of another embodiment of AP equipment provided by the invention, as shown in Figure 4.This AP equipment comprises information receiving-transmitting device and processor 41 and memory 42, and wherein information receiving-transmitting device can comprise the RF circuit 43 shown in figure or WiFi module 44, carries out reception and the transmission of information by wireless mode.Memory 42 can comprise the memory device of the various ways such as internal memory and hard disk, for storing relevant configuration information, and such as version, mode of operation and encryption mode etc.The Wi-Fi protection that information receiving-transmitting device sends for receiving workstation point STA arranges WPS request message, and wherein said WPS request message comprises WPS version and the mode of operation that described STA is corresponding; Processor 41 is for knowing WPS version and the mode of operation of described STA according to described WPS request message; The WPS version that judgement AP is current and WPS version and the mode of operation of mode of operation and described STA are inconsistent, the WPS version of described AP and mode of operation are set to respectively to WPS version and the mode of operation of described STA, and the encryption mode of described AP is set to WPS version and the corresponding encryption mode of mode of operation with described STA; By the WPS version with described STA and the corresponding encryption mode of mode of operation, carry out WPS with described STA and consult access.
In the AP equipment that the present embodiment provides, can also provide for equipment the power supply 44 of electric weight, and for carrying out the input unit 45 that for example encryption mode is set, and for showing the display unit 46 of the information such as WPS version, mode of operation and encryption mode.
Wherein, the WPS that above-mentioned functions module can be used for carrying out the embodiment of the present invention to be provided consults the flow process of the processing method of access, be mainly used in receiving the WPS request message that STA sends, according to described WPS request message, know WPS version and the mode of operation of STA, and according to the WPS version of STA with mode of operation arranges the current WPS version of AP and mode of operation is consistent with WPS version and the mode of operation of described STA, and encryption mode is set to WPS version and the corresponding encryption mode of mode of operation with described STA, by consulting access module, described STA is linked into described AP again, its specific works principle refers to the description of embodiment of the method, do not repeat them here.
By above-mentioned module, the WPS request message that the AP equipment of the present embodiment can send by receiving STA, know WPS version, mode of operation that described STA is corresponding, and judge that whether self current WPS version, mode of operation be consistent with WPS version, the mode of operation of described STA, if inconsistent, WPS version and mode of operation that self current WPS version and mode of operation are set to described STA, and encryption mode is set to the corresponding encryption mode of WPS version, mode of operation with described STA.Can realize WPS version and the mode of operation of STA in the WPS request sending according to STA, self current WPS version, mode of operation and encryption mode is set consistent with it, realize the compatibility of different WPS versions.
In several embodiment provided by the present invention, should be understood that disclosed apparatus and method can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) carry out the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CDs.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.The specific works process of the device of foregoing description, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
Finally it should be noted that: each embodiment, only in order to technical scheme of the present invention to be described, is not intended to limit above; Although the present invention is had been described in detail with reference to aforementioned each embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or some or all of technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.