summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifieee80211.c
Commit message (Collapse)AuthorAgeFilesLines
* Mark a mesh path to a mesh gate with a 'G'.monthadar2013-02-071-1/+3
| | | | Approved by: adrian (mentor)
* * Modified ifconfig to show the IEEE80211_MESHRT_FLAGS_DISCOVER flag with a 'D';monthadar2012-05-011-0/+2
| | | | Approved by: adrian
* * Added new command to ifconfig to activate Mesh Gate Announcement calledmonthadar2012-05-011-0/+14
| | | | | | meshgate with corresponding explanation; Approved by: adrian
* Also fix the parameter usage in set80211meshpeering().bschmidt2012-03-231-1/+1
| | | | | | Submitted by: Monthadar Al Jaberi MFC after: 1 week X-MFC after: r233328
* Fix an incorrect parameter usage here.adrian2012-03-221-1/+1
| | | | Submitted by: monthadar@gmail.com
* Fix warning when compiling with gcc46:eadler2012-01-101-3/+0
| | | | | | | error: variable 'firstkey' set but not used Approved by: dim MFC after: 3 days
* Spelling fixes for sbin/uqs2012-01-071-1/+1
|
* Add quiet time element configuration support to ifconfig.adrian2011-11-081-0/+36
| | | | | | | | | | This allows a hostap to specify to a set of stations that they should not transmit for a certain period of time after each beacon interval has expired. This is used when searching for radar pulses or general interference. Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies
* This patch removes a check in ifconfig which disables HT/40 channelsadrian2011-07-201-12/+0
| | | | | | | | | | | | | on frequency bands with DFS. All Atheros chipsets >= AR9001 support radar event detection on HT40 extension channels. This should be a chipset specific item rather than enforced in the regulatory domain database. In addition, it's irrelevant for STA mode, as the radar detection is done by the access point, not the STA. Approved by: re (kib)
* This patch enables listing DFS related flags when 'ifconfig -v wlanXadrian2011-07-191-3/+14
| | | | | | | | | | | | | | | list channel' is run. The following new options are introduced: * D: channel requires DFS * R: channel has a radar event * I: channel has detected inteference * C: the CAC period has completed on a channel that requires it (ie, DFS + PASSIVE.) It's relevant for developing, debugging and using the DFS and interference options. Approved by: re (bz)
* Revert r220907 and r220915.adrian2011-04-221-5/+3
| | | | | Changing the size of struct ieee80211_mimo_info changes the STA info data, breaking ifconfig in general.
* Change the MIMO userland export ABI to include flags, number of radio chains,adrian2011-04-211-3/+5
| | | | | | extended EVM statistics and EXT channel data. ifconfig still displays 3 chains worth of ctl noise/rssi.
* Fix the 'scan hang' issue.bschmidt2011-01-301-2/+6
| | | | | | | | | | | | When requesting a scan and one is already in progess, e.g. while in scan state, we happily wait for a scan done notification. Though, this notification might never be sent, e.g. if we are trying to find a network to associate to and there is none. Instead of always waiting for a notification just do so if a new scan has been started. For both cases the scan cache is used to report available networks even if the content might not be fresh. MFC after: 1 month
* When doing a scan while being associated it is possible that the scanbschmidt2011-01-301-0/+1
| | | | | | | | | | | | is deferred for the time it takes to flush the TX queue. This work being done the scan then is continued, but only if it is marked to do so. As the 'ifconfig scan' request is meant to be used after the interface is brought up, request a background scan by default. This behaviour is already documented in manual page. This fixes on possible case where 'ifconfig scan' hangs infinitely. MFC after: 1 month
* Fix typos.rpaulo2010-04-281-1/+1
| | | | Obtained from: DragonFlyBSD
* Add a missing LINE_BREAK() after printing the roaming parameters inrpaulo2010-03-231-0/+1
| | | | | | | verbose mode. Sponsored by: iXsystems, inc. MFC after: 2 weeks
* The NetBSD Foundation has granted permission for people to removeimp2010-02-161-7/+0
| | | | clause 3 and 4 from their software.
* Spell "Hz" correctly wherever it is user-visible.gavin2010-01-121-5/+5
| | | | | | | PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks
* Update for latest 802.11s changes in meshconf format.rpaulo2009-10-121-15/+21
| | | | MFC after: 3 days
* Mesh fixes, namely:rpaulo2009-07-271-11/+14
| | | | | | | | | | | | * don't clobber proxy entries * HWMP seq number processing, including discard of old frames * flush routing table entries based on nexthop * print route flags in ifconfig * more debugging messages and comments Proxy changes submitted by sam. Approved by: re (kib)
* More mesh bits, namely:rpaulo2009-07-201-4/+6
| | | | | | | | | | | | | | * bridge support (sam) * handling of errors (sam) * deletion of inactive routing entries * more debug msgs (sam) * fixed some inconsistencies with the spec. * decap is now specific to mesh (sam) * print mesh seq. no. on ifconfig list mesh * small perf. improvements Reviewed by: sam Approved by: re (kib)
* Implementation of the upcoming Wireless Mesh standard, 802.11s, on therpaulo2009-07-111-48/+379
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | net80211 wireless stack. This work is based on the March 2009 D3.0 draft standard. This standard is expected to become final next year. This includes two main net80211 modules, ieee80211_mesh.c which deals with peer link management, link metric calculation, routing table control and mesh configuration and ieee80211_hwmp.c which deals with the actually routing process on the mesh network. HWMP is the mandatory routing protocol on by the mesh standard, but others, such as RA-OLSR, can be implemented. Authentication and encryption are not implemented. There are several scripts under tools/tools/net80211/scripts that can be used to test different mesh network topologies and they also teach you how to setup a mesh vap (for the impatient: ifconfig wlan0 create wlandev ... wlanmode mesh). A new build option is available: IEEE80211_SUPPORT_MESH and it's enabled by default on GENERIC kernels for i386, amd64, sparc64 and pc98. Drivers that support mesh networks right now are: ath, ral and mwl. More information at: http://wiki.freebsd.org/WifiMesh Please note that this work is experimental. Also, please note that bridging a mesh vap with another network interface is not yet supported. Many thanks to the FreeBSD Foundation for sponsoring this project and to Sam Leffler for his support. Also, I would like to thank Gateworks Corporation for sending me a Cambria board which was used during the development of this project. Reviewed by: sam Approved by: re (kensmith) Obtained from: projects/mesh11s
* Rev IEEE80211_IOC_STA_INFO abi: ni_flags grew from 16 bits to 32sam2009-06-131-21/+31
| | | | | | | | bits but isi_state did not follow; expand it to 32 bits and pad to maintain alignment. Note this is an incompatible change that requires rebuilding of user applications. Submitted by: rpaulo, cbzimmer, avatar
* track rename of CSA iesam2009-06-041-1/+1
| | | | Submitted by: wxs
* add superg+tdma include files for protocol defs needed to do ie parsingsam2009-03-261-7/+3
|
* Replace clone_setcallback() with a new function clone_setdefcallback()rpaulo2009-02-271-8/+3
| | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version)
* Fixup handling of roaming and xmit parameters to support 1/2 and 1/4-widthsam2009-02-191-110/+125
| | | | | | | | | channel modes: o usurp 'h' mode flag for half-width channels o add 'q' mode flag for quarter-width channels o rewrite rate parameter parsing to handle fractional values o merge mode loops to eliminate ordering assumptions o replace 0x80 with IEEE80211_RATE_MCS
* Regulatory fixups:sam2009-02-071-66/+130
| | | | | | | | | | | | o add missing channel flags for ECM, indoor, and outdoor constraints o use HT capabilities to short-circuit HT20/HT40 channel construction o rewrite 1/2 and 1/4 width channel handling yet again; previously we assumed there was a full-width version of the channel in the calibration table but that's not always true (e.g. for the Public Safety Band), now we first check the calibration table for the exact channel we want then fall back to the heuristics we used before o fix HT channel construction; wasn't adjusting band edges for HT40 channel bandwidth requirements
* Use %u instead of %zu when we intend to print integer constant.delphij2009-02-031-3/+3
|
* include the channel list in list caps when -v is set; ieee channelsam2009-01-281-2/+9
| | | | | #'s are not available and we have to hack around the mapchan routine but it lets us see the calibration table w/o forcing the debug regdomain
* pritize the channel we display with list chans so that, among othersam2009-01-281-1/+28
| | | | | | things, 1/2 and 1/4 width channels are hidden behind the full width channel; this is needed because they are ordered such that they appear after in the channel table
* simplify display of 1/2 and 1/4 width channelssam2009-01-281-16/+9
|
* improve debug msgs for regdomain operations; print channel flagssam2009-01-281-12/+25
| | | | | symbolically so it's easier to identify channels and why they are added (or not)
* Fix 1/2 and 1/4 width channel handling:sam2009-01-281-30/+38
| | | | | | | | | | | | o only include 1/2 and 1/4 width channels when they are specified in the regulatory database description; previously we treated them as if they were part of the band and blindly added them for 11a/g o check the channel list returned in the devcaps to identify whether a device supports 1/2 or 1/4 width channels on a band; this might be better brought out as a capability bit to avoid filling the channel list w/ 1/2 and 1/4 width channels but then cards that only support these channels in a range of frequencies could not be described (though right now we don't check frequency range only band)
* Remove assumptions about the max # channels in ioctl's:sam2009-01-271-85/+132
| | | | | | | | | o change ioctl's that pass channel lists in/out to handle variable-size arrays instead of a fixed (compile-time) value; we do this in a way that maintains binary compatibility o change ifconfig so all channel list data structures are now allocated to hold MAXCHAN entries (1536); this, for example, allows the kernel to return > IEEE80211_CHAN_MAX entries for calls like IEEE80211_IOC_DEVCAPS
* remove %b msg bit defines now publicsam2009-01-271-7/+0
|
* Fix 1/2 and 1/4 width channel handling for non-GSM operation:sam2009-01-161-3/+17
| | | | | | o correct typo that caused random channel selection o explicitly add 1/2 and 1/4 width channels because channel lookups match flags that include IEEE80211_CHANNEL_HALF and IEEE80211_CHANNEL_QUARTER
* TDMA support for long distance point-to-point links using ath devices:sam2009-01-081-3/+68
| | | | | | | | | | | | | | | o add net80211 support for a tdma vap that is built on top of the existing adhoc-demo support o add tdma scheduling of frame transmission to the ath driver; it's conceivable other devices might be capable of this too in which case they can make use of the 802.11 protocol additions etc. o add minor bits to user tools that need to know: ifconfig to setup and configure, new statistics in athstats, and new debug mask bits While the architecture can support >2 slots in a TDMA BSS the current design is intended (and tested) for only 2 slots. Sponsored by: Intel
* move channel parsing to a getchannel routine so it can be reused to checksam2008-12-151-30/+29
| | | | the channel argument supplied to chanswitch
* fix handling of sku codes like country codessam2008-12-151-2/+6
|
* fix handling of unknown country codes; atoi doesn't return -1sam2008-12-151-2/+6
| | | | for an invalid string as I thought; so use strtol instead
* 0 is a potential ISO CC; use new NO_COUNTRY #define to identifysam2008-12-151-2/+2
| | | | | | when the CC is not set. Note NO_COUNTRY is set to 0xffff for now (must be 16 bits as ieee80211_regdomain struct defines sku's and cc's as uint16_t which may need fixing).
* o distinguish between adhoc and ahdemo modessam2008-12-151-4/+16
| | | | | | | o do not require 1/2 and 1/4 rate channels be present in the calibration list when doing a gsm regulatory change; the existing 900MHz cards are not self-identifying so there is no way (using the calibration channel list) to check
* MIMO power save and RIFS; while here also update per-node state/flags for ampdusam2008-09-221-0/+47
|
* "ampdudensity -" is too subtle; use "NA" for any and accept it as a parametersam2008-09-221-2/+2
|
* Fix channel parsing which was broken in r179958, the channel number may bethompsa2008-08-141-2/+4
| | | | suffixed with :flag and /width.
* recognize WPS ie'ssam2008-08-091-0/+81
| | | | | Submitted by: "Chuck Tuffli" <chuck@tuffli.net> MFC after: 1 week
* change list wme to only print the channel parameters; tosam2008-08-021-37/+52
| | | | get channel+bss use -v
* don't silently exit if the regdomain.xml file is missingsam2008-08-021-1/+1
|
* add missing capability bitssam2008-08-011-2/+2
|
OpenPOWER on IntegriCloud