A method of wireless communication performed by a first user equipment, UE, to communicate with a second UE, the first and the second UEs camping at a serving cell provided by a first base station, BS, the method comprising: selecting the serving cell for connection to a network; performing a search for a frequency band on a neighbor cell for use in device-to-device communications, wherein said neighbor cell is provided by a second BS; performing the device-to-device communications between the first UE and the second UE using pre-configured resources associated with the frequency band when the search for the frequency band on the neighbor cell fails, wherein said pre-configured resources are pre-configured in a Subscriber Identity Module, SIM, card of the first UE, or are determined, by the first UE, using resource information received Over-The-Top, OTT, from a ProSe server; and performing the device-to-device communications (712b, 712c) between the first UE and the second UE using resources associated with the frequency band of the neighbor cell when the search for the frequency band on the neighbor cell is successful, wherein said resources are determined, by the first UE, using a System Information Block, SIB, received from the neighbor cell, wherein the step of performing the search for the frequency band on the neighbor cell comprises: determining that the search for the frequency band on the neighbor cell is successful, when a physical cell ID, PCI, of said neighbor cell is detected on said frequency band by the first UE within a predetermined number of attempts, and determining that the search for the frequency band on the neighbor cell has failed, when said PCI of said neighbor cell is not detected on said frequency band by the first UE after a predetermined number of attempts. selecting the serving cell for connection to a network; performing a search for a frequency band on a neighbor cell for use in device-to-device communications, wherein said neighbor cell is provided by a second BS; performing the device-to-device communications between the first UE and the second UE using pre-configured resources associated with the frequency band when the search for the frequency band on the neighbor cell fails, wherein said pre-configured resources are pre-configured in a Subscriber Identity Module, SIM, card of the first UE, or are determined, by the first UE, using resource information received Over-The-Top, OTT, from a ProSe server; and performing the device-to-device communications (712b, 712c) between the first UE and the second UE using resources associated with the frequency band of the neighbor cell when the search for the frequency band on the neighbor cell is successful, wherein said resources are determined, by the first UE, using a System Information Block, SIB, received from the neighbor cell, wherein the step of performing the search for the frequency band on the neighbor cell comprises: determining that the search for the frequency band on the neighbor cell is successful, when a physical cell ID, PCI, of said neighbor cell is detected on said frequency band by the first UE within a predetermined number of attempts, and determining that the search for the frequency band on the neighbor cell has failed, when said PCI of said neighbor cell is not detected on said frequency band by the first UE after a predetermined number of attempts. determining that the search for the frequency band on the neighbor cell is successful, when a physical cell ID, PCI, of said neighbor cell is detected on said frequency band by the first UE within a predetermined number of attempts, and determining that the search for the frequency band on the neighbor cell has failed, when said PCI of said neighbor cell is not detected on said frequency band by the first UE after a predetermined number of attempts.