CPC G06F 3/1236 (2013.01) [G06F 3/1222 (2013.01); G06F 3/1231 (2013.01); G06F 3/1292 (2013.01); G06F 3/1293 (2013.01); G06K 7/10722 (2013.01); G06K 7/1417 (2013.01); H04W 12/04 (2013.01); H04W 12/06 (2013.01)] | 6 Claims |
1. A first communication device comprising:
a wireless interface configured to execute wireless communication in conformity with a Wi-Fi standard, and
a controller configured to:
execute an output control process of externally outputting output information, the output information being in conformity with the Wi-Fi standard and obtained using a public key of the first communication device;
receive, via the wireless interface, an authentication request in which the public key is used from a second communication device that has obtained the public key;
in a case where the authentication request is received from the second communication device and a state of the first communication device is a Group Owner state:
send a first authentication response to the second communication device via the wireless interface, the first authentication response including first role information indicating that the first communication device is to serve a first role which is a role of sending first wireless setting information to the second communication device, the first wireless setting information being for the second communication device to establish a first wireless connection with the first communication device not via an access point; and
send the first wireless setting information to the second communication device via the wireless interface after the first authentication response has been sent to the second communication device;
in a case where the authentication request is received from the second communication device and the state of the first communication device is not the Group Owner state:
send a second authentication response to the second communication device via the wireless interface, the second authentication response including second role information indicating that the first communication device is to serve a second role which is different from the first role and is a role of receiving second wireless setting information from the second communication device, the second wireless setting information being for the first communication device to establish a second wireless connection with the second communication device not via the access point;
receive the second wireless setting information from the second communication device via the wireless interface after the second authentication response has been sent to the second communication device; and
establish the second wireless connection via the wireless interface using the second wireless setting information.
|