]> git.ipfire.org Git - thirdparty/iw.git/log
thirdparty/iw.git
9 years agoupdate to version 3.17 v3.17
Johannes Berg [Thu, 9 Oct 2014 14:21:35 +0000 (16:21 +0200)] 
update to version 3.17

This means I forgot and am skipping 3.16, too bad.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211 feature list in the code
Johannes Berg [Thu, 9 Oct 2014 14:30:38 +0000 (16:30 +0200)] 
update nl80211 feature list in the code

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: add auto parameter to set distance command
Lorenzo Bianconi [Sun, 7 Sep 2014 17:32:20 +0000 (19:32 +0200)] 
iw: add auto parameter to set distance command

Add auto parameter to set distance command in order to enable ACK timeout
estimation algorithm (dynack). Dynack is automatically disabled setting valid
value for coverage class. Currently dynack is supported just by ath9k

This patch is based on "configure dynack through mac80211/cfg80211 stack"
patchset sent on linux-wireless

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: fix memory leak
Yegor Yefremov [Sat, 20 Sep 2014 18:25:25 +0000 (20:25 +0200)] 
iw: fix memory leak

Close f, when returning before while loop.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: remove double break
Yegor Yefremov [Sat, 20 Sep 2014 18:25:24 +0000 (20:25 +0200)] 
iw: remove double break

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: Allow basic rates to be configured when joining mesh
Chun-Yeow Yeoh [Tue, 23 Sep 2014 01:14:49 +0000 (09:14 +0800)] 
iw: Allow basic rates to be configured when joining mesh

This patch adds option to configure basic rates during mesh join.

Signed-off-by: Ashok Nagarajan <ashok.dragon@gmail.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
v2: minor change for upstream
v3: fix typo error (Colleen)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: Allow user to provide freq during mesh join
Chun-Yeow Yeoh [Tue, 23 Sep 2014 01:14:48 +0000 (09:14 +0800)] 
iw: Allow user to provide freq during mesh join

Allow user to configure frequency and channel type during
mesh join command.

Signed-off-by: Ashok Nagarajan <ashok.dragon@gmail.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
v2: use chandef similar to IBSS (Johannes)
v4: make the mesh join command more self-explanatory (Bob Copeland)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Thu, 9 Oct 2014 14:16:27 +0000 (16:16 +0200)] 
update nl80211.h

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: print hexdump when vendor event
Janusz Dziedzic [Wed, 27 Aug 2014 07:58:28 +0000 (09:58 +0200)] 
iw: print hexdump when vendor event

print hexdump when vendor event and -f requested

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: print expected throughput when dumping station
Antonio Quartulli [Sat, 17 May 2014 18:17:12 +0000 (20:17 +0200)] 
iw: print expected throughput when dumping station

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Tue, 3 Jun 2014 19:45:06 +0000 (21:45 +0200)] 
update nl80211.h

The file is a merge of upstream mac80211 and mac80211-next trees as
otherwise iw fails to compile on NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoversion 3.15 v3.15
Johannes Berg [Tue, 20 May 2014 14:19:25 +0000 (16:19 +0200)] 
version 3.15

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: handle DFS CAC time param
Janusz Dziedzic [Fri, 9 May 2014 08:19:55 +0000 (10:19 +0200)] 
iw: handle DFS CAC time param

Handle DFS CAC time param for
iw list/info, iw reg get

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h to 3.15 version
Johannes Berg [Tue, 13 May 2014 13:47:52 +0000 (15:47 +0200)] 
update nl80211.h to 3.15 version

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10 years agowowlan: don't require pattern offset
Johannes Berg [Thu, 10 Apr 2014 07:42:30 +0000 (09:42 +0200)] 
wowlan: don't require pattern offset

Not all kernels have offset support, so don't treat it
being absent as an error.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10 years agoiw: embrace the Developer Certificate of Origin for contributions
Luis R. Rodriguez [Fri, 7 Mar 2014 22:28:50 +0000 (14:28 -0800)] 
iw: embrace the Developer Certificate of Origin for contributions

The Linux kernel started to embrace a light weight development contribution
agreement process called the Developer Certificate of Origin (DCO) circa
2004. Attorneys all over the planet have conferred a lot of respect and
appreciation for this document and it provides a light weight alternative to
cumbersome and controversial Contribution License Agreements (CLAs).

Similar to streamlining FOSS licenses we also all stand to gain from
streamlining a light weight contribution agreement process for development
and in light of this the the Linux Foundation recently has made the DCO a
standalone project [0] so that any FOSS project under any FOSS license can
take advantage of the same gains. The motivation and intent is documented
only currently on my blog post [1].

Lets take advantage of the new shiny DCO and embrace it for contributions.

NOTE: Contributions before this commit that still included a Signed-off-by
      line (presumably out of habit of typing -s with git commands) aren't
      necessarily covered by this agreement.

[0] http://developercertificate.org/
[1] http://www.do-not-panic.com/2014/02/developer-certificate-of-origin.html

Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
10 years agoiw: add support to set/get retry limit
Ujjal Roy [Fri, 7 Mar 2014 06:53:38 +0000 (12:23 +0530)] 
iw: add support to set/get retry limit

Show the retry limit in phy details and also configure the
retry limit.

Signed-off-by: Ujjal Roy <royujjal@gmail.com>
10 years agofix RX & TX Antenna Pattern Consistency in VHT capabilities
Maxime Bizon [Mon, 17 Feb 2014 21:52:02 +0000 (22:52 +0100)] 
fix RX & TX Antenna Pattern Consistency in VHT capabilities

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
10 years agoprint command name for unknown events
Johannes Berg [Tue, 28 Jan 2014 11:16:16 +0000 (12:16 +0100)] 
print command name for unknown events

10 years agoiw: add sgi/lgi support to set bitrates
Janusz Dziedzic [Sat, 21 Dec 2013 19:18:22 +0000 (20:18 +0100)] 
iw: add sgi/lgi support to set bitrates

Add possiblity to force SGI/LGI.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 years agoupdate nl80211.h
Johannes Berg [Fri, 24 Jan 2014 15:07:51 +0000 (16:07 +0100)] 
update nl80211.h

10 years agoversion 3.14 v3.14
Johannes Berg [Fri, 24 Jan 2014 15:03:42 +0000 (16:03 +0100)] 
version 3.14

10 years agoiw: add VHT MCS/NSS set support to set bitrates
Janusz Dziedzic [Fri, 6 Dec 2013 12:34:19 +0000 (13:34 +0100)] 
iw: add VHT MCS/NSS set support to set bitrates

mcs-2.4/mcs-5 rename to ht-mcs-2.4/ht-mcs-5
vht-mcs-2.4/vht-mcs-5 added

Format for vht-mcs-*, eg:
1:0-9 - set NSS=1 and MCS0-9
2:4,5 - set NSS=2 and MCS4, MCS5
3:1   - set NSS=3 and MCS1

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
10 years agoupdate command list
Johannes Berg [Fri, 24 Jan 2014 14:56:12 +0000 (15:56 +0100)] 
update command list

10 years agolisten to vendor events
Johannes Berg [Fri, 24 Jan 2014 14:56:02 +0000 (15:56 +0100)] 
listen to vendor events

10 years agoupdate nl80211.h to kernel 3.14 version
Johannes Berg [Fri, 24 Jan 2014 14:55:46 +0000 (15:55 +0100)] 
update nl80211.h to kernel 3.14 version

10 years agoinfo: print something for T-DLS support
Johannes Berg [Mon, 6 Jan 2014 16:22:00 +0000 (17:22 +0100)] 
info: print something for T-DLS support

10 years agoversion 3.13 v3.13
Johannes Berg [Tue, 3 Dec 2013 20:47:27 +0000 (21:47 +0100)] 
version 3.13

Seems like I skipped version 3.12, and we already have
a bit more than kernel 3.13 will have, but hey.

10 years agoiw: Use NL80211_FREQUENCY_ATTR_NO_IR channel attribute
Ilan Peer [Thu, 14 Nov 2013 07:15:34 +0000 (09:15 +0200)] 
iw: Use NL80211_FREQUENCY_ATTR_NO_IR channel attribute

Align iw with the change in nl80211.h where NL80211_FREQUENCY_ATTR_NO_IBSS
and NL80211_FREQUENCY_ATTR_PASSIVE_SCAN were replaced by
NL80211_FREQUENCY_ATTR_NO_IR.

In case both NL80211_FREQUENCY_ATTR_NO_IR and __NL80211_FREQUENCY_ATTR_NO_IBSS
are set, assume that a new kernel is used and use the NO_IR notation,
otherwise use the previous notation.

This change requires nl80211.h with the new definitions

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
10 years agoupdate nl80211.h
Johannes Berg [Mon, 25 Nov 2013 16:17:23 +0000 (17:17 +0100)] 
update nl80211.h

10 years agoiw: add support for 5 and 10 MHz channels in IBSS mode
Simon Wunderlich [Tue, 12 Nov 2013 17:31:58 +0000 (18:31 +0100)] 
iw: add support for 5 and 10 MHz channels in IBSS mode

5/10 MHz requires to send the frequency information as chandef instead
of the the old channel type, therfore send the chandef next the channel
type (the latter is still used for old kernels).

Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
10 years agoDon't get iw version from git if there is no .git/
Florian Schmaus [Fri, 6 Sep 2013 15:41:10 +0000 (17:41 +0200)] 
Don't get iw version from git if there is no .git/

The version.sh script should only try to get the version from git if the
source actually resides in a git repository, i.e. .git/ exists. Doing
otherwise in a non-git source repo results in git ascending until it
finds a .git directory, which will cause problems in some source-based
distributions ( https://bugs.gentoo.org/show_bug.cgi?id=482334 ).

10 years agoiw: sync frequency to channel mapping with kernel
Bruno Randolf [Thu, 26 Sep 2013 16:45:45 +0000 (17:45 +0100)] 
iw: sync frequency to channel mapping with kernel

Use ieee80211_frequency_to_channel() and ieee80211_channel_to_frequency() as in
the current kernel. This is necessary to properly print the channel numbers for
4.9GHz channels which can be used in Japan.

Signed-off-by: Bruno Randolf <br1@einfach.org>
10 years agoiw: Print out HotSpot2 IE information.
Ben Greear [Thu, 29 Aug 2013 22:23:47 +0000 (15:23 -0700)] 
iw: Print out HotSpot2 IE information.

Example:

HotSpot 2.0 Indication:
DGAF: 0

Signed-off-by: Ben Greear <greearb@candelatech.com>
10 years agoiw: Print 802.11u roaming consortium IE in scan results.
Ben Greear [Thu, 29 Aug 2013 22:23:46 +0000 (15:23 -0700)] 
iw: Print 802.11u roaming consortium IE in scan results.

Example output:

802.11u Roaming Consortium:
ANQP OIs: 0
OI 1: 01010101

Signed-off-by: Ben Greear <greearb@candelatech.com>
10 years agoiw: Print 802.11u Advertisement IE info in scan results.
Ben Greear [Thu, 29 Aug 2013 22:23:45 +0000 (15:23 -0700)] 
iw: Print 802.11u Advertisement IE info in scan results.

Sample output looks like:

802.11u Advertisement:
Query Response Info: 0x7f
Query Response Length Limit: 127
ANQP

Signed-off-by: Ben Greear <greearb@candelatech.com>
10 years agoiw: Print Interworking IE details in scan results.
Ben Greear [Thu, 29 Aug 2013 22:23:44 +0000 (15:23 -0700)] 
iw: Print Interworking IE details in scan results.

Output looks like:

802.11u Interworking:
Network Options: 0xf1
Network Type: 1 (Private with Guest)
Internet
ASRA
ESR
UESA
Venue Group: 2 (Business)
Venue Type: 1
HESSID: 00:00:00:00:00:01

Signed-off-by: Ben Greear <greearb@candelatech.com>
10 years agoversion 3.11 v3.11
Johannes Berg [Thu, 29 Aug 2013 10:09:39 +0000 (12:09 +0200)] 
version 3.11

We already have more features supported than will be in 3.11
(notably the coalescing support) but that doesn't really matter.

10 years agoprint single GTKSA/PTKSA capability, TDLS/TPK auth
Joerg Mayer [Thu, 29 Aug 2013 10:07:38 +0000 (12:07 +0200)] 
print single GTKSA/PTKSA capability, TDLS/TPK auth

10 years agoiw: correction in coalesce condition display message
Amitkumar Karwar [Mon, 5 Aug 2013 22:06:06 +0000 (15:06 -0700)] 
iw: correction in coalesce condition display message

NL80211_COALESCE_CONDITION_MATCH is 0 and
NL80211_COALESCE_CONDITION_NO_MATCH is 1.
Hence this change is required

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
10 years agoiw: print out mesh configuration element on scan
Chun-Yeow Yeoh [Fri, 12 Jul 2013 11:17:06 +0000 (19:17 +0800)] 
iw: print out mesh configuration element on scan

Print out mesh configuration element which will be useful for
decision making whether to join or not join the mesh network.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
10 years agoiw: dump station per-chain signal strength information
Felix Fietkau [Thu, 11 Jul 2013 12:20:38 +0000 (14:20 +0200)] 
iw: dump station per-chain signal strength information

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agoiw: dump station rx bit rate information
Felix Fietkau [Thu, 11 Jul 2013 12:20:37 +0000 (14:20 +0200)] 
iw: dump station rx bit rate information

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agoiw: add the active monitor flag
Felix Fietkau [Thu, 11 Jul 2013 12:20:39 +0000 (14:20 +0200)] 
iw: add the active monitor flag

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agoiw: Add support for mesh peer link expiration.
Colleen Twitty [Mon, 8 Jul 2013 17:04:18 +0000 (10:04 -0700)] 
iw: Add support for mesh peer link expiration.

User can configure the peer link expiration time with a
new mesh parameter, mesh_plink_timeout.  This parameter
sets the expiration time, in seconds, for peer links.
After this time, the peer link is expired.  This means the
inactive STA is removed from the list of peers and is not
considered a peer again unless it re-peers.

Signed-off-by: Colleen Twitty <colleen@cozybit.com>
10 years agoiw: add coalesce support
Amitkumar Karwar [Fri, 28 Jun 2013 19:53:45 +0000 (12:53 -0700)] 
iw: add coalesce support

User can configure multiple coalesce rules using 'iw coalesce
enable <config-file>' command. The setting can be cleared using
'iw coalesce disable' command. 'iw coalesce show' displays current
configuration.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
10 years agoiw: use updated structures and enums for packet pattern
Amitkumar Karwar [Fri, 28 Jun 2013 19:53:44 +0000 (12:53 -0700)] 
iw: use updated structures and enums for packet pattern

They are renamed in new nl80211.h so that they can be used for
new feature. This patch uses those updated structures and enums
to make the code look nicer.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
10 years agoupdate nl80211.h
Johannes Berg [Mon, 8 Jul 2013 11:18:42 +0000 (13:18 +0200)] 
update nl80211.h

10 years agoiw: reorder some code in iw_connect to avoid a potential memory leak
John W. Linville [Wed, 26 Jun 2013 15:07:16 +0000 (11:07 -0400)] 
iw: reorder some code in iw_connect to avoid a potential memory leak

iw-3.10/connect.c:104:leaked_storage –
Variable "conn_argv" going out of scope leaks the storage it points to.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
10 years agoiw: fix incorrect bit shifting in print_ht_mcs
John W. Linville [Wed, 26 Jun 2013 15:07:40 +0000 (11:07 -0400)] 
iw: fix incorrect bit shifting in print_ht_mcs

iw-3.10/util.c:569:result_independent_of_operands –
"mcs[10] >> 8" is 0 regardless of the values of its operands. This occurs as the bitwise first operand of '&'.

This seems more like what was intended...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
10 years agoadd new nl80211 commands to list
Johannes Berg [Thu, 16 May 2013 21:33:14 +0000 (23:33 +0200)] 
add new nl80211 commands to list

10 years agoiw: scan using meshid
jacob minshall [Thu, 25 Apr 2013 22:02:19 +0000 (15:02 -0700)] 
iw: scan using meshid

This patch adds the ability to perform a directed scan
for MBSSs matching meshid by

iw <dev> scan meshid <meshid>

Signed-off-by: jacob minshall <jacob@cozybit.com>
10 years agoupdate version to 3.10 v3.10
Johannes Berg [Thu, 2 May 2013 07:29:10 +0000 (09:29 +0200)] 
update version to 3.10

It seems I forgot to release 3.9 when that kernel was starting,
so there's little point in doing it now. The 3.10 merge window
has opened and wireless features are finalized, so this version
of iw matches what will be supported in 3.10.

10 years agoupdate nl80211 to 3.10 version
Johannes Berg [Thu, 2 May 2013 07:28:44 +0000 (09:28 +0200)] 
update nl80211 to 3.10 version

10 years agofix "iw phy#0 info"
Johannes Berg [Thu, 2 May 2013 07:22:58 +0000 (09:22 +0200)] 
fix "iw phy#0 info"

Ben Greear reported that on a kernel that doesn't have the split
(and therefore filtered) wiphy dump feature, "iw phy#0 info" was
reporting data for all devices, rather than just one. This was a
result of using the split/filtered dump rather than a simple get
on "older" kernels (before 3.10!)

Fix this by checking the kernel feature before getting the data.

10 years agoiw/event: Print out PROBE_CLIENT event information.
Ben Greear [Wed, 24 Apr 2013 19:25:52 +0000 (12:25 -0700)] 
iw/event: Print out PROBE_CLIENT event information.

For instance:
vap0 (phy #0): probe client 00:ab:cd:ef:03:5c (cookie f54bb400): no ack

Signed-off-by: Ben Greear <greearb@candelatech.com>
10 years agoadd Android build system
Johannes Berg [Thu, 25 Apr 2013 06:43:39 +0000 (08:43 +0200)] 
add Android build system

Unfortunately Android's libnl doesn't have nla_put_flag()
so add a simple source file to declare that for now.

10 years agomakefile: allow passing NO_PKG_CONFIG
Johannes Berg [Tue, 23 Apr 2013 13:32:27 +0000 (15:32 +0200)] 
makefile: allow passing NO_PKG_CONFIG

To build iw without pkg-config, you can now do something
like

$ make NO_PKG_CONFIG=1 LDFLAGS=-lnl

10 years agomakefile: don't include .config
Johannes Berg [Tue, 23 Apr 2013 13:29:37 +0000 (15:29 +0200)] 
makefile: don't include .config

This is no longer used to configure the tool.

10 years agoclean up makefile
Johannes Berg [Tue, 23 Apr 2013 13:28:50 +0000 (15:28 +0200)] 
clean up makefile

Change the makefile a bit to add the optional
things in a cleaner way.

11 years agoiw: decode some more IEs
Joerg Mayer [Fri, 19 Apr 2013 20:39:05 +0000 (22:39 +0200)] 
iw: decode some more IEs

Small update, found while verifying against the standard.

Thanks
    Jörg

The results of a boring train ride:
- Decode some IEs sent by other traveller's devices
  + IBSS ATIM window
  + TPC report
  + Old ERP IE (802.11g D4.0)
- Tiny whitespace fix
- Add Unit 'TUs' to beacon interval.

v2: TPC: Link margin element is not used in beacons

In case this project requires a sob:
Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agofix scan segfault when IFINDEX attribute isn't present
Johannes Berg [Thu, 18 Apr 2013 22:48:16 +0000 (00:48 +0200)] 
fix scan segfault when IFINDEX attribute isn't present

11 years agoalign TDLS output
Johannes Berg [Wed, 10 Apr 2013 09:44:18 +0000 (11:44 +0200)] 
align TDLS output

11 years agorefactor bitrate printing
Johannes Berg [Wed, 10 Apr 2013 09:42:41 +0000 (11:42 +0200)] 
refactor bitrate printing

I updated only "iw link" for VHT, so refactor it now to
also get "iw station dump" etc. updated and not make this
mistake again in the future.

11 years agoiw: display DFS regulatory domain
Zefir Kurtisi [Wed, 3 Apr 2013 12:51:56 +0000 (14:51 +0200)] 
iw: display DFS regulatory domain

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
11 years agoiw: don't print DFS states of disabled frequencies
Zefir Kurtisi [Tue, 26 Mar 2013 11:09:49 +0000 (12:09 +0100)] 
iw: don't print DFS states of disabled frequencies

Also, fix indentation.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
11 years agoiw: support split wiphy dump
Johannes Berg [Thu, 14 Feb 2013 15:32:53 +0000 (16:32 +0100)] 
iw: support split wiphy dump

This adds support for the new split wiphy dump,
it only uses it for "iw list", not for "info"
though, so far. Using it for "info" would mean
querying the kernel capability first and then
using get/dump (with filter) depending on that.

11 years agoupdate nl80211.h
Johannes Berg [Mon, 25 Mar 2013 15:31:26 +0000 (16:31 +0100)] 
update nl80211.h

11 years agofix TCP wowlan bug
Johannes Berg [Tue, 26 Feb 2013 12:54:32 +0000 (13:54 +0100)] 
fix TCP wowlan bug

11 years agooverride default buffer size
Johannes Berg [Wed, 20 Feb 2013 11:54:44 +0000 (12:54 +0100)] 
override default buffer size

With the TCP WoWLAN, larger messages may be needed.
To simplify the code, always use larger messages.

11 years agoiw: add packet offset information for wowlan pattern
Amitkumar Karwar [Wed, 20 Feb 2013 00:44:44 +0000 (16:44 -0800)] 
iw: add packet offset information for wowlan pattern

Now user can provide packet offset along with the pattern in
"iw wowlan" command. Default offset will be 0 when it is not
provided.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
11 years agosupport TCP wakeup API
Johannes Berg [Tue, 19 Feb 2013 22:31:27 +0000 (23:31 +0100)] 
support TCP wakeup API

Since the configuration is complex, read it from a file.

11 years agoiw: print DFS states for channels if available
Simon Wunderlich [Fri, 8 Feb 2013 17:16:22 +0000 (18:16 +0100)] 
iw: print DFS states for channels if available

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
11 years agoiw: add radar detect widths to phy info
Simon Wunderlich [Fri, 8 Feb 2013 17:16:21 +0000 (18:16 +0100)] 
iw: add radar detect widths to phy info

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
11 years agoupdate nl80211.h
Johannes Berg [Mon, 18 Feb 2013 22:18:22 +0000 (23:18 +0100)] 
update nl80211.h

11 years agoiw: Add VHT info in link query
Yogesh Ashok Powar [Wed, 13 Feb 2013 04:38:33 +0000 (10:08 +0530)] 
iw: Add VHT info in link query

Show VHT mcs, nss and bw, if present, in
iw dev link.

Eg.,
Connected to 10:6f:3f:4d:94:b4 (on mlan0)
        SSID: 122920
        freq: 5180
        RX: 0 bytes (0 packets)
        TX: 88 bytes (1 packets)
        signal: -51 dBm
        tx bitrate: 650.0 MBit/s VHT-MCS 7 80Mhz short GI VHT-NSS 2

        bss flags:
        dtim period:    1
        beacon int:     100

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
[also fix existing Mhz to MHz]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agoiw: Print beacon-loss-event string.
Ben Greear [Thu, 31 Jan 2013 05:31:29 +0000 (21:31 -0800)] 
iw: Print beacon-loss-event string.

There are now three possible threshold events.  The old
code assumed only above/below RSSI, and printed out 'low'
for beacon-loss-event.

Fix that, and do so with a switch statement so the compiler
can warn if the enum is further expanded w/out updating this
code.

Shorten 'connection quality monitor' to CQM to keep total string
relatively short.

Signed-off-by: Ben Greear <greearb@candelatech.com>
11 years agoiw: add support for link-specific mesh power modes
Marco Porsch [Fri, 18 Jan 2013 12:05:32 +0000 (13:05 +0100)] 
iw: add support for link-specific mesh power modes

The different power modes of links towards neighbor STA can be
read using
iw <dev> station get
-or-
iw <dev> station dump

The different power modes shown are:
- mesh local PS mode
- mesh peer PS mode
- mesh non-peer PS mode
where the local PS mode is "our" mode towards the neighbor, the
peer PS mode is the neighbor's mode towards us, and the non-peer
PS mode is the neighbor's non-peer PS mode as indicated in
beacons and management frames.

The local PS mode can be modified for each neighbor using
iw <dev> station set <mac-addr> mesh_power_mode
<active|light|deep>

Signed-off-by: Marco Porsch <marco@cozybit.com>
Signed-off-by: Ivan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
11 years agoiw: add default mesh Power Mode and Awake Window to mesh config
Marco Porsch [Fri, 18 Jan 2013 12:05:31 +0000 (13:05 +0100)] 
iw: add default mesh Power Mode and Awake Window to mesh config

The default mesh power mode is the power mode that will be
assigned to newly established peer links.
The awake window is the duration the local STA will stay awake
after sending its own beacon in PS mode.
Both values can be modified as part of the mesh params.

Signed-off-by: Marco Porsch <marco@cozybit.com>
Signed-off-by: Ivan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
11 years agoiw: add beacon interval and DTIM period parameters to mesh join
Marco Porsch [Fri, 18 Jan 2013 12:05:30 +0000 (13:05 +0100)] 
iw: add beacon interval and DTIM period parameters to mesh join

Set the beacon interval and DTIM period with the mesh join
command:
iw <dev> mesh join <meshid> beacon-interval <time in TUs>
dtim-period <value>

Signed-off-by: Marco Porsch <marco@cozybit.com>
11 years agoupdate nl80211.h
Johannes Berg [Tue, 29 Jan 2013 11:54:23 +0000 (12:54 +0100)] 
update nl80211.h

11 years agoadd "auth" command
Johannes Berg [Fri, 25 Jan 2013 13:54:58 +0000 (14:54 +0100)] 
add "auth" command

This isn't helpful for real usage, but can be useful
for debugging authentication issues.

11 years agofix PMKSA event
Johannes Berg [Tue, 22 Jan 2013 12:06:18 +0000 (13:06 +0100)] 
fix PMKSA event

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agoiw: print capability info for DMG (60GHz band)
Vladimir Kondratiev [Mon, 17 Dec 2012 11:31:36 +0000 (13:31 +0200)] 
iw: print capability info for DMG (60GHz band)

On the DMG (Directed Multi-Gigabit) aka 60GHz band, capability info
defined by the 802.11ad spec differently from non-DMG one

Detect DMG band by frequency, spec says DMG if above 45 GHz;
parse and print accordingly

For the non-DMG capability info, add more bits as defined in the
IEEE802.11-2012

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agoupdate version to 3.8 v3.8
Johannes Berg [Fri, 21 Dec 2012 09:24:20 +0000 (10:24 +0100)] 
update version to 3.8

The merge window is going to close soon so
release version 3.8 with nl80211.h from that
tree.

11 years agoupdate nl80211.h
Johannes Berg [Fri, 21 Dec 2012 09:24:03 +0000 (10:24 +0100)] 
update nl80211.h

11 years agoupdate for VHT channel config
Johannes Berg [Tue, 20 Nov 2012 15:52:12 +0000 (16:52 +0100)] 
update for VHT channel config

11 years agoupdate nl80211.h
Johannes Berg [Wed, 28 Nov 2012 22:02:03 +0000 (23:02 +0100)] 
update nl80211.h

11 years agoparse a few more IEs
Johannes Berg [Wed, 21 Nov 2012 14:18:19 +0000 (15:18 +0100)] 
parse a few more IEs

11 years agoprint VHT operation IE
Johannes Berg [Tue, 20 Nov 2012 16:26:14 +0000 (17:26 +0100)] 
print VHT operation IE

11 years agoallow multiple command variants
Johannes Berg [Tue, 20 Nov 2012 12:47:49 +0000 (13:47 +0100)] 
allow multiple command variants

11 years agoiw: add set_mcast_rate command support
Antonio Quartulli [Wed, 7 Nov 2012 09:58:03 +0000 (10:58 +0100)] 
iw: add set_mcast_rate command support

This patch adds the support to run the set_mcast_rate() command on
adhoc and mesh_point vifs. With this command it is possible to tune
the bitrate to use when sending group frames. This command can be used
even if the vifs has already joint the ibss/mesh network.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
11 years agoupdate nl80211.h
Johannes Berg [Mon, 19 Nov 2012 14:41:07 +0000 (15:41 +0100)] 
update nl80211.h

11 years agoadd a helper command to print command IDs
Johannes Berg [Thu, 15 Nov 2012 14:15:10 +0000 (15:15 +0100)] 
add a helper command to print command IDs

sometimes knowing the command ID for a given
nl80211 command or knowing the command for a
given number is needed, add a helper for that

11 years agoClarify that unit is ms for ROC command
Pontus Fuchs [Tue, 13 Nov 2012 11:09:22 +0000 (12:09 +0100)] 
Clarify that unit is ms for ROC command

Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
11 years agoprint VHT capabilities
Johannes Berg [Mon, 12 Nov 2012 12:07:18 +0000 (13:07 +0100)] 
print VHT capabilities

11 years agoiw: print the ssid when requesting device info
Antonio Quartulli [Fri, 9 Nov 2012 18:46:53 +0000 (19:46 +0100)] 
iw: print the ssid when requesting device info

The GET_INTERFACE command receives also the ssid as part of the reply.
This patch makes iw print the ssid together with the other information
when issuing the "iw dev $vif info" command.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
11 years agoparse more extended capabilities
Johannes Berg [Fri, 9 Nov 2012 16:07:36 +0000 (17:07 +0100)] 
parse more extended capabilities

update the list to 802.11-2012, except for the
service interval granularity

11 years agoadd P2P Device handling primitives
Johannes Berg [Tue, 6 Nov 2012 10:31:55 +0000 (11:31 +0100)] 
add P2P Device handling primitives

For testing, it can be useful to be able to use the
P2P Device manually, add the ability to do that.

11 years agoupdate command list
Johannes Berg [Tue, 6 Nov 2012 10:31:00 +0000 (11:31 +0100)] 
update command list