Subject: port of ancontrol to netbsd
To: None <tech-net@netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: tech-net
Date: 06/29/2001 11:39:02
Lacking a way to frob all the various settings on my Cisco/Aironet
card I ported ancontrol to netbsd.
Grab and untar:
http://www.wsrcc.com/wolfgang/ftp/ancontrol-netbsd.tar.gz
Copy src/sys/dev/ic/an{var,reg}.h to /usr/include/dev/ic/
Patch anvar.h with the enclosed patch to put "KERNEL" ifdefs
around some swampland.
make && make install
(The above program was copied from openbsd.)
Appended is some of the wonderful crap ancontrol lets you see and in some
cases muck with:
-wolfgang
+ ancontrol an0 -A
Access point 1: [ 00:00:00:00:00:00 ]
Access point 2: [ 00:00:00:00:00:00 ]
Access point 3: [ 00:00:00:00:00:00 ]
Access point 4: [ 00:00:00:00:00:00 ]
+ ancontrol an0 -C
Operating mode: [ ad-hoc ]
Receive mode: [ broadcast/multicast/unicast ]
Fragment threshold: [ 2312 ]
RTS threshold: [ 2312 ]
MAC address: [ 00:40:96:40:b1:26 ]
Supported rates: [ 1.0Mbps 2.0Mbps 5.5Mbps 11.0Mbps ]
Short retry limit: [ 16 ]
Long retry limit: [ 16 ]
TX MSDU lifetime: [ 5000 ]
RX MSDU lifetime: [ 10000 ]
Stationary: [ Off ]
Ordering: [ Off ]
Device type: [ PC350 ]
Scanning mode: [ active ]
Probe delay: [ 3 ]
Probe energy timeout: [ 3 ]
Probe response timeout: [ 20 ]
Beacon listen timeout: [ 40 ]
IBSS join network timeout: [ 10000 ]
Authentication timeout: [ 2000 ]
WEP enabled: [ full ]
Authentication type: [ open ]
Association timeout: [ 5000 ]
Specified AP association timeout: [ 10000 ]
Offline scan interval: [ 0 ]
Offline scan duration: [ 0 ]
Link loss delay: [ 0 ]
Max beacon loss time: [ 500 ]
Refresh interval: [ 10000 ]
Power save mode: [ none ]
Sleep through DTIMs: [ Off ]
Power save listen interval: [ 200 ]
Power save fast listen interval: [ 100 ]
Power save listen decay: [ 2 ]
Power save fast listen decay: [ 200 ]
AP/ad-hoc Beacon period: [ 100 ]
AP/ad-hoc ATIM duration: [ 0 ]
AP/ad-hoc current channel: [ 6 ]
AP/ad-hoc DTIM period: [ 1 ]
Radio type: [ 802.11 DS ]
RX Diversity: [ antenna 1 only ]
TX Diversity: [ antenna 1 only ]
Transmit power level: [ 100 ]
RSS threshold: [ 0 ]
Node name: [ NetBSD ]
ARL threshold: [ 65535 ]
ARL decay: [ 65535 ]
ARL delay: [ 65535 ]
WEP Key status:
Key 0 is set 128 bits
Key 1 is set 128 bits
Key 2 is set 128 bits
Key 3 is set 128 bits
The active transmit key is 0
+ ancontrol an0 -I
OUI: [ 00:40:96 ]
Product number: [ 10 ]
Manufacturer name: [ Cisco Systems ]
Produce name: [ 350 Series ]
Firmware version: [ 4 ]
OEM MAC address: [ 00:40:96:40:b1:26 ]
Aironet MAC address: [ 00:40:96:40:b1:26 ]
Radio type: [ 802.11 DS ]
Regulatory domain: [ 0 ]
Assigned CallID: [ ff:ff:ff:ff:ff:ff ]
Supported speeds: [ 1.0Mbps 2.0Mbps 5.5Mbps 11.0Mbps ]
RX Diversity: [ antenna 1 and 2 ]
TX Diversity: [ antenna 1 and 2 ]
Supported power levels: [ 1 5 20 30 50 100 0 0 ]
Hardware revision: [ 00:22 ]
Software revision: [ 04:23 ]
Software subrevision: [ 00:00 ]
Interface revision: [ 00:00 ]
Bootblock revision: [ 01:50 ]
+ ancontrol an0 -N
SSID 1: [ WSRCC ]
SSID 2: [ ]
SSID 3: [ ]
+ ancontrol an0 -Q
[1/2]: 00:40:96:40:9f:d5, sig: 51
[2/2]: 00:40:96:40:ad:ee, sig: 39
+ ancontrol an0 -S
MAC address: [ 00:40:96:40:b1:26 ]
Operating mode: [ configured MAC ON RX ON synced associated ]
Error code: [ 00 ]
Signal quality: [ 0e ]
Current SSID: [ WSRCC ]
Current AP name: [ ]
Current BSSID: [ d2:03:fe:01:9a:03 ]
Beacon period: [ 100 ]
DTIM period: [ 1 ]
ATIM duration: [ 0 ]
HOP period: [ 200 ]
Channel set: [ 0 ]
Current channel: [ 6 ]
Hops to backbone: [ 0 ]
Total AP load: [ 0 ]
Our generated load: [ 0 ]
Accumulated ARL: [ 0 ]
+ ancontrol an0 -T
RX overruns: [ 0 ]
RX PLCP CSUM errors: [ 259435 ]
RX PLCP format errors: [ 115 ]
RX PLCP length errors: [ 0 ]
RX MAC CRC errors: [ 22 ]
RX MAC CRC OK: [ 537112 ]
RX WEP errors: [ 0 ]
RX WEP OK: [ 88523 ]
Long retries: [ 1071 ]
Short retries: [ 1 ]
Retries exhausted: [ 0 ]
Bad ACK: [ 1071 ]
Bad CTS: [ 1 ]
RX good ACKs: [ 95570 ]
RX good CTSs: [ 10 ]
TX good ACKs: [ 88594 ]
TX good RTSs: [ 11 ]
TX good CTSs: [ 7 ]
LMAC multicasts transmitted: [ 0 ]
LMAC broadcasts transmitted: [ 610777 ]
LMAC unicast frags transmitted: [ 95571 ]
LMAC unicasts transmitted: [ 95571 ]
Beacons transmitted: [ 610554 ]
Beacons received: [ 352846 ]
Single transmit collisions: [ 0 ]
Multiple transmit collisions: [ 0 ]
Transmits without deferrals: [ 0 ]
Transmits deferred due to protocol: [ 0 ]
Transmits deferred due to energy detect: [ 12668 ]
RX duplicate frames/frags: [ 53 ]
RX partial frames: [ 0 ]
TX max lifetime exceeded: [ 0 ]
RX max lifetime exceeded: [ 0 ]
Sync lost due to too many missed beacons: [ 0 ]
Sync lost due to ARL exceeded: [ 0 ]
Sync lost due to deauthentication: [ 0 ]
Sync lost due to disassociation: [ 0 ]
Sync lost due to excess change in TSF timing: [ 0 ]
Host transmitted multicasts: [ 0 ]
Host transmitted broadcasts: [ 20 ]
Host transmitted unicasts: [ 95563 ]
Host transmission failures: [ 1 ]
Host received multicasts: [ 0 ]
Host received broadcasts: [ 47 ]
Host received unicasts: [ 88433 ]
Host receive discards: [ 0 ]
HMAC transmitted multicasts: [ 0 ]
HMAC transmitted broadcasts: [ 203 ]
HMAC transmitted unicasts: [ 8 ]
HMAC transmissions failed: [ 0 ]
HMAC received multicasts: [ 0 ]
HMAC received broadcasts: [ 352884 ]
HMAC received unicasts: [ 108 ]
HMAC receive discards: [ 0 ]
HMAC transmits accepted: [ 352992 ]
SSID mismatches: [ 0 ]
Access point mismatches: [ 0 ]
Speed mismatches: [ 0 ]
Authentication rejects: [ 0 ]
Authentication timeouts: [ 0 ]
Association rejects: [ 0 ]
Association timeouts: [ 0 ]
Management frames received: [ 0 ]
Management frames transmitted: [ 0 ]
Refresh frames received: [ 0 ]
Refresh frames transmitted: [ 0 ]
Poll frames received: [ 0 ]
Poll frames transmitted: [ 0 ]
Host requested sync losses: [ 0 ]
Host transmitted bytes: [ 56463340 ]
Host received bytes: [ 10887389 ]
Uptime in microseconds: [ -137076498 ]
Uptime in seconds: [ 98703 ]
Sync lost due to better AP: [ 0 ]
(Ok, the uptime in microseconds being negative is clearly a bug...
Will fix. -wsr)
--
Wolfgang Rupprecht <wolfgang+gnus@dailyplanet.wsrcc.com>
http://www.wsrcc.com/wolfgang/
Coming soon: GPS mapping tools for Open Systems. http://www.gnomad-mapping.com/