]>
git.ipfire.org Git - thirdparty/iw.git/log
Yoni Divinsky [Wed, 16 Nov 2011 12:55:11 +0000 (14:55 +0200)]
iw: fix wifi wmm ie print function
When printing the acm bit of the wifi wmm ie, the incorrect bit
was being printed.
Signed-off-by: Yoni Divinsky <yoni.divinsky@ti.com>
Bjarke Istrup Pedersen [Mon, 14 Nov 2011 10:12:19 +0000 (11:12 +0100)]
always use libnl 3.2 as 3.2, not 3.0
With libnl 3.2, both LIBNL3FOUND and LIBNL3xFOUND
might become true, leading to errors. Disable the
former if the latter is found.
Gilles Espinasse [Fri, 11 Nov 2011 23:04:38 +0000 (00:04 +0100)]
fix compilation against libnl-3.x
Add configuration to compile against 3.1 and 3.2 without breaking 3.0
That's a bit of mess with version on .pc file and the part which belong or not to the shared lib name.
libnl-genl-3.1 is broken and can't be used
Starting from 3.2.0, I could have used libnl-genl-3.0.pc file like in patch V1 and not hardcode adding libnl-genl-3 into LIBS
I consider this a matter of tast for now, coded like previous versions that can't use that way to code.
Added an echo to display against which libnl version iw is compiled.
That particulary help me to test with various versions because of the mess on .pc file version as libnl>=3.2.0 has again pc file version with 3.0 number.
Removed the version_check part instead of extending blindly for the new versions.
That was mostly dead code because prior check on NLLIBNAME not empty already care.
The only case where that could matter would be using something stupid like
NLLIBNAME=foo make
Compilation tested to work against
- libnl-2.0
- libnl-3.0
- libnl-3.1
- libnl-3.2.0
- libnl-3.2.2
Tested to fail without a libnl .pc file
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Johannes Berg [Fri, 11 Nov 2011 08:17:13 +0000 (09:17 +0100)]
Revert "Fix linking with libnl-3"
This reverts commit
15bc193a926ec67e25de175f7dfe45df8cbd3e9a .
This commit broke compiling against libnl 3.0 which
numerous distributions ship.
Johannes Berg [Thu, 10 Nov 2011 14:25:53 +0000 (15:25 +0100)]
use genl_ctrl_resolve()
This simplifies the code quite a bit since
we don't need an nl_cache or nl_family.
Gilles Espinasse [Tue, 8 Nov 2011 08:09:43 +0000 (09:09 +0100)]
Fix linking with libnl-3
iw3.2 fail to link libnl-3.2.2 with this error
/usr/bin/ld: cannot find -lnl-genl
Contrary to previous libnl version, on v3 there is a dedicated libnl-genl-3.0.pc file
Simply use that.
Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Felix Fietkau [Mon, 7 Nov 2011 17:49:51 +0000 (18:49 +0100)]
iw: fix regression in tx power validation
Only bail out if the last character is *not* \0
Johannes Berg [Fri, 4 Nov 2011 10:48:12 +0000 (11:48 +0100)]
update version to 3.2
With the merge window closing, and net having been
merged, no more changes are expected in kernel 3.2
that add API, so we can release iw 3.2.
Johannes Berg [Fri, 4 Nov 2011 10:53:18 +0000 (11:53 +0100)]
print out AP-side uAPSD support
Johannes Berg [Fri, 4 Nov 2011 10:51:05 +0000 (11:51 +0100)]
print PMKSA candidate event
For now without the data in it.
Helmut Schaa [Tue, 18 Oct 2011 09:18:27 +0000 (11:18 +0200)]
iw: show STA flags in station dump
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Johannes Berg [Thu, 27 Oct 2011 19:37:35 +0000 (21:37 +0200)]
update nl80211.h
Johannes Berg [Fri, 21 Oct 2011 12:36:20 +0000 (14:36 +0200)]
print wiphy idx in iface info
Johannes Berg [Sun, 16 Oct 2011 15:04:37 +0000 (17:04 +0200)]
SSID printing: escape space at beginning end, backslash
To make SSID printing point out spaces at the beginning
and end explicitly escape them with \x20. Also escape
the backslash itself so that it's unambiguous.
Johannes Berg [Thu, 13 Oct 2011 17:50:38 +0000 (19:50 +0200)]
print PHY membership selector only for membership rates
802.11 states
... each BSS membership selector contained in the
BSSMembershipSelectorSet parameter is encoded as an octet with
the MSB (bit 7) set to 1, and bits 6 through 0 are set to the
encoded value for the selector as found in Table 7-26a (e.g.: an
HT PHY BSS membership selector ...)"
Christian Lamparter [Tue, 11 Oct 2011 11:15:25 +0000 (13:15 +0200)]
iw: fix HT PHY BSS Membership selector value encoding
IEEE 802.11n 7.3.2.2 extended the supported rate IE to
support a special encoding for HT rate support.
iw needs to be updated in order to recognize
the magic value and parse it accordingly.
e.g.:
> Extended supported rates: 63.5*
now becomes:
> Extended supported rates: HT*
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Johannes Berg [Wed, 5 Oct 2011 15:38:39 +0000 (17:38 +0200)]
show supported ciphers
Johannes Berg [Tue, 4 Oct 2011 12:00:47 +0000 (14:00 +0200)]
print roam capability
Johannes Berg [Tue, 4 Oct 2011 11:59:42 +0000 (13:59 +0200)]
update nl80211.h
Yegor Yefremov [Thu, 21 Jul 2011 15:06:17 +0000 (15:06 +0000)]
iw: add libnl-3.0 support
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Javier Cardona [Wed, 10 Aug 2011 00:03:30 +0000 (17:03 -0700)]
support for setting RANN interval and mesh gate
Johannes Berg [Sat, 3 Sep 2011 07:14:07 +0000 (09:14 +0200)]
update nl80211.h
Johannes Berg [Wed, 20 Jul 2011 11:32:49 +0000 (13:32 +0200)]
fix bug in version.sh
Johannes Berg [Fri, 15 Jul 2011 21:13:59 +0000 (23:13 +0200)]
add remain-on-channel
Johannes Berg [Tue, 12 Jul 2011 11:08:37 +0000 (13:08 +0200)]
new wowlan triggers/info
Johannes Berg [Tue, 12 Jul 2011 11:03:23 +0000 (13:03 +0200)]
add set_rekey_offload cmd
Johannes Berg [Fri, 15 Jul 2011 21:07:46 +0000 (23:07 +0200)]
update nl80211.h
Johannes Berg [Wed, 29 Jun 2011 11:20:31 +0000 (13:20 +0200)]
more verbose output for interface combinations
Johannes Berg [Thu, 9 Jun 2011 18:55:44 +0000 (20:55 +0200)]
a little bit of P2P parsing
Johannes Berg [Thu, 9 Jun 2011 18:36:59 +0000 (20:36 +0200)]
scan: print MS OUI as what it is
Johannes Berg [Thu, 9 Jun 2011 18:34:59 +0000 (20:34 +0200)]
scan: print WPS UUID
Jo-Philipp Wich [Sun, 22 May 2011 13:09:51 +0000 (15:09 +0200)]
iw: Fix calculation of fractional multicast rates
Due to missing brackets around the "(int) rate * 10" expression
the float value of "rate" is converted to an integer first and
then multiplied which results for example in "50" instead of the
expected "55" for a give rate of 5.5 Mbps, resulting in an invalid
argument error from iw.
This patch simply puts the multiplication expression in brackets,
so that the type cast is performed on the result and not the
first operand.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Johannes Berg [Fri, 13 May 2011 14:53:51 +0000 (16:53 +0200)]
show interface combinations
Johannes Berg [Tue, 24 May 2011 15:48:54 +0000 (08:48 -0700)]
update nl80211.h
There was a merge timing issue with some
patches so the WoWLAN attributes were
renumbered.
Johannes Berg [Tue, 12 Apr 2011 11:04:50 +0000 (13:04 +0200)]
wowlan support
Johannes Berg [Mon, 9 May 2011 15:08:26 +0000 (17:08 +0200)]
update nl80211.h
Johannes Berg [Thu, 28 Apr 2011 17:41:04 +0000 (19:41 +0200)]
validate tx power argument is a number
Paul Stewart [Thu, 28 Apr 2011 16:38:41 +0000 (18:38 +0200)]
Add station BSS params to iw output
Signed-off-by: Paul Stewart <pstew@google.com>
Johannes Berg [Thu, 28 Apr 2011 16:35:00 +0000 (18:35 +0200)]
update nl80211.h
Sujith Manoharan [Wed, 27 Apr 2011 04:10:30 +0000 (09:40 +0530)]
iw: Clarify bitrate mask documentation
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Johannes Berg [Wed, 20 Apr 2011 13:41:54 +0000 (15:41 +0200)]
print frame TX status event
Sean Robinson [Thu, 17 Mar 2011 14:58:41 +0000 (07:58 -0700)]
Add send callbacks with optional debug handler
libnl supports callbacks for send and recv. This patch enables callbacks
for sent messages and uses the debug callback for the --debug option, as
the recv callbacks do.
Signed-off-by: Sean Robinson <seankrobinson@gmail.com>
Johannes Berg [Wed, 2 Mar 2011 13:45:32 +0000 (14:45 +0100)]
fix frequency parsing
Johannes Berg [Thu, 24 Feb 2011 14:11:57 +0000 (15:11 +0100)]
report IBSS RSN
Johannes Berg [Mon, 21 Feb 2011 21:12:54 +0000 (22:12 +0100)]
use nla_type
Johannes Berg [Fri, 4 Feb 2011 12:29:39 +0000 (13:29 +0100)]
version 0.9.22
* bugfixes
* P2P information
* 4addr support
* WDS support
* IBSS improvements
* mesh improvements, support for mesh join/leave
* parse MMIC failure event
Jouni Malinen [Fri, 4 Feb 2011 12:28:23 +0000 (13:28 +0100)]
iw: parse michael MIC failure event
Add code to iw to parse the MMIC failure
event and print out the cause and key
information.
Johannes Berg [Mon, 17 Jan 2011 15:46:03 +0000 (16:46 +0100)]
add more command names
Bruno Randolf [Tue, 11 Jan 2011 00:51:23 +0000 (09:51 +0900)]
iw: Add signal average to station dump information
Print station signal average in station dump.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Felix Fietkau [Tue, 11 Jan 2011 00:51:18 +0000 (09:51 +0900)]
iw: add multicast rates to IBSS join
Add multicast rates to IBSS join command.
This patch comes from OpenWRT.
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Felix Fietkau [Tue, 11 Jan 2011 00:51:12 +0000 (09:51 +0900)]
iw: Add channel busy time to survey
Print channel busy time in survey dump.
This patch comes from OpenWRT.
Fixed up for unsigned values.
[Johannes: fixed up for compiler warnings]
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Felix Fietkau [Tue, 11 Jan 2011 00:51:07 +0000 (09:51 +0900)]
iw: survey: Mark frequency in use
Survey: Mark frequency in use according to NL80211_SURVEY_INFO_IN_USE.
This patch comes from OpenWRT.
Cc: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Johannes Berg [Thu, 6 Jan 2011 15:00:49 +0000 (16:00 +0100)]
add unprot events
Johannes Berg [Thu, 6 Jan 2011 14:58:58 +0000 (15:58 +0100)]
parse NL80211_ATTR_CQM_PKT_LOSS_EVENT
Bruno Randolf [Wed, 22 Dec 2010 01:54:39 +0000 (10:54 +0900)]
iw: Add antenna configuration
Add command to set the antenna configuration (iw phyX set antenna ...) and
include available antennas and antenna setting in wiphy information.
iw phyX info:
Available Antennas: TX 0x3 RX 0x3
Configured Antennas: TX 0x1 RX 0x1
iw phyX set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Johannes Berg [Tue, 4 Jan 2011 11:13:59 +0000 (12:13 +0100)]
update nl80211.h
Luis R. Rodriguez [Mon, 20 Dec 2010 17:02:33 +0000 (12:02 -0500)]
iw: fix country print
Using a %s to pring the alpha2 may give us some extra
data which will spew out when printing. Fix it by only
printing the two characters we know we will get.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Johannes Berg [Fri, 3 Dec 2010 08:18:42 +0000 (09:18 +0100)]
mesh: add support for NL80211_MESHCONF_ELEMENT_TTL
Johannes Berg [Thu, 2 Dec 2010 07:58:57 +0000 (08:58 +0100)]
mesh: support join/leave
Johannes Berg [Tue, 14 Dec 2010 12:06:54 +0000 (13:06 +0100)]
update nl80211.h
Johannes Berg [Thu, 2 Dec 2010 07:53:04 +0000 (08:53 +0100)]
mesh: allow setting multiple parameters at once
Johannes Berg [Thu, 2 Dec 2010 07:44:07 +0000 (08:44 +0100)]
mesh: allow getting all parameters at once
Johannes Berg [Wed, 24 Nov 2010 16:08:52 +0000 (17:08 +0100)]
Revert "iw: Add antenna configuration commands"
This reverts commit
024630b2c03054d0f48ffdf13fc3b05cb505cc98 .
Depended on fucked up stuff.
Johannes Berg [Wed, 24 Nov 2010 16:08:36 +0000 (17:08 +0100)]
Revert "update nl80211.h"
This reverts commit
73e5583c5c9ae8cfc466773cfda8431c268b41e8 .
Fucked up stuff there.
Johannes Berg [Wed, 24 Nov 2010 07:16:47 +0000 (08:16 +0100)]
allow sub-command selection
fixes the plink_action vs. vlan bug
Bruno Randolf [Wed, 17 Nov 2010 09:32:36 +0000 (18:32 +0900)]
iw: Add antenna configuration commands
Add command to set the antenna configuration (iw phyX set antenna ...) and
include antenna setting in wiphy information (iw phyX info).
iw phyX set antenna all | <bitmap> | <tx bitmap> <rx bitmap>
Signed-off-by: Bruno Randolf <br1@einfach.org>
Johannes Berg [Tue, 23 Nov 2010 08:43:03 +0000 (09:43 +0100)]
update nl80211.h
Bruno Randolf [Wed, 27 Oct 2010 06:02:37 +0000 (15:02 +0900)]
iw: Add ibss join parameter for beacon interval
NL80211_ATTR_BEACON_INTERVAL already exists, we just have to use it.
Signed-off-by: Bruno Randolf <br1@einfach.org>
Johannes Berg [Tue, 26 Oct 2010 11:50:10 +0000 (13:50 +0200)]
genl: include genetlink.h explicitly
Luis R. Rodriguez [Mon, 18 Oct 2010 18:37:56 +0000 (11:37 -0700)]
iw: print out eirp for triplets on scan
When debugging country IE parsing when scanning you will not see this:
Channels [1 - 1] @ 14 dBm
Channels [2 - 10] @ 21 dBm
Channels [11 - 11] @ 14 dBm
Instead of this:
Channels [1 - 1]
Channels [2 - 10]
Channels [11 - 11
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Johannes Berg [Wed, 13 Oct 2010 15:52:15 +0000 (17:52 +0200)]
events: allow relative timestamps
Johannes Berg [Fri, 8 Oct 2010 14:44:54 +0000 (16:44 +0200)]
clean up some messages
Bill Jordan [Fri, 8 Oct 2010 14:37:39 +0000 (10:37 -0400)]
iw: new command to set the wds peer
Add command to set the wds peer bssid using the newly
implemented NL80211_CMD_SET_WDS_PEER.
Signed-off-by: Bill Jordan <bjordan@rajant.com>
Bruno Randolf [Wed, 6 Oct 2010 09:35:50 +0000 (18:35 +0900)]
iw: print station retry counters
Signed-off-by: Bruno Randolf <br1@einfach.org>
Johannes Berg [Thu, 7 Oct 2010 08:55:37 +0000 (10:55 +0200)]
update nl80211.h
Jochen Friedrich [Sat, 2 Oct 2010 17:40:39 +0000 (19:40 +0200)]
iw: Implement set 4addr.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Johannes Berg [Wed, 29 Sep 2010 20:32:17 +0000 (22:32 +0200)]
event parsing: remove PARSE_BEACON_CHAN
This makes us fall through the function
thus invoking the fflush(), and gets rid
of the pointless macro.
Johannes Berg [Wed, 29 Sep 2010 12:48:26 +0000 (14:48 +0200)]
fix some indentation
pointed out by Ben Greear
Johannes Berg [Wed, 29 Sep 2010 12:45:28 +0000 (14:45 +0200)]
add p2p interface types
Johannes Berg [Wed, 29 Sep 2010 12:43:31 +0000 (14:43 +0200)]
update nl80211.h
Johannes Berg [Wed, 29 Sep 2010 10:45:06 +0000 (12:45 +0200)]
parse RSN IE information on PMKIDs and mgmt cipher suite
Johannes Berg [Wed, 29 Sep 2010 07:00:14 +0000 (09:00 +0200)]
flush stdout after each event
This enables you to pipe output to a
file and follow the file instead of
reading iw output on a terminal.
Johannes Berg [Sun, 26 Sep 2010 07:12:07 +0000 (09:12 +0200)]
fix NL80211_ATTR_MAX_SCAN_IE_LEN attribute size
The kernel provides this as a u16, not a u32,
but unfortunately the problem only shows up
on big endian machines.
Johannes Berg [Fri, 24 Sep 2010 15:44:07 +0000 (17:44 +0200)]
version 0.9.21
* transmit power support
* TX bitrate mask support
* more informative scan output
* make it build on old systems
Johannes Berg [Fri, 24 Sep 2010 09:34:35 +0000 (11:34 +0200)]
use strtod() instead of strtof()
Reportedly helps building on FC8.
Johannes Berg [Fri, 24 Sep 2010 09:30:48 +0000 (11:30 +0200)]
remove _ISOC99_SOURCE again
It didn't help FC8, and I never had complaints
about other systems, so let's just leave it as
it was before to not break something else ...
Johannes Berg [Wed, 22 Sep 2010 09:34:34 +0000 (11:34 +0200)]
define _ISOC99_SOURCE
unfortunately netlink/object.h has a bug that leads
to many warnings ("extern inline") so we can't use
-std=c99 fully.
Johannes Berg [Wed, 22 Sep 2010 09:33:51 +0000 (11:33 +0200)]
ibss: define _POSIX_SOURCE and include string.h
for strtok_r
Johannes Berg [Wed, 22 Sep 2010 09:33:28 +0000 (11:33 +0200)]
phy: include string.h
Johannes Berg [Wed, 22 Sep 2010 09:32:54 +0000 (11:32 +0200)]
scan: don't define only an unnamed union in a struct
Johannes Berg [Tue, 21 Sep 2010 20:11:26 +0000 (22:11 +0200)]
Revert "make iw build on FC8"
This reverts commit
bd284384a435a4cfa31f1946174aa195a746fb1f .
Andreas Schab said:
This is wrong. You must never define internal glibc macros.
Andreas.
Johannes Berg [Tue, 21 Sep 2010 17:27:22 +0000 (19:27 +0200)]
make iw build on FC8
Signed-off-by: Ben Greear <greearb@candelatech.com>
[modified to not break build elsewhere]
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Wed, 1 Sep 2010 17:43:54 +0000 (19:43 +0200)]
analyse HT operation IE
Johannes Berg [Wed, 1 Sep 2010 17:28:22 +0000 (19:28 +0200)]
use generic length checking
Johannes Berg [Fri, 27 Aug 2010 10:32:29 +0000 (12:32 +0200)]
make AP message more informative
Johannes Berg [Tue, 24 Aug 2010 10:26:56 +0000 (12:26 +0200)]
parse supported TX/RX frame types
Johannes Berg [Tue, 24 Aug 2010 10:26:46 +0000 (12:26 +0200)]
update nl80211.h
Johannes Berg [Thu, 25 Mar 2010 21:52:35 +0000 (16:52 -0500)]
implement setting bitrate mask
vaguely based on a patch from Rakesh Kumar.
Juuso Oikarinen [Wed, 23 Jun 2010 09:12:57 +0000 (12:12 +0300)]
iw: Add support for setting transmit power level
Add a "set txpower" option to specify the current transmit power level. Modes
supported are automatic, fixed and limited, and the limit may be specified
in signed mBm units.
Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
[Johannes: improve command line error checking, error reporting]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Johannes Berg [Wed, 21 Jul 2010 08:10:33 +0000 (10:10 +0200)]
update nl80211.h