aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ancontrol/ancontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* ancontrol(8): replace comma with semicolon when pertinent.Pedro F. Giffuni2016-08-091-2/+2
| | | | | | | | | | | | | Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone. Detected with devel/coccinelle following a hint from DragonFlyBSD. MFC after: 1 month Notes: svn path=/head/; revision=303894
* Stop including if_var.h from userland.Gleb Smirnoff2015-04-061-1/+0
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=281143
* Fix always 0 tautologly revealed by gcc46Eitan Adler2012-07-081-1/+1
| | | | | | | | Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=238221
* Remove duplicated header filesKevin Lo2011-06-241-1/+0
| | | | Notes: svn path=/head/; revision=223492
* ANSIfy some more tools in usr.sbin/.Ed Schouten2010-01-021-2/+2
| | | | | | | | Most of these tools build with WARNS=6, except for their use of K&R function declarations. Notes: svn path=/head/; revision=201387
* Remove duplicate headers <sys/socket.h>Kevin Lo2008-04-211-1/+0
| | | | Notes: svn path=/head/; revision=178370
* Allow the -f argument to work.Ceri Davies2004-11-031-1/+1
| | | | | | | | | | PR: bin/73229 Submitted by: Irina Liakh <spell at itl dot ua> MT4: 2 weeks MT5: After 5.3-RELEASE Notes: svn path=/head/; revision=137169
* Clean up some more casts. Note that the an_fudge alignment hack forNate Lawson2004-07-301-23/+17
| | | | | | | | struct an_ltv_stats needs to be fixed. It has been here since this was imported. Notes: svn path=/head/; revision=132900
* Fix printing of stats by printing an unsigned value as unsigned. ANSIfyNate Lawson2004-07-301-197/+152
| | | | | | | | | function prototypes. Remove unnecessary returns. Submitted by: David Hill <davidh -at- wmis.net> Notes: svn path=/head/; revision=132860
* Remove an annoying printf that somehow leaked into rev 1.21.Nate Lawson2003-11-161-1/+0
| | | | Notes: svn path=/head/; revision=122789
* - Add support for Cisco latest firmware RID sizes that supports 25 SSIDs!Doug Ambrisko2003-08-201-50/+42
| | | | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=119156
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.David E. O'Brien2003-05-031-2/+4
| | | | Notes: svn path=/head/; revision=114601
* Add support for MPI-350 the mini-pci Cisco Aironet card. This needs moreDoug Ambrisko2002-12-291-21/+101
| | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=108401
* de-__P()Alfred Perlstein2002-07-111-27/+27
| | | | Notes: svn path=/head/; revision=99800
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=90868
* Make man page and usage statement match reality submitted by Ruslan,Doug Ambrisko2002-01-151-9/+20
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=89380
* Fix bugs in the structure for rx_frame by making gap length one byte andDoug Ambrisko2001-12-311-7/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=88748
* Fix typo in usage (power same -> power save).Pierre Beyssac2001-12-181-1/+1
| | | | Notes: svn path=/head/; revision=88153
* Add support for monitor mode. This means that after enabling theBrooks Davis2001-09-101-5/+18
| | | | | | | | | | | 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) Notes: svn path=/head/; revision=83269
* Removed duplicate VCS ID tags, as per style(9).Ruslan Ermilov2001-08-131-9/+7
| | | | Notes: svn path=/head/; revision=81586
* Make ancontrol WARNS=2 clean.Brooks Davis2001-07-271-44/+50
| | | | Notes: svn path=/head/; revision=80454
* Fix typosKris Kennaway2001-07-231-3/+3
| | | | | | | | Obtained from: OpenBSD MFC After: 1 week Notes: svn path=/head/; revision=80186
* Output the current TX rate when showing status.Brooks Davis2001-06-261-0/+11
| | | | | | | PR: bin/25470 Notes: svn path=/head/; revision=78788
* If the first argument doesn't start with '-' assume that it is anWarner Losh2000-12-311-2/+7
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=70532
* Fixes to the Aironet driver to clear up some WEP issues.Archie Cobbs2000-12-081-9/+108
| | | | | | | | | | "Security notes" section to the man page added by me. PR: 23097 Submitted by: Doug Ambrisko <ambrisko@whistle.com> Notes: svn path=/head/; revision=69772
* Close PR# 21843 and PR# 21864. This adds support for WEP and updates someBill Paul2000-11-131-7/+133
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=68692
* Make '-i iface' optional. Assume an0 if it's not otherwise specified.Josef Karthauser2000-10-281-4/+13
| | | | Notes: svn path=/head/; revision=67823
* Remove a comment that should not have been committed.Ollivier Robert2000-06-291-2/+0
| | | | Notes: svn path=/head/; revision=62239
* Fix a comment botch which broke buildworld.Brian Feldman2000-06-191-0/+2
| | | | Notes: svn path=/head/; revision=61822
* Fix potential buffer overflows (even if ancontrol is not setuid).Ollivier Robert2000-06-181-13/+10
| | | | | | | Submitted by: Aaron Campbell <aaron@cs.dal.ca> from OpenBSD Notes: svn path=/head/; revision=61815
* Add driver support for the Aironet 4500/4800 series wireless 802.11Bill Paul2000-01-141-0/+1348
NICs. (Finally!) The PCMCIA, ISA and PCI varieties are all supported, though only the ISA and PCI ones will work on the alpha for now. PCCARD, ISA and PCI attachments are all provided. Also provided an ancontrol(8) utility for configuring the NIC, man pages, and updated pccard.conf.sample. ISA cards are supported in both ISA PnP and hard-wired mode, although you must configure the kernel explicitly to support the hardwired mode since you have to know the I/O address and port ahead of time. Special thanks to Doug Ambrisko for doing the initial newbus hackery and getting it to work in infrastructure mode. Notes: svn path=/head/; revision=55992