]> git.ipfire.org Git - thirdparty/iw.git/log
thirdparty/iw.git
8 years agoiw: don't use NULL pointer in nla_nest_end()
Amit Khatri [Thu, 26 Nov 2015 09:10:19 +0000 (14:40 +0530)] 
iw: don't use NULL pointer in nla_nest_end()

Fix a crash if nla_nest_start() fails here.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: Fix memory leak if nla_put fails
Ola Olsson [Fri, 23 Oct 2015 22:33:12 +0000 (00:33 +0200)] 
iw: Fix memory leak if nla_put fails

The NLA_PUT macro will automatically goto nla_put_failure if
the underlying nla_put fails. This will in turn leak our malloced
memory in both the scan and wowlan commands.
Fix that by not using the macro in the cases where we have
allocated heap mem.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agomesh: show mesh parameters when no args are given
Ola Olsson [Wed, 21 Oct 2015 12:13:19 +0000 (14:13 +0200)] 
mesh: show mesh parameters when no args are given

The help text in "<get|set> mesh_param" says that
available parameters will be shown if no args are given
but that is not the case - fix that.

Also, add help text if a parameter is given but not found.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: remove superfluous includes
Ola Olsson [Wed, 21 Oct 2015 12:04:37 +0000 (14:04 +0200)] 
iw: remove superfluous includes

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: Fix segfault when no args are given to offchannel
Ola Olsson [Wed, 21 Oct 2015 12:02:24 +0000 (14:02 +0200)] 
iw: Fix segfault when no args are given to offchannel

The offchannel command assumes that frequency and duration
are given as arguments, otherwise iw segfaults - fix that
by printing help text instead.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
[remove braces]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: add and fix -Wsign-compare
Johannes Berg [Wed, 14 Oct 2015 06:49:14 +0000 (08:49 +0200)] 
iw: add and fix -Wsign-compare

Ola Olsson pointed out that -Wsign-compare was getting a lot
of warnings, those seem reasonable to fix.

Reported-by: Ola Olsson <ola1olsson@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: fix help text for event command
Ola Olsson [Mon, 12 Oct 2015 20:37:08 +0000 (22:37 +0200)] 
iw: fix help text for event command

According to the source, the -t and -r options are
mutually exclusive. Fix the help text accordingly.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: add helpful hints for vendor cmd
Ola Olsson [Mon, 12 Oct 2015 20:32:10 +0000 (22:32 +0200)] 
iw: add helpful hints for vendor cmd

Without having access to the source, it was
hard to know the format of vendor oui and sub
cmd. This commit fixes that by returning the
right error code to print the help text.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoocb: use correct "MHz" instead of "MHZ"
Ola Olsson [Mon, 12 Oct 2015 07:35:56 +0000 (09:35 +0200)] 
ocb: use correct "MHz" instead of "MHZ"

Fixes the last typos of MHZ to MHz

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: Fix return values when parameters are wrong
Ola Olsson [Mon, 12 Oct 2015 07:34:54 +0000 (09:34 +0200)] 
iw: Fix return values when parameters are wrong

According to header file, wrong parameters
yield 1 as return value.
Also tried to fix the comments since one part
of it was unreadable.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: Fix memory leak in error path
Ola Olsson [Fri, 9 Oct 2015 14:52:42 +0000 (16:52 +0200)] 
iw: Fix memory leak in error path

The leak is present if malloc fails after requesting
a scan with ies or meshid as input.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: remove superfluous includes
Ola Olsson [Sun, 4 Oct 2015 21:08:39 +0000 (23:08 +0200)] 
iw: remove superfluous includes

if.h only contains if_nametoindex and the reverse.
Lets remove the inclusion in the source files where
these functions are not called.

Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoibss: use correct "MHz" instead of "MHZ"
Johannes Berg [Fri, 18 Sep 2015 09:11:38 +0000 (11:11 +0200)] 
ibss: use correct "MHz" instead of "MHZ"

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoibss: add VHT80 support for IBSS
Janusz.Dziedzic@tieto.com [Thu, 10 Sep 2015 10:04:13 +0000 (12:04 +0200)] 
ibss: add VHT80 support for IBSS

Add VHT80 support for IBSS.

eg. iw wlan0 ibss join 5180 80MHZ
    iw wlan0 ibbs join 5220 80MHZ

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
[fix formatting]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoscan: Add FTM info to scan results
Assaf Krauss [Thu, 10 Sep 2015 12:53:03 +0000 (15:53 +0300)] 
scan: Add FTM info to scan results

In each scan result, check station capabilities and report whether it
is capable of acting as an FTM initiator, and whether it is capable
if acting as an FTM responder.

Signed-off-by: Assaf Krauss <assaf.krauss@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: display interface TX power if available
Rafał Miłecki [Tue, 1 Sep 2015 07:55:52 +0000 (09:55 +0200)] 
iw: display interface TX power if available

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
[print dBm]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agobump version to 4.3 v4.3
Johannes Berg [Fri, 18 Sep 2015 08:54:53 +0000 (10:54 +0200)] 
bump version to 4.3

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: fix off-by-one
Johannes Berg [Fri, 18 Sep 2015 08:54:17 +0000 (10:54 +0200)] 
iw: fix off-by-one

An off-by-one prevented printing the very last command, fix it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoadd a few new commands/events
Johannes Berg [Fri, 18 Sep 2015 08:52:26 +0000 (10:52 +0200)] 
add a few new commands/events

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoprint IR-concurrent instead of GO-concurrent
Johannes Berg [Fri, 18 Sep 2015 08:50:50 +0000 (10:50 +0200)] 
print IR-concurrent instead of GO-concurrent

Since this flag is now also used for other IR indications,
e.g. TDLS.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoupdate nl80211.h to kernel 4.3
Johannes Berg [Fri, 18 Sep 2015 08:50:29 +0000 (10:50 +0200)] 
update nl80211.h to kernel 4.3

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: don't mix declaration into code
Johannes Berg [Fri, 18 Sep 2015 08:47:42 +0000 (10:47 +0200)] 
iw: don't mix declaration into code

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: make netns_get_fd static
Johannes Berg [Fri, 18 Sep 2015 08:46:57 +0000 (10:46 +0200)] 
iw: make netns_get_fd static

This can be static since it's only used right there.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: fix s_cb leak
Johannes Berg [Fri, 18 Sep 2015 08:44:44 +0000 (10:44 +0200)] 
iw: fix s_cb leak

Reported-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: avoid passing NULL to nla_data()
Amit Khatri [Thu, 13 Aug 2015 10:26:59 +0000 (10:26 +0000)] 
iw: avoid passing NULL to nla_data()

The attr pointer is checked for NULL but the function
doesn't handle it appropriately - fix that.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: cqm: check nlmsg_alloc() return
Amit Khatri [Thu, 13 Aug 2015 10:20:48 +0000 (10:20 +0000)] 
iw: cqm: check nlmsg_alloc() return

If nlmsg_alloc() fails, don't crash but return an error.

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: remove android-nl.c with unneeded workaround
Filipe Brandenburger [Thu, 30 Jul 2015 21:35:15 +0000 (14:35 -0700)] 
iw: remove android-nl.c with unneeded workaround

The workaround might have been necessary in the past, however now it
produces the following error:

  .../libnl.a(attr.o): multiple definition of 'nla_put_flag'
  .../android-nl.o: previous definition here
  collect2: error: ld returned 1 exit status

TEST=Built AOSP tree with this patchset, tested the generated iw binary.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: fix references to libnl in Android.mk
Filipe Brandenburger [Thu, 30 Jul 2015 21:47:08 +0000 (14:47 -0700)] 
iw: fix references to libnl in Android.mk

The latest AOSP refers to that library as libnl and not libnl_2.

TEST=Built AOSP tree with this patchset, tested the generated iw binary.

Signed-off-by: Filipe Brandenburger <filbranden@google.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: free memory on scan parse errors
Amit Khatri [Fri, 26 Jun 2015 09:02:36 +0000 (09:02 +0000)] 
iw: free memory on scan parse errors

Signed-off-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Rahul Jain <rahul.jain@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: remove cb from arguments and simplify valid handler
Johannes Berg [Fri, 26 Jun 2015 09:42:28 +0000 (11:42 +0200)] 
iw: remove cb from arguments and simplify valid handler

Just provide our own valid handler and let the command
functions assign it without going through the cb.

(With the event handling fixed by Eliad Peller)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: add connected time to station info
Arik Nemtsov [Wed, 3 Jun 2015 08:32:23 +0000 (11:32 +0300)] 
iw: add connected time to station info

Useful for long testing scenarios

Signed-off-by: Arik Nemtsov <arik@wizery.com>
--
As a side note, I had to change version.sh to make this compile in the
intel git. The "4.1" tag is missing here, so this line fails in
version.sh:

[ "${descr%%-*}" = "v$VERSION" ] || exit 2

8 years agoiw: print beacon-loss and wiphy delete events
Ben Greear [Thu, 11 Jun 2015 19:54:11 +0000 (15:54 -0400)] 
iw: print beacon-loss and wiphy delete events

This is nicer than messages about unknown events.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: only use tags matching "v*"
Johannes Berg [Mon, 8 Jun 2015 08:51:10 +0000 (10:51 +0200)] 
iw: only use tags matching "v*"

Some people/build systems may add additional tags, so use only
tags matching "v*" for the version creation.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agobump version to 4.1 v4.1
Johannes Berg [Tue, 5 May 2015 12:15:14 +0000 (14:15 +0200)] 
bump version to 4.1

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: handle NL80211_ATTR_EXT_FEATURES attribute
Janusz.Dziedzic@tieto.com [Mon, 30 Mar 2015 10:56:31 +0000 (12:56 +0200)] 
iw: handle NL80211_ATTR_EXT_FEATURES attribute

Print if VHT-IBSS is supported.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoupdate nl80211.h
Johannes Berg [Tue, 5 May 2015 12:14:11 +0000 (14:14 +0200)] 
update nl80211.h

(To 4.1-rc2)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
8 years agoiw: trivial spelling fix (initial)
Stefan Lippers-Hollmann [Tue, 28 Apr 2015 02:45:09 +0000 (04:45 +0200)] 
iw: trivial spelling fix (initial)

Introduced in 29af20194aedd2f1c26205bb70a395d394845708, "iw: add a
delay option to net-detect".

Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: Print OSEN element for HotSpot 2.0 IE.
Ben Greear [Tue, 17 Mar 2015 22:02:33 +0000 (15:02 -0700)] 
iw: Print OSEN element for HotSpot 2.0 IE.

Re-uses most of the print-rsn logic since only the header
differs.

Example output:
...
HotSpot 2.0 OSEN:
 * Group cipher: NO-GROUP
 * Pairwise ciphers: CCMP
 * Authentication suites: OSEN
 * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: add randomise option for sched_scan
Luciano Coelho [Tue, 17 Mar 2015 14:11:50 +0000 (16:11 +0200)] 
iw: add randomise option for sched_scan

Like with normal scans, we can randomise the MAC address sent out in
active scheduled scans.  Add the randomise option to sched_scan (and
net-detect) parsing code.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: add support for active scheduled scan
Luciano Coelho [Tue, 17 Mar 2015 14:11:49 +0000 (16:11 +0200)] 
iw: add support for active scheduled scan

Add options to explicitly use active or passive scans on schedule
scans (and net-detect).  If neither active nor passive parameters are
passed, the default is to do active scans with the wildcard SSID.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: implement scheduled scan
Luciano Coelho [Tue, 17 Mar 2015 14:11:48 +0000 (16:11 +0200)] 
iw: implement scheduled scan

Add sched_start, sched_stop and events parsing for scheduled scan.
For now, only passive scans are supported.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: move generic sched scan parsing code out of net detect
Luciano Coelho [Tue, 17 Mar 2015 14:11:47 +0000 (16:11 +0200)] 
iw: move generic sched scan parsing code out of net detect

The scheduled scan structure is pretty much the same as the net-detect
WoWLAN trigger's.  Move the bulk of the command line parsing code to
a generic function so we can reuse it for sched_scan.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoversion 4.0 v4.0
Johannes Berg [Tue, 17 Mar 2015 13:18:24 +0000 (14:18 +0100)] 
version 4.0

9 years agoiw: add a delay option to net-detect
Luciano Coelho [Fri, 13 Mar 2015 12:17:07 +0000 (14:17 +0200)] 
iw: add a delay option to net-detect

Add an option that allows the initial net-detect scan to be delayed by
the specified number of seconds.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
[add missing closing brace]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agophy: Allow set netns by fd
Vadim Kochan [Sat, 14 Feb 2015 07:33:12 +0000 (09:33 +0200)] 
phy: Allow set netns by fd

Added possibility to change network namespace
for phy device by network namespace name from
/var/run/netns or by absolute file path:

iw phy XXX set netns name <nsname>

iw tries to open fd of given nsname from /var/run/netns
or by absoute path if nsname contains "/".

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Tue, 3 Mar 2015 08:47:36 +0000 (09:47 +0100)] 
update nl80211.h

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: print human readable radar events
Helmut Schaa [Fri, 30 Jan 2015 09:42:44 +0000 (10:42 +0100)] 
iw: print human readable radar events

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoRead number of supported net-detect matches
Luciano Coelho [Tue, 13 Jan 2015 14:19:15 +0000 (16:19 +0200)] 
Read number of supported net-detect matches

Instead of just printing whether netdetect is supported, parse the
attribute and report the maximum number of matchsets the driver
supports.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: Add OCB mode handling
Rostislav Lisovy [Mon, 12 Jan 2015 12:49:57 +0000 (13:49 +0100)] 
iw: Add OCB mode handling

Since the commit 6e0bd6c35b021dc73a81ebd1ef79761233c48b50
("cfg80211: 802.11p OCB mode handling") and
239281f803e2efdb77d906ef296086b6917e5d71
("mac80211: 802.11p OCB mode support")
does the Linux kernel support OCB mode. This commit adds
proper OCB mode handling.

Modify the command for device type setting to support OCB mode.
Add commands for "joining" and "leaving" the OCB mode network.
When joining two arguments are mandatory -- frequency and
channel bandwidth (5 or 10 MHz).

Signed-off-by: Rostislav Lisovy <rostislav.lisovy@fel.cvut.cz>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: fix android build
Arik Nemtsov [Tue, 6 Jan 2015 10:48:45 +0000 (12:48 +0200)] 
iw: fix android build

Don't define "iw" build target in the regular Makefile which gets
included. This confuses the Android build system (coincides with module
name).

Also correct libnl_2 to a be static library, as compiled on Android.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: support multiple regdom print
Arik Nemtsov [Mon, 15 Dec 2014 16:44:23 +0000 (18:44 +0200)] 
iw: support multiple regdom print

When a phy is given, print only its regdomain. Otherwise, use the newly
implement dump functionality to print all regdomains in the system.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Wed, 17 Dec 2014 14:16:26 +0000 (15:16 +0100)] 
update nl80211.h

9 years agoiw: fix attr max for reg_rule
Arik Nemtsov [Mon, 1 Dec 2014 15:53:43 +0000 (17:53 +0200)] 
iw: fix attr max for reg_rule

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: print new RRF_ regulatory flags
Arik Nemtsov [Mon, 1 Dec 2014 15:53:42 +0000 (17:53 +0200)] 
iw: print new RRF_ regulatory flags

These were added to cfg80211 recently

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: print phy TDLS ch-switch support
Arik Nemtsov [Mon, 1 Dec 2014 16:00:22 +0000 (18:00 +0200)] 
iw: print phy TDLS ch-switch support

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoparse net detect wowlan configuration information
Luciano Coelho [Fri, 28 Nov 2014 21:05:56 +0000 (23:05 +0200)] 
parse net detect wowlan configuration information

Parse the net detect information when it is reported.  This includes
the scan interval, SSIDs to match and frequencies to scan.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoadd WoWLAN net-detect trigger
Luciano Coelho [Fri, 28 Nov 2014 21:05:55 +0000 (23:05 +0200)] 
add WoWLAN net-detect trigger

Adds a netdetect option to the wowlan triggers that allows the user to
request network detection to be started when the device goes to
suspend mode.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agosupport random scan request
Johannes Berg [Wed, 19 Nov 2014 12:44:43 +0000 (13:44 +0100)] 
support random scan request

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Fri, 12 Dec 2014 12:52:06 +0000 (13:52 +0100)] 
update nl80211.h

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: Fix calculation of maximum supported 802.11n data rate
Henning Rogge [Wed, 10 Dec 2014 09:23:20 +0000 (10:23 +0100)] 
iw: Fix calculation of maximum supported 802.11n data rate

Fix typo in calculation, binary AND combination of low byte
and high byte is always zero.

Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h and command IDs
Johannes Berg [Thu, 13 Nov 2014 12:59:57 +0000 (13:59 +0100)] 
update nl80211.h and command IDs

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoadd WMM tspec capability
Johannes Berg [Wed, 29 Oct 2014 16:10:39 +0000 (17:10 +0100)] 
add WMM tspec capability

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: support setting vif MAC during creation
Ben Greear [Fri, 24 Oct 2014 15:35:42 +0000 (08:35 -0700)] 
iw: support setting vif MAC during creation

This saves an extra call to change it later, and will
also keep udev from potentially messing with a vif
it should not be messing with.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Wed, 29 Oct 2014 16:10:13 +0000 (17:10 +0100)] 
update nl80211.h

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoadd vendor command to Makefile
Johannes Berg [Wed, 29 Oct 2014 16:08:35 +0000 (17:08 +0100)] 
add vendor command to Makefile

Apparently I forgot this when applying the previous commit.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoiw: add vendor send command
Janusz Dziedzic [Mon, 15 Sep 2014 10:47:58 +0000 (12:47 +0200)] 
iw: add vendor send command

This allow to send vendor data to the driver.
This command required OUI and SUBCMD parameters.

Also optional DATA parameter could be used:

cat data.bin | iw wlan0 send oui subcmd -
iw wlan0 send oui subcmd file.bin
iw wlan0 vendor send oui subcmd 0x00 0x00 0x00 0x1f
echo EOF | iw wlan0 vendor send oui subcmd -

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoAdd mpp get/dump commands
Henning Rogge [Fri, 12 Sep 2014 06:59:43 +0000 (08:59 +0200)] 
Add mpp get/dump commands

Add the "mpp get" and "mpp dump" command to query to mac80211s mesh
proxy path table through nl80211.

Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
9 years agoupdate nl80211.h
Johannes Berg [Thu, 9 Oct 2014 14:34:46 +0000 (16:34 +0200)] 
update nl80211.h

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
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 ).