Patent ID: 8693038

Claim:
A wireless communication device configured to be capable of operating selectively in any state among a plurality of states including a parent state performing as a parent station of a wireless network and a child state performing as a child station of the wireless network, the wireless communication device comprising: one or more processors; and a memory that stores a computer program including instructions executed by the one or more processors, wherein the instructions cause the one or more processors, when executed by the one or more processors, to function as: a determination unit configured to determine a state among the plurality of states in which the wireless communication device is to operate; a creating unit configured to create first authentication information included in a first wireless profile for constructing a first wireless network, in a case where the first wireless network including the wireless communication device and a first external device is to be constructed, and it is determined that the wireless communication device is to operate in the parent state; and a communication executing unit configured to construct the first wireless network by executing a communication for establishing a wireless connection with the first external device by using the first wireless profile including the first authentication information, wherein in a case where a second wireless network including the wireless communication device and a second external device is to be constructed after the first wireless network has disappeared, and it is determined that the wireless communication device is to operate in the parent state: the creating unit is further configured to create second authentication information included in a second wireless profile for constructing the second wireless network, the second authentication information being different from the first authentication information; and the communication executing unit is further configured to construct the second wireless network by executing a communication for establishing a wireless connection with the second external device by using the second wireless profile including the second authentication information.