An electronic device, comprising: a first antenna element; a second antenna element; a first radio frequency, RF, block configured to process signals of a first frequency band; a second RF block configured to process signals of a second frequency band; a third RF block configured to process signals of a third frequency band; a filtering circuitry connected to the first antenna element and configured to: transmit a first frequency band component of a first signal received through the first antenna element to the first RF block, the first frequency band component corresponding to the first frequency band, and transmit a second frequency band component or a third frequency band component of the first signal to a switch, the second frequency band component corresponding to the second frequency band and the third frequency band component corresponding to the third frequency band; the switch configured to transmit the second frequency band component to the second RF block or the third frequency band component to the third RF block and to transmit a second signal received through the second antenna element to the second RF block or the third RF block; a transceiver electrically connected with the first RF block, the second RF block, and the third RF block; and a processor electrically connected with the transceiver, wherein the processor is configured to, when a network supports carrier aggregation, CA, using the second frequency band and the third frequency band: control the switch to connect the first antenna element with the second RF block and the second antenna element with the third RF block, control the transceiver to perform CA using the second frequency band component of the first signal and the third frequency band component of the second signal, and control the transceiver to receive the first frequency band component of the first signal. a first antenna element; a second antenna element; a first radio frequency, RF, block configured to process signals of a first frequency band; a second RF block configured to process signals of a second frequency band; a third RF block configured to process signals of a third frequency band; a filtering circuitry connected to the first antenna element and configured to: transmit a first frequency band component of a first signal received through the first antenna element to the first RF block, the first frequency band component corresponding to the first frequency band, and transmit a second frequency band component or a third frequency band component of the first signal to a switch, the second frequency band component corresponding to the second frequency band and the third frequency band component corresponding to the third frequency band; transmit a first frequency band component of a first signal received through the first antenna element to the first RF block, the first frequency band component corresponding to the first frequency band, and transmit a second frequency band component or a third frequency band component of the first signal to a switch, the second frequency band component corresponding to the second frequency band and the third frequency band component corresponding to the third frequency band; the switch configured to transmit the second frequency band component to the second RF block or the third frequency band component to the third RF block and to transmit a second signal received through the second antenna element to the second RF block or the third RF block; a transceiver electrically connected with the first RF block, the second RF block, and the third RF block; and a processor electrically connected with the transceiver, wherein the processor is configured to, when a network supports carrier aggregation, CA, using the second frequency band and the third frequency band: control the switch to connect the first antenna element with the second RF block and the second antenna element with the third RF block, control the transceiver to perform CA using the second frequency band component of the first signal and the third frequency band component of the second signal, and control the transceiver to receive the first frequency band component of the first signal. control the switch to connect the first antenna element with the second RF block and the second antenna element with the third RF block, control the transceiver to perform CA using the second frequency band component of the first signal and the third frequency band component of the second signal, and control the transceiver to receive the first frequency band component of the first signal.