It is provided a method for performing a radio frequency scan in a
portable electronic device. The location of the portable electronic
device is determined. It is defined a search area dependent on the
location of the portable electronic device. The portable electronic
device receives radio signals from a plurality of other electronic
devices to determine the identities of the other electronic devices, the
identities of the other electronic devices defining a first group of
identified electronic devices. The respective locations of the plurality
of other electronic devices are determined. The location of each of the
plurality of other electronic devices are compared with the defined
search area to create a second group of identified electronic devices,
wherein the second group is a subset of the first group.