/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport
I set an alias in my shell so this is just 'airport', lets you interact with the wifi settings - I particularly like 'airport -s' for doing a scan of the local wifi networks, since it shows signal strength and channel information right there, which is helpful when troubleshooting. replies(1):