aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-11-19support random for sched scanrandom-scanJohannes Berg1-0/+11
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-11-19iw: implement of scheduled scanLuciano Coelho3-0/+188
Signed-off-by: Luciano Coelho <coelho@ti.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-11-19support random scanJohannes Berg1-6/+39
2014-11-19update nl80211.hJohannes Berg1-10/+41
2014-11-13update nl80211.h and command IDsJohannes Berg2-1/+44
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29add WMM tspec capabilityJohannes Berg1-0/+2
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29iw: support setting vif MAC during creationBen Greear2-2/+20
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>
2014-10-29update nl80211.hJohannes Berg1-1/+14
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29add vendor command to MakefileJohannes Berg1-1/+1
Apparently I forgot this when applying the previous commit. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-24iw: add vendor send commandJanusz Dziedzic1-0/+95
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>
2014-10-09Add mpp get/dump commandsHenning Rogge2-1/+85
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>
2014-10-09update nl80211.hJohannes Berg1-0/+6
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-09update to version 3.17v3.17Johannes Berg1-1/+1
This means I forgot and am skipping 3.16, too bad. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-09update nl80211 feature list in the codeJohannes Berg1-0/+30
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-09iw: add auto parameter to set distance commandLorenzo Bianconi2-18/+27
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>
2014-10-09iw: fix memory leakYegor Yefremov1-1/+3
Close f, when returning before while loop. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-09iw: remove double breakYegor Yefremov1-1/+0
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-09iw: Allow basic rates to be configured when joining meshChun-Yeow Yeoh1-6/+34
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>
2014-10-09iw: Allow user to provide freq during mesh joinChun-Yeow Yeoh1-3/+67
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>
2014-10-09update nl80211.hJohannes Berg1-2/+119
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-09-03iw: print hexdump when vendor eventJanusz Dziedzic3-0/+18
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>
2014-06-03iw: print expected throughput when dumping stationAntonio Quartulli1-0/+11
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-06-03update nl80211.hJohannes Berg1-4/+63
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>
2014-05-20version 3.15v3.15Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-05-13iw: handle DFS CAC time paramJanusz Dziedzic2-0/+9
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>
2014-05-13update nl80211.h to 3.15 versionJohannes Berg1-8/+37
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-04-10wowlan: don't require pattern offsetJohannes Berg1-6/+7
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>
2014-03-28iw: embrace the Developer Certificate of Origin for contributionsLuis R. Rodriguez1-0/+49
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>
2014-03-28iw: add support to set/get retry limitUjjal Roy2-0/+80
Show the retry limit in phy details and also configure the retry limit. Signed-off-by: Ujjal Roy <royujjal@gmail.com>
2014-02-19fix RX & TX Antenna Pattern Consistency in VHT capabilitiesMaxime Bizon1-2/+2
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
2014-01-28print command name for unknown eventsJohannes Berg1-1/+2
2014-01-24iw: add sgi/lgi support to set bitratesJanusz Dziedzic1-6/+35
Add possiblity to force SGI/LGI. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
2014-01-24update nl80211.hJohannes Berg1-4/+43
2014-01-24version 3.14v3.14Johannes Berg1-1/+1
2014-01-24iw: add VHT MCS/NSS set support to set bitratesJanusz Dziedzic1-25/+137
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>
2014-01-24update command listJohannes Berg1-0/+4
2014-01-24listen to vendor eventsJohannes Berg1-0/+12
2014-01-24update nl80211.h to kernel 3.14 versionJohannes Berg1-5/+86
2014-01-06info: print something for T-DLS supportJohannes Berg1-0/+3
2013-12-03version 3.13v3.13Johannes Berg1-1/+1
Seems like I skipped version 3.12, and we already have a bit more than kernel 3.13 will have, but hey.
2013-11-25iw: Use NL80211_FREQUENCY_ATTR_NO_IR channel attributeIlan Peer3-18/+34
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>
2013-11-25update nl80211.hJohannes Berg1-16/+119
2013-11-13iw: add support for 5 and 10 MHz channels in IBSS modeSimon Wunderlich1-16/+46
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>
2013-10-01Don't get iw version from git if there is no .git/Florian Schmaus1-1/+1
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 ).
2013-09-30iw: sync frequency to channel mapping with kernelBruno Randolf3-22/+41
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>
2013-08-30iw: Print out HotSpot2 IE information.Ben Greear1-0/+11
Example: HotSpot 2.0 Indication: DGAF: 0 Signed-off-by: Ben Greear <greearb@candelatech.com>
2013-08-30iw: Print 802.11u roaming consortium IE in scan results.Ben Greear1-0/+52
Example output: 802.11u Roaming Consortium: ANQP OIs: 0 OI 1: 01010101 Signed-off-by: Ben Greear <greearb@candelatech.com>
2013-08-30iw: Print 802.11u Advertisement IE info in scan results.Ben Greear1-0/+33
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>
2013-08-30iw: Print Interworking IE details in scan results.Ben Greear1-0/+66
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>
2013-08-29version 3.11v3.11Johannes Berg1-1/+1
We already have more features supported than will be in 3.11 (notably the coalescing support) but that doesn't really matter.
2013-08-29print single GTKSA/PTKSA capability, TDLS/TPK authJoerg Mayer1-0/+5
2013-08-09iw: correction in coalesce condition display messageAmitkumar Karwar1-3/+3
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>
2013-07-26iw: print out mesh configuration element on scanChun-Yeow Yeoh1-0/+32
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>
2013-07-11iw: dump station per-chain signal strength informationFelix Fietkau1-4/+41
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-11iw: dump station rx bit rate informationFelix Fietkau3-4/+12
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-11iw: add the active monitor flagFelix Fietkau1-1/+3
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-08iw: Add support for mesh peer link expiration.Colleen Twitty1-0/+7
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>
2013-07-08iw: add coalesce supportAmitkumar Karwar3-1/+301
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>
2013-07-08iw: use updated structures and enums for packet patternAmitkumar Karwar2-17/+17
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>
2013-07-08update nl80211.hJohannes Berg1-20/+152
2013-06-26iw: reorder some code in iw_connect to avoid a potential memory leakJohn W. Linville1-4/+4
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>
2013-06-26iw: fix incorrect bit shifting in print_ht_mcsJohn W. Linville1-1/+1
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>
2013-05-16add new nl80211 commands to listJohannes Berg1-0/+8
2013-05-07iw: scan using meshidjacob minshall1-7/+36
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>
2013-05-02update version to 3.10v3.10Johannes Berg1-1/+1
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.
2013-05-02update nl80211 to 3.10 versionJohannes Berg1-0/+39
2013-05-02fix "iw phy#0 info"Johannes Berg1-8/+22
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.
2013-04-26iw/event: Print out PROBE_CLIENT event information.Ben Greear1-0/+10
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>
2013-04-25add Android build systemJohannes Berg2-0/+31
Unfortunately Android's libnl doesn't have nla_put_flag() so add a simple source file to declare that for now.
2013-04-23makefile: allow passing NO_PKG_CONFIGJohannes Berg1-0/+2
To build iw without pkg-config, you can now do something like $ make NO_PKG_CONFIG=1 LDFLAGS=-lnl
2013-04-23makefile: don't include .configJohannes Berg1-2/+0
This is no longer used to configure the tool.
2013-04-23clean up makefileJohannes Berg1-3/+5
Change the makefile a bit to add the optional things in a cleaner way.
2013-04-22iw: decode some more IEsJoerg Mayer1-1/+15
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>
2013-04-19fix scan segfault when IFINDEX attribute isn't presentJohannes Berg1-2/+5
2013-04-10align TDLS outputJohannes Berg1-1/+1
2013-04-10refactor bitrate printingJohannes Berg3-69/+57
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.
2013-04-03iw: display DFS regulatory domainZefir Kurtisi1-1/+23
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
2013-03-26iw: don't print DFS states of disabled frequenciesZefir Kurtisi1-10/+11
Also, fix indentation. Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
2013-03-25iw: support split wiphy dumpJohannes Berg1-85/+140
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.
2013-03-25update nl80211.hJohannes Berg3-25/+108
2013-02-26fix TCP wowlan bugJohannes Berg1-1/+1
2013-02-20override default buffer sizeJohannes Berg1-0/+8
With the TCP WoWLAN, larger messages may be needed. To simplify the code, always use larger messages.
2013-02-20iw: add packet offset information for wowlan patternAmitkumar Karwar2-12/+35
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>
2013-02-19support TCP wakeup APIJohannes Berg3-3/+258
Since the configuration is complex, read it from a file.
2013-02-18iw: print DFS states for channels if availableSimon Wunderlich1-0/+26
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
2013-02-18iw: add radar detect widths to phy infoSimon Wunderlich3-2/+23
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
2013-02-18update nl80211.hJohannes Berg1-7/+318
2013-02-13iw: Add VHT info in link queryYogesh Ashok Powar1-1/+11
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>
2013-01-31iw: Print beacon-loss-event string.Ben Greear1-3/+19
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>
2013-01-29iw: add support for link-specific mesh power modesMarco Porsch1-0/+89
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>
2013-01-29iw: add default mesh Power Mode and Awake Window to mesh configMarco Porsch1-2/+50
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>
2013-01-29iw: add beacon interval and DTIM period parameters to mesh joinMarco Porsch1-2/+30
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>
2013-01-29update nl80211.hJohannes Berg1-3/+69
2013-01-25add "auth" commandJohannes Berg1-0/+71
This isn't helpful for real usage, but can be useful for debugging authentication issues.
2013-01-22fix PMKSA eventJohannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2013-01-04iw: print capability info for DMG (60GHz band)Vladimir Kondratiev1-25/+93
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>
2012-12-21update version to 3.8v3.8Johannes Berg1-1/+1
The merge window is going to close soon so release version 3.8 with nl80211.h from that tree.
2012-12-21update nl80211.hJohannes Berg1-0/+16
2012-11-28update for VHT channel configJohannes Berg2-18/+113
2012-11-28update nl80211.hJohannes Berg1-18/+88
2012-11-21parse a few more IEsJohannes Berg1-7/+40
2012-11-20print VHT operation IEJohannes Berg1-1/+22
2012-11-20allow multiple command variantsJohannes Berg1-3/+34
2012-11-19iw: add set_mcast_rate command supportAntonio Quartulli1-0/+29
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>
2012-11-19update nl80211.hJohannes Berg1-0/+7
2012-11-15add a helper command to print command IDsJohannes Berg1-0/+13
sometimes knowing the command ID for a given nl80211 command or knowing the command for a given number is needed, add a helper for that
2012-11-13Clarify that unit is ms for ROC commandPontus Fuchs1-1/+1
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
2012-11-12print VHT capabilitiesJohannes Berg5-2/+100
2012-11-09iw: print the ssid when requesting device infoAntonio Quartulli1-0/+6
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>
2012-11-09parse more extended capabilitiesJohannes Berg1-21/+49
update the list to 802.11-2012, except for the service interval granularity
2012-11-06add P2P Device handling primitivesJohannes Berg3-1/+34
For testing, it can be useful to be able to use the P2P Device manually, add the ability to do that.
2012-11-06update command listJohannes Berg1-0/+3
2012-11-06fix bug in iftype_name()Johannes Berg1-1/+1
If the kernel has been updated, and iw hasn't but was recompiled, the function can return NULL which isn't desirable. Fix it.
2012-10-26iw: add support for the forced AP scanAntonio Quartulli1-2/+6
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>
2012-10-26iw: show AP scan capabilityAntonio Quartulli1-0/+2
If the wireless driver supports the AP scan capability (this can be seen by checking NL80211_FEATURE_AP_SCAN) iw has to show it. Signed-off-by: Antonio Quartulli <ordex@autistici.org>
2012-10-26update nl80211.hJohannes Berg1-0/+8
2012-10-22iw: remove unnecessary variable in find_mesh_paramAshok Nagarajan1-7/+3
Also stick to coding style. use "strcmp ( , ) == 0" instead of (!strcmp( , )) Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
2012-10-22iw: add lowpri and flush scan operandsSam Leffler2-2/+17
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. Signed-off-by: Sam Leffler <sleffler@chromium.org> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com>
2012-10-16update nl80211.hJohannes Berg1-0/+40
2012-10-16update version to 3.7v3.7Johannes Berg1-1/+1
The merge window for 3.7 closed, so all the features are in. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-10-16print more feature flagsJohannes Berg1-4/+10
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-10-16add P2P DeviceJohannes Berg1-0/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-10-16update nl80211.hJohannes Berg1-4/+50
to kernel 3.7 (from rc1) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-08-03update version to 3.6v3.6Johannes Berg1-1/+1
The merge window for 3.6 closed, so all the features are in. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2012-07-25print wdev id in event infoJohannes Berg1-0/+6
2012-07-19allow wdev in place of devJohannes Berg4-7/+16
In new kernels, any virtual interface also has a wdev identifier, allow using that in place of interface idx.
2012-07-19pass idby argument to all functionsJohannes Berg22-71/+133
2012-07-19update interface info for non-netdev wdevsJohannes Berg1-0/+10
2012-07-19add basics for identify wireless devsJohannes Berg2-1/+20
2012-07-19update nl80211.hJohannes Berg1-0/+53
2012-07-06Fix print channel number for 60gVladimir Kondratiev1-1/+7
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
2012-07-06introduce GCMP cipherVladimir Kondratiev2-0/+5
Recognize cipher suite selector and print "GCMP" name Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
2012-07-06Prefer 32-bit bitrateVladimir Kondratiev2-6/+14
If 32-bit bitrate reported, use it. Otherwise, use 16-bit one. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
2012-07-06update nl80211.hJohannes Berg1-0/+9
2012-07-06iw: allow setting mesh proactive tree building mode related parametersChun-Yeow Yeoh1-1/+9
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.
2012-07-06update nl80211.hJohannes Berg1-53/+119
2012-07-06add (optional) hwsim codeJohannes Berg2-3/+153
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".
2012-06-25update version to 3.5v3.5Johannes Berg1-1/+1
I'm a bit late, kernel 3.5 is already around the corner.
2012-06-19update command list and add scriptJohannes Berg1-8/+35
Add a small one-line sed script to make updating the command list easier and of course use it once.
2012-06-07update manpage for "iw help command"Johannes Berg1-3/+7
2012-06-07update nl80211 to kernel 3.5 versionJohannes Berg1-3/+8
2012-06-06iw: fix the Makefile for multiple libnl installationsGuido Trentalancia1-4/+12
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. Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
2012-05-14iw: print out Mesh ID on scanChun-Yeow Yeoh1-0/+1
Print out the mesh id element which is useful for a mesh node to scan for an existing mesh network
2012-04-20iw: Show Toffset on station dumpAshok Nagarajan1-0/+4
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
2012-04-20iw: Allow setting RSSI threshold for peeringAshok Nagarajan1-0/+22
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
2012-04-13iw: add mesh conf parameter "mesh_sync_offset_max_neighor"Ashok Nagarajan1-0/+8
Maximum number of neighbors to synchronize to for mesh default synchronization method Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
2012-04-13iw: allow user to enable vendor synchronization when joining meshAshok Nagarajan1-1/+23
Currently this option just disables the default neighbor offset synchronization method. It is useful for testing. Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
2012-04-13update nl80211.hJohannes Berg1-7/+34
2012-04-04Add support for channel info in interface infoPontus Fuchs1-0/+27
Print the current channel freq and type if that information is present in the NL80211_CMD_GET_INTERFACE response. Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
2012-03-29update version to 3.4v3.4Johannes Berg1-1/+1
The networking merges for 3.4 are done and there are no outstanding API changes, so release iw version 3.4.
2012-03-26extend help frameworkJohannes Berg1-5/+20
Make it possible to print the help for a specific set of commands, e.g. "iw help wowlan" or "iw help wowlan enable".
2012-03-26iw: Add support of setting non-forwarding entity in MeshChun-Yeow Yeoh1-0/+2
This patch creates a new mesh parameter known as mesh_fwding. Mesh node will become non-forwarding entity if this parameter is set to 0. By default, it is set as 1. Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
2012-03-26update nl80211.hJohannes Berg1-14/+50
2012-03-20Fix typo in print_iface_handler.Pontus Fuchs1-1/+1
print_iface_handler printed the interface type at the phy number.
2012-03-13shorten TX/RX frame type outputJohannes Berg1-2/+2
2012-02-16iw: remove ifdefs for mcs maskSimon Wunderlich1-18/+2
These are enums, not defines. Therefore the ifdef check can never be true. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
2012-02-16update nl80211.hJohannes Berg1-1/+15
2012-01-17iw: allow setting mesh mcast-rateChun-Yeow Yeoh1-2/+18
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com> Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
2012-01-17update version to 3.3v3.3Johannes Berg1-1/+1
The merge window for 3.3 is open, so it will be feature-complete now.
2012-01-08iw: add support for NL80211_CMD_DEL_STATION eventAntonio Quartulli1-0/+4
Actually iw event does not recognise the NL80211_CMD_DEL_STATION event. This patch makes it print the appropriate message. Signed-off-by: Antonio Quartulli <ordex@autistici.org>
2011-12-14parse NL80211_ATTR_FEATURE_FLAGSJohannes Berg1-0/+9
2011-12-14iw: add HT options for ibssSimon Wunderlich1-1/+29
Allow to set a specific HT mode for ibss_join. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
2011-12-14update nl80211.hJohannes Berg1-0/+2
2011-12-07whitespace cleanupsJohannes Berg6-15/+15
2011-12-07whitespace cleanupsNick Black1-3/+3
2011-12-07use signed int where negative values are usedNick Black1-1/+1
2011-12-06iw: add support for NoAck per tidSimon Wunderlich1-0/+27
This adds support for the new NoAck feature in nl80211/mac80211 Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
2011-12-06update nl80211.hJohannes Berg1-0/+15
2011-11-29iw: Support ht-capability overrides mask.Ben Greear3-0/+80
Let user know which capabilities are supported.
2011-11-24update nl80211.hJohannes Berg1-0/+146
2011-11-17remove NLVERSION from MakefileJohannes Berg1-1/+0
It's unused and causes errors with older pkg-config.
2011-11-16iw: fix wifi wmm ie print functionYoni Divinsky1-1/+1
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>
2011-11-14always use libnl 3.2 as 3.2, not 3.0Bjarke Istrup Pedersen1-6/+8
With libnl 3.2, both LIBNL3FOUND and LIBNL3xFOUND might become true, leading to errors. Disable the former if the latter is found.
2011-11-14fix compilation against libnl-3.xGilles Espinasse1-14/+18
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>
2011-11-11Revert "Fix linking with libnl-3"Johannes Berg1-3/+2
This reverts commit 15bc193a926ec67e25de175f7dfe45df8cbd3e9a. This commit broke compiling against libnl 3.0 which numerous distributions ship.
2011-11-10use genl_ctrl_resolve()Johannes Berg2-26/+5
This simplifies the code quite a bit since we don't need an nl_cache or nl_family.
2011-11-08Fix linking with libnl-3Gilles Espinasse1-2/+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>
2011-11-07iw: fix regression in tx power validationFelix Fietkau1-1/+1
Only bail out if the last character is *not* \0
2011-11-04update version to 3.2v3.2Johannes Berg1-1/+1
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.
2011-11-04print out AP-side uAPSD supportJohannes Berg1-0/+3
2011-11-04print PMKSA candidate eventJohannes Berg1-0/+3
For now without the data in it.
2011-10-27iw: show STA flags in station dumpHelmut Schaa1-0/+56
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
2011-10-27update nl80211.hJohannes Berg1-0/+46
2011-10-21print wiphy idx in iface infoJohannes Berg1-0/+2
2011-10-16SSID printing: escape space at beginning end, backslashJohannes Berg1-1/+4
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.
2011-10-13print PHY membership selector only for membership ratesJohannes Berg1-1/+1
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 ...)"
2011-10-11iw: fix HT PHY BSS Membership selector value encodingChristian Lamparter1-1/+9
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>
2011-10-05show supported ciphersJohannes Berg1-0/+38
2011-10-04print roam capabilityJohannes Berg1-0/+3
2011-10-04update nl80211.hJohannes Berg1-2/+101
2011-09-07iw: add libnl-3.0 supportYegor Yefremov3-5/+15
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2011-09-03support for setting RANN interval and mesh gateJavier Cardona1-0/+4
2011-09-03update nl80211.hJohannes Berg1-10/+92
2011-07-20fix bug in version.shJohannes Berg1-2/+1
2011-07-15add remain-on-channelJohannes Berg2-1/+41
2011-07-15new wowlan triggers/infoJohannes Berg2-5/+37
2011-07-15add set_rekey_offload cmdJohannes Berg1-0/+1
2011-07-15update nl80211.hJohannes Berg1-3/+65
2011-06-29more verbose output for interface combinationsJohannes Berg1-2/+9
2011-06-09a little bit of P2P parsingJohannes Berg1-0/+101