A recording medium storing a program, the program causing a computer to execute control processing for a wireless communication device, the device including a near field wireless communication circuit, the control processing comprising:
- executing, with a destination device through the near field wireless communication circuit that is set to a first communication mode, preliminary processing needed for initiating data transfer in a second communication mode with the destination device, the first communication mode being a communication mode to perform OFDM and the second communication mode being a communication mode with a relatively short communicable distance as compared with that in the first communication mode and to perform spread spectrum;
- determining availability of the data transfer in the second communication mode with the destination device by using a measured value of communication quality related to a communication distance to the destination device as a measure of the determination;
- and
- causing, when it is determined that the data transfer is available, the near field wireless communication circuit that is set to the second communication mode to initiate the data transfer, based on a result of the preliminary processing.