Age | Commit message (Collapse) | Author | Files | Lines |
|
this is a bit dumb for now - need to execve() it from another
program and pass a valid fd across, which isn't easy ...
|
|
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Previously, bitrate showed uninitialized buffer when no rate info found.
This patch fixes the issue.
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Instead of just plain assuming the next two integer arguments
are, if present, center frequencies, teach the code how many
are expected and check that they're actually present.
This makes it slightly better to use the parser before an int
argument, although it's still ambiguous due to the width.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This may be needed separately later, split it out now.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Add a new set of commands to send a CSA. Both the number of beacons and the
flag to block TX can be given optionally.
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Allow the user to start a CAC for clearing DFS channels.
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Simplify code by using the helper which has been introduced earlier.
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Simplify code by using the helper which has been introduced earlier.
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Simplify code by using the helper which has been introduced earlier.
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The ability to parse channel definitions is required in a lot of places
inside iw. However, right now each of these duplicates a lot of code to
handle it.
So add a new helper which can be used everywhere.
Signed-off-by: Benjamin Berg <benjamin.berg@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Add support for MU-MIMO air sniffer by extending the
"set monitor" command, adding two options:
mumimo-groupid: for MU-MIMO-monitoring according a given MU-MIMO
groupID
mumimo-follow-mac: for MU-MIMO-monitoring a station according
to its MAC address
Signed-off-by: Aviya Erenfeld <aviya.erenfeld@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
It doesn't appear to be necessary and is causing warnings about
struct addrinfo.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
iw was showing 'width: unknown' for channels on OCB interfaces; teach
it the values for 5/10 MHz so it will show the configured width.
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Mantas Mikulėnas <grawity@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Channels (frequencies) are getting more details that users may want to
know about. E.g. it's important to know which frequencies allow using
40/80/160 MHz channels to setup AP properly.
We list channels in "info" command output but it's already quite big and
it was agreed to introduce new command rather than expand the old one.
This patch adds "channels" command printing what was already available
in the "info" plus details about supported channel widths. It also
removes DFS info from the "info" output.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Clearly I missed a number of kernel versions, but this
is pretty much up-to-date with 4.7.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
update to get the version information from the
git repository where this file is located instead of the
the current directory where it is executed, otherwise if
there is .git directory in the current directory, it will
get the wrong version information.
And improved the version check since the tag information
may not be mirrored like what AOSP does now.
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Aurimas Liutikas <aurimas@google.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Introduced two new commands for reading vendor command responses:
recv and recvbin
Both will send a vendor command (typically some kind of GET request)
in the same way as the current send command and print the received
response in ASCII or binary.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Add support for new netlink attribute 'NL80211_STA_INFO_RX_DURATION'.
'NL80211_STA_INFO_RX_DURATION' accounts for aggregate PPDU duration
in microseconds for all the frames from a peer. Drivers can fill
'rx_duration' field and set the flag 'NL80211_STA_INFO_RX_DURATION'.
'rx_duration' will give an idea about the total time spent by our peer
with each of its connected peers.
This will get dumped as part of 'iw dev wlan#N station dump'
Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qti.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Move nl_socket_set_buffer_size() to be called after genl_connect(),
otherwise nl_socket_set_buffer_size() always returns an NLE_BAD_SOCK
error because sk->s_fd is equal to -1 at that stage.
Signed-off-by: Gil Treibush <gil.tribush@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Scheduled scan now supports configuring multiple 'scan plans'.
Each scan plan specifies the interval between scans and the number
of iterations to scan. So add an option to configure scan plans
for scheduled scan
At least one scan plan must be configured. Note that all scan plans
but the last one must specify the scan interval and the number of
iterations. The last scan plan must specify only the interval and
will be run infinitely.
The option to set only an interval is kept for backwards
compatibility. However, the new scan plans option and the old interval
optoin are mutually exclusive.
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
add prints of statistics, flags and data to iw dump command.
the prints added are:
TID statistics
bss parameters
beacon rx
beacon loss
rx drop misc
beacon signal avg
associated flag
the TID statistics is a big table and therefore only printed
when adding -v parameter to the dump command.
in addition change rx bytes and tx bytes to u64 instead of u32
Signed-off-by: Aviya Erenfeld <aviya.erenfeld@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This value is used to mean "print out usage info", so make
a define for it. Still not used, but new code can and should
use it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Axel reports that running "iw reg get" results in the (global)
output being printed twice. The reason for this is that we try
to use the dump facility, and if that succeeds we also do the
get command.
To prevent this, allow handlers to return HANDLER_RET_DONE, in
which case the command will be treated as successful but will
not actually execute another netlink command.
Reported-by: Axel Köllhofer <AxelKoellhofer@web.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The struct chanmode and the function get_cf1 is already used by ibss and
mesh. Also use it for ocb to make it consistent for for all join functions.
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
iw mesh supports non-HT and HT channel widths like HT20 or NOHT. But the
Linux 802.11s implementation also supports VHT80 which can be specified
during the mesh join.
iw dev mesh0 mesh join "meshnet" freq 5180 80MHz
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The chanmode structure and the function get_cf1 to calculate the center
frequency one can be used by not only the ibss join code but also by the
mesh and ocb join code.
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
[print dBm]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
An off-by-one prevented printing the very last command, fix it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Since this flag is now also used for other IR indications,
e.g. TDLS.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This can be static since it's only used right there.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Reported-by: Amit Khatri <amit.khatri@samsung.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Print if VHT-IBSS is supported.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
(To 4.1-rc2)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
These were added to cfg80211 recently
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Apparently I forgot this when applying the previous commit.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This means I forgot and am skipping 3.16, too bad.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Close f, when returning before while loop.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
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>
|
|
Show the retry limit in phy details and also configure the
retry limit.
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
|
|
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
|
|
|
|
Add possiblity to force SGI/LGI.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
|
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
Seems like I skipped version 3.12, and we already have
a bit more than kernel 3.13 will have, but hey.
|
|
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>
|
|
|
|
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>
|
|
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 ).
|
|
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>
|
|
Example:
HotSpot 2.0 Indication:
DGAF: 0
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
Example output:
802.11u Roaming Consortium:
ANQP OIs: 0
OI 1: 01010101
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
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>
|
|
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>
|
|
We already have more features supported than will be in 3.11
(notably the coalescing support) but that doesn't really matter.
|
|
|
|
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>
|
|
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>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
|
|
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>
|
|
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.
|
|
|
|
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.
|
|
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>
|
|
Unfortunately Android's libnl doesn't have nla_put_flag()
so add a simple source file to declare that for now.
|
|
To build iw without pkg-config, you can now do something
like
$ make NO_PKG_CONFIG=1 LDFLAGS=-lnl
|
|
This is no longer used to configure the tool.
|
|
Change the makefile a bit to add the optional
things in a cleaner way.
|
|
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>
|
|
|
|
|
|
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.
|
|
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
|
|
Also, fix indentation.
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
|
|
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.
|
|
|
|
|
|
With the TCP WoWLAN, larger messages may be needed.
To simplify the code, always use larger messages.
|
|
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>
|
|
Since the configuration is complex, read it from a file.
|
|
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
|
|
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
|
|
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
This isn't helpful for real usage, but can be useful
for debugging authentication issues.
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
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>
|
|
The merge window is going to close soon so
release version 3.8 with nl80211.h from that
tree.
|
|
|
|
|
|
|
|
|