Patent ID: 8233405

Claim:
A communication device that shares communication parameters necessary for forming a first network between the communication device and one or more other communication devices, in order that the communication device and the one or more other communication devices perform a predetermined process on the first network in accordance with a user operation, the communication device comprising: an acquiring unit configured to acquire device type information about other communication devices joining a second network that the communication device is joining; a determining unit configured to determine, based on the device type information acquired by the acquiring unit, whether there is a communication device having an essential device type for performing the predetermined process; and a control unit configured to perform control to continue a sharing process for sharing the communication parameters between the communication device and the one or more other communication devices on the second network in order to form the first network and perform the predetermined process on the first network, in response to the determining unit determining that there is a communication device having the essential device type, and to perform control to terminate the sharing process for sharing communication parameters between the communication device and the one or more other communication devices without sharing the communication parameters between the communication device and the one or more other communication devices in response to the determining unit determining that there is no communication device having the essential device type.