View Single Post
  #5   (View Single Post)  
Old 24th May 2009
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Quote:
Originally Posted by Mr-Biscuit View Post
Not being an ass, but perhaps you could use a linux distribution to help set those values?
If I would want Linux this question would not happen, but thanks anyway, it works under Linux.

Quote:
Originally Posted by BSDfan666 View Post
According to ifconfig(8):
# ifconfig wpi0 list scan

Hope that helps.. if not, wlanctl(8) might be another option.
Thanks BSDfan666, but I have strange error (see below).

I read ifconfig man page, but somehow overlooked list scan :/

Quote:
Originally Posted by TerryP View Post
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
Thanks TerryP this is exacly what I am looking for but:

Code:
mavio# pkg_info                                                                                                       
wpi-firmware2-2.14.4 Firmware binary images for wpi(4) driver

mavio# modstat   
Type    Id   Offset Loadaddr Size Info     Rev Module Name

mavio# ifconfig wpi0                                                                                                  
wpi0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ssid ""
        powersave off
        address: 00:1b:77:df:c9:5c
        media: IEEE802.11 autoselect
        status: no network

mavio# ifconfig wpi0 list scan                                                                                        
ifconfig: SIOCS80211: Invalid argument

mavio# wlanctl wpi0    
wpi0: mac 00:1b:77:df:c9:5c bss 00:00:00:00:00:00
        node flags 0005<bss,scan>
        ess <>
        chan 0 freq 0MHz flags 0000
        capabilities 0000
        beacon-interval 0 TU tsft 0 us
        rates
        assoc-id 0 assoc-failed 0 inactivity 300s
        rssi 0 txseq 0 rxseq 0
EDIT 0:

little progress ...

Code:
mavio# ifconfig wpi0 up                                                                                               
mavio# ifconfig wpi0 list scan
mavio# ifconfig wpi0 list scan 
mavio# echo $?
0
mavio#
... but still does not show my wifi network :/
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote