Patent ID: 8340063

Claim:
A wireless communication device communicable with a first type of wireless network including an access point and communicable with a second type of wireless network including a terminal device having an access point function, the wireless communication device comprising: a communication section configured to connect with a wireless network and executes communication with the wireless network; a detection section configured to detect a disconnection with the wireless network; a first storage configured to store first type wireless setting data for the first type of wireless network; a second storage configured to store second type wireless setting data for the second type of wireless network, wherein the communication section comprises: an obtaining section configured to obtain an identifier for identifying a wireless network from at least one of a certain access point and a certain terminal device, if the detection section detects the disconnection with a specified wireless network, and the specified wireless network is the second type of wireless network; and a trial section configured to, in a first case where the second storage stores at least one second type wireless setting data including an identifier that is identical with the obtained identifier, try to connect with the second type of wireless network including the certain terminal device with use of one of the at least one second type wireless setting data, and in a second case where the second storage does not store second type wireless setting data including an identifier that is identical with the obtained identifier but the first storage stores at least one first type wireless setting data including an identifier that is identical with the obtained identifier, try to connect with the first type of wireless network including the certain access point with use of one of the at least one first type wireless setting data, and a determination section configured to, if the detection section detects the disconnection with the specified wireless network, determine whether the specified wireless network is the first type of wireless network or the second type of wireless network, wherein the determination section determines that the specified network is the second type of wireless network, if a probe response signal, which is received when the wireless communication device previously connects with the specified wireless network, includes a predetermined information indicating the second type network; and the determination section determines that the specified network is the first type of wireless network, if the probe response signal, which is received when the wireless communication device previously connects with the specified wireless network, does not include the predetermined information.