Patent ID: 8792391

Claim:
A communication apparatus comprising: a creation unit constructed to create a network; a search unit constructed to search for another network after the network is created by said creation unit; a determination unit constructed to determine a role of another communication apparatus in a setting procedure for setting a communication parameter, wherein the other communication apparatus resides in the other network searched by said search unit; a join unit constructed to join the other network, if it is determined by the determination unit that the role of the other communication apparatus residing in the other network is a provider of communication parameters; a setting unit constructed to execute the communication parameter setting procedure with the other communication apparatus in the other network joined by said join unit; a decision unit constructed to decide a role of the communication apparatus for the communication parameter setting procedure; and a notification unit constructed to notify the other communication apparatus of the role decided by said decision unit, wherein said notification unit notifies the other communication apparatus of an activation state of the role decided by said decision unit.