A method comprises determining, based on at least one radio frequency packet passed wirelessly between first and second devices using an array of plural antennas provided in one of the first and second devices, an orientation of the second device with respect to the first device and, if the orientation satisfies a predetermined criterion, controlling operation of the first device.