Patent ID: 8582471

Claim:
A method of setting up a wireless ad-hoc network, the method comprising: interchanging, at a terminal, a terminal identifier and Wi-Fi protected setup (WPS) capability information with another terminal of the wireless ad-hoc network; selecting, at the terminal, a role of the terminal as a registrar or an enrollee based on the interchanged terminal identifier and the interchanged WPS capability information of the wireless ad-hoc network; and optionally registering in the registrar based on the selected role, wherein the interchanged WPS capability information of the terminal comprises an information field for informing the other terminal of all WPS roles that the terminal is capable of serving as the registrar or the enrollee, and wherein when the terminal is capable of serving as either of the registrar and the enrollee, the information field of the WPS capability information of the terminal indicates that the terminal is capable of serving as the registrar and capable of serving as the enrollee.