|
NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
||||
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 |
|
|||
Not being an ass, but perhaps you could use a linux distribution to help set those values?
|
|
|||
According to ifconfig(8):
# ifconfig wpi0 list scan Hope that helps.. if not, wlanctl(8) might be another option. |
|
||||
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''. |
|
||||
Quote:
Quote:
I read ifconfig man page, but somehow overlooked list scan :/ Quote:
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 little progress ... Code:
mavio# ifconfig wpi0 up mavio# ifconfig wpi0 list scan mavio# ifconfig wpi0 list scan mavio# echo $? 0 mavio#
__________________
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 |
|
|||
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. |
|
||||
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. 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 |
|
||||
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
__________________
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. |
|
|||
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 ] |
|
|||
Right command is ifconfig ath0 list scan.
There is also kismet and airodump-ng |
|
|
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 |