Patent ID: 8922820

Claim:
A non-transitory computer-readable medium having a communication control program stored thereon and readable by a controller of a communication apparatus, wherein the communication apparatus comprises: a first communication unit configured to perform communication by a near field communication method; a second communication unit configured to perform communication by a wireless communication method that is different from the near field communication method; a storage unit comprising a first storage area that is allotted to the communication control program; and the controller, the communication control program, when executed by the controller, causes the controller to perform operations comprising: a first determination process of determining whether a wireless setting for performing wireless communication through the second communication unit is stored in the first storage area; a request process of, in a case where the communication apparatus is in communication with an external apparatus through the first communication unit, requesting a wireless setting for performing wireless communication with the external apparatus through the second communication unit from the external apparatus through the first communication unit; an acquire process of, in response to the request issued by the request unit, acquiring a wireless setting for performing wireless communication with the external apparatus through the second communication unit from the external apparatus through the first communication unit; and a communication control process of, in a case where the first determination process determines that the wireless setting is not stored in the first storage area and in a case where the wireless setting is acquired from the external apparatus by the acquire process, setting the acquired wireless setting as the wireless setting for performing the wireless communication through the second communication unit.