Specific directives (to find a suitable place to anchor itself) require awareness of the terrain and object-recognition. Either a) the fungus has stumbled upon the signals to accomplish this singular feat or b) the fungus can read the ant's perceptions and can navigate. Finding the signal seems more likely because it is much less complex an achievement.