Patent ID: 8213415

Claim:
A communication apparatus comprising: a wireless communication unit; a wired communication unit; a receiver unit configured to receive, from another communication apparatus via the wired communication unit, wireless communication parameters used for wireless communication by the wireless communication unit; a detector unit configured to detect an image transfer between the communication apparatus and the another communication apparatus via the wired communication unit, a user instruction for start of the image transfer between the communication apparatus and the another communication apparatus via the wired communication unit or completion of the image transfer between the communication apparatus and the another communication apparatus via the wired communication unit; a sensor configured to detect a disconnection of wired connection by the wired communication unit to the another communication apparatus; and a setting unit configured to set automatically the wireless communication parameters received by the receiver unit in the communication apparatus for wireless communication by the wireless communication unit, if the disconnection of wired communication to the another communication apparatus is detected by the sensor before the image transfer via the wired communication unit, before the user instruction for the start of the image transfer via the wired communication unit or before the completion of the image transfer via the wired communication unit is detected by the detector unit, and not set automatically the wireless communication parameter received by the receiver unit in the communication apparatus, if the image transfer via the wired communication unit, the user instruction for the start of the image transfer via the wired communication unit or the completion of the image transfer via the wired communication unit is detected by the detector unit before the disconnection of wired connection to the another communication apparatus is detected by the sensor.