Umm, I don't mean to sound like a prick, but isn't this what you are looking for?
Code:
list scan (IEEE 802.11 devices only) Display the access points
and/or ad-hoc neighbors located in the vicinity. The -v
flag may be used to display long SSIDs. -v also causes
received information elements to be displayed symboli-
caly. Only the super-user can use this command.
# ifconfig wpi0 list scan
__________________
My
Journal
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.