A wireless device according to the present invention minimizes the need
for changing a communication route in an ad hoc network including
wireless devices used for base stations, fixed stations, and mobile
stations that are turned on/off or moved, wherein, when wireless devices
cannot directly send or receive radio waves, data can be transmitted
between them by relaying data via other wireless devices that can
directly send or receive radio waves (multi-hopping). In selecting a
communication route, a communication route that includes wireless devices
that are turned off or moved least frequently is selected.