A non-transitory, computer-readable storage medium storing a computer-executable program that, when executed by a computer processor, causes the computer processor to perform a method of determining whether a first communication apparatus is to become a providing device that provides communication parameters or a receiving device that receives the communication parameters from the providing device, the method comprising:
- acquiring a first capability attribute and a first parameter setting identifier of a second communication apparatus, wherein the first capability attribute indicates at least one of a capability for providing communication parameters of the second communication apparatus and a capability for receiving communication parameters of the second communication apparatus;
- and
- deciding whether the first communication apparatus is to become the providing device or the receiving device of the communication parameters, based on the first capability attribute and the first parameter setting identifier of the second communication apparatus acquired in the acquiring step and a second capability attribute and a second parameter setting identifier of the first communication apparatus.