Patent attributes
Disclosed is an electronic device including a housing, an antenna device including at least one antenna element disposed on one surface or inside of a printed circuit board disposed inside the housing and a radio frequency integrated chip (RFIC) for processing a signal in a frequency band, which is transmitted and/or received through the at least one antenna element, a communication circuit, a memory, and a processor configured to detect an external object, which contacts at least part of the housing, based on a change in a beam pattern of a beam formed by the antenna device, determine whether at least some information of the external object is information included in registration object data stored in the memory, and change the beam pattern by using first compensation data, which is stored in the registration object data and which is changed depending on a registration structure corresponding to the external object when the at least some information of the external object is included in the registration object data.