Commit Graph

53 Commits

Author SHA1 Message Date
njl
dd2f9532b1 Drop WARNS down to 3 since sparc64 still has justified complaints about
bad casts.

Noticed by:	johan
2004-07-30 21:43:21 +00:00
njl
81f45c4cf7 Clean up some more casts. Note that the an_fudge alignment hack for
struct an_ltv_stats needs to be fixed.  It has been here since this was
imported.
2004-07-30 21:42:39 +00:00
njl
0e589d1200 Mark as WARNS 6 now that sign cleanups are done. 2004-07-30 00:02:42 +00:00
njl
58fd36d827 Fix printing of stats by printing an unsigned value as unsigned. ANSIfy
function prototypes.  Remove unnecessary returns.

Submitted by:	David Hill <davidh -at- wmis.net>
2004-07-30 00:02:20 +00:00
rse
2563ef9b71 fix reference to sysctl variable: machdep.an_cache_mode -> hw.an.an_cache_mode 2004-03-05 08:42:15 +00:00
njl
78902f0d8c Remove an annoying printf that somehow leaked into rev 1.21. 2003-11-16 08:41:24 +00:00
ambrisko
ae4a03edd2 - Add support for Cisco latest firmware RID sizes that supports 25 SSIDs!
- Fix up TX speed changes.
- Make mpi-350 cards sort-of work with new firmware.  It RXs okay but TXs
  only work for about 14 packets then fails to get an interrupt.  The
  TX watchdog fires.  It has been reported that my hack for now doesn't
  break cards with the older firmware.  It appears my card has lost
  the ability to RX or TX at all but other peoples cards work.  I assume
  it got damaged in tansport.

MFC:	1 week.
2003-08-20 03:46:05 +00:00
obrien
7797e9f77e Use __FBSDID over rcsid[]. Protect copyright[] where needed. 2003-05-03 21:06:42 +00:00
obrien
6709fe0c57 style.Makefile(5) 2003-04-04 17:49:21 +00:00
ambrisko
01e317a886 Add support for MPI-350 the mini-pci Cisco Aironet card. This needs more
work.  The interface was gleaned from the Linux driver.  Currently only
one RX & one TX buffer are used.  Firmware support is not tested so for the
MPI-350 so it is disabled.  Signal cache and monitor mode are not supported
yet.  Signal cache is not supported since in encapsulation mode ethernet
frames are returned by the chip.  LAN monitor mode support will be added
shortly.  Thanks to Warner for the MPI-350 card he sent me.

Add support for RSSI map from PR kern/32880 which was incomplete.  Enhanced
with the ability to select the cache mode of raw, dbm or per-cent.

Clean up Signal/Noise/Quality structures and units with help from
Marco Molteni.

Change flash to use a malloc'ed buffer when needed.

PR:		kern/32880
Submitted by:	Douglas S. J. De Couto decouto@pdos.lcs.mit.edu,
		Marco Molteni
MFC:		3 weeks
2002-12-29 19:22:07 +00:00
schweikh
2505bee728 english(4) police. 2002-12-27 12:15:40 +00:00
pb
4bd54ee799 Fix typo: vunerable -> vulnerable. 2002-12-22 15:29:48 +00:00
dwmalone
e198fe63f8 The symbol for Hertz is Hz. 2002-11-04 22:44:42 +00:00
charnier
90baea60d8 The .Nm utility 2002-07-14 14:47:15 +00:00
alfred
a5526fd84b de-__P() 2002-07-11 18:31:16 +00:00
ru
7b5129881c Added missing DPADD detected by ``make checkdpadd''. 2002-06-06 11:30:57 +00:00
keramida
9f56e61a6c Fix typo: capablities -> capabilities. 2002-03-08 01:59:52 +00:00
mike
b2f3aa6012 o Move NTOHL() and associated macros into <sys/param.h>. These are
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
  source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
  Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
  POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
  and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
  complexities associated with having MD (asm and inline) versions, and
  having to prevent exposure of these functions in other headers that
  happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
  third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.

Tested on:	alpha, i386
Reviewed by:	bde, jake, tmm
2002-02-18 20:35:27 +00:00
ambrisko
c5a861f96a Make man page and usage statement match reality submitted by Ruslan,
Clean up "n to m" type options with "n-m" and some other improvements
suggested by Ruslan.

Change -C option to report the transmit key "4" if in "Home" mode.

Submitted by:	ru
Approved by:	imp, ru
2002-01-15 04:31:08 +00:00
ru
21f2699434 mdoc(7) police:
Fixed bugs from previous delta:

- Removed duplicate -m and -o options from SYNOPSIS
- Added missing -L option to SYNOPSIS
- Removed duplicate -M option from DESCRIPTION
- Tidy up the markup
2002-01-10 15:01:56 +00:00
ambrisko
71e0b3af6a Fix bugs in the structure for rx_frame by making gap length one byte and
a packed array so sizeof work.  This broke RFMON mode and passing
up 802.11 packets.

The Linux emulation code was derived from the open source Linux driver to
maintain compatibility.

LEAP support is added, hints from Richard Johnson.  I've verified this
locally with PC350v42510.img firmware.  More bug fixing from Marco to
fix long passwords.

Change DELAYs in flash part of driver to FLASH_DELAY which uses tsleep
so it doesn't look like your system died during a flash update.

Install header files in /usr/include/dev/an

Cleanup some ifmedia bugs add "Home" key mode to ifmedia and ancontrol.
This way you can manage 2 keys a little easier.  Map the home mode into
key 5.  Enhance ifconfig to dump the various configured SSIDs.  I use
a bunch of different ones and roam between them.  Use the syntax similar
to the WEP keys to deal with setting difference SSIDs.

Bump up up the Card capabilities RID since they added 2 bytes to it
in the latest firmware.  Thankfully we changed it from a terminal
failure so the card still worked but the driver whined.

Some cleanup patches from Marco Molteni.

Submitted by:	Richard Johnson <raj@cisco.com>
		Marco Molteni <molter@tin.it>
		and myself
Various checks: David Wolfskill <david@catwhisker.org>
Reviewed by:	Brooks Davis <brooks@freebsd.org>
		Warner Losh <imp@freebsd.org>
Approved by:	Brooks Davis <brooks@freebsd.org>
		Warner Losh <imp@freebsd.org>
Obtained from:	Linux emulation API's from Aironet driver.
2001-12-31 22:01:44 +00:00
pb
4c23a4e113 Fix typo in usage (power same -> power save). 2001-12-18 23:28:45 +00:00
ru
66d1f19d44 mdoc(7) police: use standard list width. 2001-09-11 11:15:48 +00:00
ru
8fc838c7ea mdoc(7) police: fix markup. 2001-09-11 11:12:53 +00:00
brooks
ca7e8d9b95 Add support for monitor mode. This means that after enabling the
correct mode via ancontrol, you can use bpf to sniff raw 802.11 frames.
Who want's to port AirSnort. ;-)

Submitted by:	Doug Ambrisko <ambrisko@ambrisko.com> (author)
		David Wolfskill <david@catwhisker.org> (port to current)
2001-09-10 02:05:10 +00:00
ru
839959ae32 Spell "FreeBSD" with "F" and "BSD" in uppercase. 2001-08-13 16:33:00 +00:00
ru
325db7b385 Removed duplicate VCS ID tags, as per style(9). 2001-08-13 14:06:34 +00:00
brooks
036b97fc0e Make spacing consistant and set WARNS correctly. 2001-07-30 17:01:44 +00:00
brooks
f18b525a33 Make ancontrol WARNS=2 clean. 2001-07-27 18:26:42 +00:00
kris
c87f1c9bc9 Fix typos
Obtained from:	OpenBSD
MFC After:	1 week
2001-07-23 09:39:55 +00:00
obrien
4b92fa588b Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
obrien
b64625adfb Remove GCC'isms in CFLAGS. 2001-07-20 04:23:13 +00:00
dd
7d1013753f Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ru
5617dbcc22 mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 15:12:08 +00:00
brooks
79433dfb7c Output the current TX rate when showing status.
PR:	bin/25470
2001-06-26 00:00:58 +00:00
jesper
2936ba582a MFC candidate
Change the default mode from ad-hoc to
infrastructure, as noted in

src/share/man/man4/an.4 rev 1.8
2001-03-30 16:32:52 +00:00
ru
b15a893144 - Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
2001-03-26 14:42:20 +00:00
ru
42350947e7 Set the default manual section for usr.sbin/ to 8. 2001-03-20 18:17:26 +00:00
ru
74ecc06fa7 mdoc(7) police: Change -filled displays (which just happen
to be the same as -ragged in the current implementation) to
-ragged.  With mdocNG, -filled displays produce the correct
output, formatted and justified to both margins.
2001-02-07 13:45:30 +00:00
imp
0fcfcbed33 If the first argument doesn't start with '-' assume that it is an
interface.  This augments the default to an appropriate interface
code.

# These programs should be merged into ifconfig, ala NetBSD, but that's
# a fight for another day.

Idea from: OpenBSD
2000-12-31 01:51:23 +00:00
ru
fe2efd38b3 mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
ru
488a409db7 mdoc(7) police: reapply rev 1.7 lost in previous commit, clean up a bit. 2000-12-11 09:42:00 +00:00
archie
d258c45e27 Fixes to the Aironet driver to clear up some WEP issues.
"Security notes" section to the man page added by me.

PR:		23097
Submitted by:	Doug Ambrisko <ambrisko@whistle.com>
2000-12-08 19:02:35 +00:00
ru
c3189e713e mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
wpaul
d32b043517 Close PR# 21843 and PR# 21864. This adds support for WEP and updates some
of the data structures to include new members that weren't defined in the
manual I have.

I opted to use Doug Ambrisko's WEP patches since David Cornejo's patches
did not include the necessary changes to ancontrol(8) to actually enable
and use WEP.

NOTE: I don't currently have access to an Aironet card, so I can't test
any of this. Everything compiles and close scrutiny doesn't reveal any
obvious problems, but Murphy's Law applies. This means I will probably
leave these changes in -current for a bit longer than usual until I'm
sure they work right.
2000-11-13 23:04:16 +00:00
joe
abed0eb79c Make '-i iface' optional. Assume an0 if it's not otherwise specified. 2000-10-28 23:33:28 +00:00
roberto
3585ae124d Remove a comment that should not have been committed. 2000-06-29 08:15:47 +00:00
green
5b8858ab23 Fix a comment botch which broke buildworld. 2000-06-19 15:27:39 +00:00
roberto
eed4512ead Fix potential buffer overflows (even if ancontrol is not setuid).
Submitted by:	Aaron Campbell <aaron@cs.dal.ca> from OpenBSD
2000-06-18 23:10:20 +00:00
mpp
46403b5cf9 ancontrol first appeared in FreeBSD 4.0, not 3.0.
Also fix a couple of minor mdoc style things as long as I'm in here.

Submitted by:	Allen Campbell <allenc@verinet.com>
2000-04-23 16:40:02 +00:00