According to one embodiment, an electronic apparatus comprises a wireless
communication device configured to conduct wireless communication with an
external apparatus, a switch connected to a radio frequency circuit of
the wireless communication device, and configured to couple an RF signal
input and output port of the radio frequency circuit to one of a wireless
communication antenna and a cable connected to the external apparatus,
and a control module configured to control the switch to switch a mode of
conducting communication with the external apparatus between a wireless
communication mode and a wired communication mode, a wireless signal
being transmitted and received between the external apparatus and the
wireless communication device through the wireless communication antenna
in the wireless communication mode, the wireless signal being transmitted
and received between the external apparatus and the wireless
communication device through the cable in the wired communication mode.