Patent ID: 7742742

Claim:
A communication device having wireless capabilities configured to communicate in a first communication mode via an access point and in a second communication mode directly with another communication device without utilizing an access point, the communication device comprising: a storage unit configured to store communication parameters to connect to each of a plurality of wireless networks; a scanning unit configured to scan a wireless network in a surrounding area; a determining unit configured to determine communication parameters to connect to the wireless network detected in the scanning process by the scanning unit from among the plurality of communication parameters stored in the storage unit; a receiving unit configured to receive a request from another communication device for transferring communication parameters in the second communication mode; and a transmitting unit configured to transmit communication parameters determined by the determination unit to the another communication device in response to the request received by the receiving unit, wherein the storage unit is configured to store individual communication parameters to connect to wireless networks of the first and second communication modes, and wherein the transmitting unit is configured to transmit the communication parameters to connect to a wireless network in a communication mode specified by the another communication device from among parameters stored in the storage unit.