DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (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 NetBSD 5.0 wifi/wireless network browser/scanner

I have nicely working connection using wpi(4) driver on Intel 3945abg wifi card setup with wpa_supplicant and so, but to add a new network I first have to know BOTH SSID and PRE-SHARED KEY to connect.

Is there some tool/way to get a list of available wifi/wireless networks around on NetBSD 5.0?

Maybe from pkgsrc?
__________________
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
  #2   (View Single Post)  
Old 24th May 2009
Mr-Biscuit Mr-Biscuit is offline
Banned
 
Join Date: May 2008
Posts: 272
Default

Not being an ass, but perhaps you could use a linux distribution to help set those values?
Reply With Quote
  #3   (View Single Post)  
Old 24th May 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

According to ifconfig(8):
# ifconfig wpi0 list scan

Hope that helps.. if not, wlanctl(8) might be another option.
Reply With Quote
  #4   (View Single Post)  
Old 24th May 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

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''.
Reply With Quote
  #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
  #6   (View Single Post)  
Old 24th May 2009
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

Yes apologies, I found countless mailing list entires that seem to indicate scanning for access points is.. flaky.. and that the interface needs to be up for it to work on NetBSD.

I'm pretty sure that wiconfig(8) is for a specific family of wireless drivers, but perhaps the following might work?
# wiconfig wpi0 -D

If it does not work, perhaps you should file a bug report.. or.. send an email to their mailing lists.

One reference on NetBSD's "tech-net" list indicates that net/kismet can be used to scan for access points.

http://mail-index.netbsd.org/tech-ne...msg001046.html

Ironically the topic is about how broken ifconfig+list+scan is.

Hope that helps.
Reply With Quote
  #7   (View Single Post)  
Old 25th May 2009
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Default

Thanks BSDfan666, I checked wiconfig(8) but unfortunelly:
Code:
The wiconfig command controls the operation
of WaveLAN/IEEE wireless networking devices
via the wi(4) and awi(4) drivers.
So no go here :/

I'll try net/kismet port later, and post results here.

I also tried wiconfig wpi0 -D (no matter what the man page says) but no, it does not work.

I'll also submit a bug(s) later on NetBSD MLs, propably they know these problems but do not have time ti cope with it.

It's strange, since wpa_supplicant connection seems to be reliable on NetBSD ...
__________________
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
  #8   (View Single Post)  
Old 25th May 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

I haven't got much experience with wifi as I don't have a suported card.
Could you try to get the AP's list by using wlanctl(8)?

Also could you try:
Code:
ifconfig wpi0 mediaopts monitor
ifconfig wpi0 list scan
Are you using dhcp for that interface? Check this out: http://blog.netbsd.org/tnf/entry/introducing_dhcpcd_gtk
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD

Last edited by s0xxx; 25th May 2009 at 12:16 PM.
Reply With Quote
  #9   (View Single Post)  
Old 4th July 2009
SPlissken SPlissken is offline
Port Guard
 
Join Date: Oct 2008
Posts: 10
Default

Hi all , on my eeePC 701 4G
wiconfig works , now i have to understand the given informations

SPeeeNetBSD# wiconfig ath0 -D
scanning ......
AP Information
ap[0]:
netname (SSID): [ devolo ]
BSSID: [ 00:0b:3b:2f:cf:10 ]
Channel: [ 6 ]
Quality/Signal/Noise [signal]: [ 0 / 42 / 0 ]
[dBm]: [ 0 / -107 / -149 ]
BSS Beacon Interval [msec]: [ 100 ]
Capinfo: [ ESS ]
DataRate [Mbps]: [ 11 ]
Reply With Quote
Old 5th July 2009
richardpl richardpl is offline
Spam Deminer
 
Join Date: May 2008
Location: Croatia
Posts: 284
Default

Right command is ifconfig ath0 list scan.
There is also kismet and airodump-ng
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless Network Loses Connection JMJ_coder NetBSD General 5 17th February 2009 09:14 PM
Wireless Network Problem fuma218 NetBSD General 8 8th January 2009 12:00 AM
Wireless Network Config working -- almost JMJ_coder General software and network 4 20th November 2008 05:10 PM
USB wireless network adapter, ndis problem ronaldmcdonald9 FreeBSD General 5 9th July 2008 07:50 AM
Wireless + wired = confused network setup davidgurvich FreeBSD General 3 27th May 2008 06:10 PM


All times are GMT. The time now is 09:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick