I have used Ubiquiti equipment in the past (in particular the Bullet-M series) to reach long distances. They can easily cover 10 km or more in clear line of sight when using high gain antennas. I personally tested them in a mountain environment with ~1 m diameter parabolic dishes.
However, going above 100-150 m requires to override the standard timeout of Wi-Fi modems, otherwise the RF signal arrives, but the communication link is not established or fails regularly. Ubiquiti modems have a customized timeout setting for this purpose in their configuration page, but the link works only if both parties increase the timeout, so you won't normally be able to talk to a generic access point using your Ubiquiti above 100-150 m, even if you get a clear signal: you see the access point listed, but you don't manage to connect and/or exchange data. All works ok with two Ubiquiti devices.