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.
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.
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.
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>
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.
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.
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>
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.
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>
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>
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>
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>
This patch introduces the "ap-force" argument to the scan command.
This argument instructs mac80211 to trigger the scan even if the
interface is configured as AP and has already started beaconing (the
driver may not support such operation)
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Sam Leffler [Wed, 17 Oct 2012 19:20:04 +0000 (12:20 -0700)]
iw: add lowpri and flush scan operands
Add lowpri (low priority) and flush operands to the scan cmd to
request the equivalent flags be set in the scan request. Note
these are applied regardless of the feature flags to support
testing drivers that do not implement them.
iw: allow setting mesh proactive tree building mode related parameters
This patch allows the setting of following mesh parameters:
mesh_hwmp_active_path_to_root_timeout
mesh_hwmp_root_interval
mesh_hwmp_confirmation_interval
Also ensure the TU is printed for mesh_hwmp_rann_interval.
Johannes Berg [Fri, 6 Jul 2012 06:50:00 +0000 (08:50 +0200)]
add (optional) hwsim code
As an example, the hwsim code was useful, but for normal
distros it's not. Allow developers to build hwsim code
into the iw binary with "make HWSIM=y".
iw: fix the Makefile for multiple libnl installations
All different versions of libnl can cohexist on a system
(libnl-1, libnl-2, libnl-3.0, libnl-3.1 and libnl-3.2).
When multiple versions are installed only link against
the highest versioned one, otherwise there might be
unpredictable results (including segmentation faults):
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bd7f7d in genl_unregister () from /usr/lib64/libnl-genl.so.3
(gdb) where
This patch fixes the Makefile to link against only one
of the libraries, the highest version found.