A non-transitory computer-readable medium storing computer-readable instructions therein, the computer-readable instructions, when executed by a processor of a wireless communication device configured to operate selectively in one of a plurality of statuses comprising a master-station status for serving as a master station of a wireless network and a slave-station status for serving as a slave station of the wireless network, instructing the wireless communication device to:
- perform a first process for establishing a first-type connection with a first device in response to satisfaction of a first condition, the first process comprising:
- performing a response process comprising:
- receiving from the first device a search signal, and
- transmitting to the first device a response signal in response to the search signal;
- performing a determining process in response to performance of the response process, the determining process comprising:
- assigning one of the master-station status and the slave-station status to the wireless communication device;
- and
- establishing the first-type connection with the first device, in which the wireless communication device is configured to operate as one of the master station and the slave station in accordance with the one of the master-station status and the slave-station status assigned to the wireless communication device in the determining process;
- perform a second process for establishing a second-type connection with a second device in response to satisfaction of a second condition, the second process comprising:
- establishing the second-type connection with the second device in response to detecting the second device,
- wherein one of the first process and the second process is performed in response to one of the following:
- the first condition is satisfied while the second process is being performed, and
- the second condition is satisfied while the first process is being performed.