Newer Macs can either AirDrop to newer Macs and iOS devices, or drop back to legacy AirDrop in which case they can only talk to Macs via Wi-Fi like Mavericks AirDrop.
Unfortunately you have to select which on new Macs in their AirDrop Settings; AIrDrop cannot dynamically switch between the two.