aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-04-13iw: add bpf fd supportbpfJohannes Berg2-13/+28
this is a bit dumb for now - need to execve() it from another program and pass a valid fd across, which isn't easy ...
2017-04-13iw: add extack supportJohannes Berg1-0/+51
2017-03-16update nl80211.hJohannes Berg2-41/+179
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2017-02-14iw: Fix bitrate output when no rate info foundMasashi Honma1-0/+2
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>
2017-01-26iw: parse_freqs: check how many center frequencies to expectJohannes Berg1-10/+34
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>
2017-01-25iw: split str_to_bw() from parse_freqs()Johannes Berg2-12/+19
This may be needed separately later, split it out now. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-11-16Print frequency of radar events.Benjamin Berg1-23/+29
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>
2016-11-16Add commands to send CSABenjamin Berg2-0/+72
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>
2016-11-16Add cac command to allow clearing channelsBenjamin Berg1-0/+145
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>
2016-11-16mesh: Use common freqchan helper for joining a meshBenjamin Berg1-56/+11
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>
2016-11-16ibss: Use common freqchan helper for joining an ibssBenjamin Berg1-62/+10
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>
2016-11-16phy: Use common freqchan helper for setting the operating channelBenjamin Berg1-118/+25
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>
2016-11-16util: Add generic frequency/channel command line handlerBenjamin Berg2-0/+249
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>
2016-10-18update version to 4.9v4.9Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-10-18iw: nan: Add NAN interface typeAndrei Otcheretianski2-0/+4
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-10-18iw: add support for VHT MU-MIMO air snifferAviya Erenfeld2-1/+64
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>
2016-10-18add new commandsJohannes Berg1-0/+6
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-10-18ibss: remove _POSIX_SOURCEJohannes Berg1-9/+0
It doesn't appear to be necessary and is causing warnings about struct addrinfo. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-10-18update nl80211.h (kernel 4.9)Johannes Berg1-2/+370
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-08-17event: handle NL80211_ATTR_TIMED_OUT in connect eventJohannes Berg1-1/+3
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-08-17iw: add scan-abort commandEliad Peller1-0/+11
Signed-off-by: Eliad Peller <eliadx.peller@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-08-16utils: make hex2byte and hex2bin parameter constEmmanuel Grumbach1-2/+2
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-08-01iw: display 5/10 MHz channel widthsBob Copeland1-0/+4
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>
2016-07-06iw: recognize 256-bit cipher suitesMantas Mikulėnas1-2/+12
Signed-off-by: Mantas Mikulėnas <grawity@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-06-09add "channels" PHY command listing frequencies with more detailsRafał Miłecki2-30/+152
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>
2016-05-31iw: bump version to 4.7v4.7Johannes Berg1-1/+1
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>
2016-05-31iw: version.sh: update to get version with git correctlyYongqin Liu1-12/+30
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>
2016-05-31iw: Fix -Wabsolute-value compiler warning in iw.cAurimas Liutikas1-1/+1
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>
2016-05-31iw: support setting frame subtype and reason code when deleting stationRafał Miłecki1-3/+62
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-05-31iw: add vendor command response supportErik Stromdahl1-0/+45
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>
2016-05-31iw: Add support for NL80211_STA_INFO_RX_DURATION netlink attributeMohammed Shafi Shajakhan1-0/+5
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>
2016-05-31iw: Change socket configuration to avoid buffer allocation errorTribush, Gil1-2/+2
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>
2016-04-14update nl80211.hJohannes Berg2-5/+109
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-04-14iw: add scheduled scan plans configurationAvraham Stern3-6/+77
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>
2016-04-14iw: add missing station statisticsAviya Erenfeld1-8/+128
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>
2016-04-13iw: document handler return value 1 as HANDLER_RET_USAGEJohannes Berg2-1/+2
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>
2016-04-13iw: fix "iw reg get" double outputJohannes Berg3-6/+10
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>
2016-01-14print BSS boottime if receivedJohannes Berg1-0/+6
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-01-14update nl80211.hJohannes Berg2-3/+66
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-01-06iw: print NOHT always as first in usage textsSven Eckelmann2-2/+2
Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-01-06iw: use get_cf1 and struct chanmode for ocbSven Eckelmann1-7/+10
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>
2016-01-06iw: add VHT80 support for 802.11sSven Eckelmann1-1/+5
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>
2016-01-06iw: prepare get_cf1 for use in join_* functionsSven Eckelmann4-40/+38
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>
2015-11-26iw: don't use NULL pointer in nla_nest_end()Amit Khatri1-1/+2
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>
2015-11-03iw: Fix memory leak if nla_put failsOla Olsson2-3/+10
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>
2015-10-21mesh: show mesh parameters when no args are givenOla Olsson1-7/+16
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>
2015-10-21iw: remove superfluous includesOla Olsson7-11/+0
Signed-off-by: Ola Olsson <ola.olsson@sonymobile.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-10-21iw: Fix segfault when no args are given to offchannelOla Olsson1-0/+3
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>
2015-10-14iw: add and fix -Wsign-compareJohannes Berg10-21/+27
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>
2015-10-13iw: fix help text for event commandOla Olsson1-1/+1
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>
2015-10-13iw: add helpful hints for vendor cmdOla Olsson1-5/+9
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>
2015-10-13ocb: use correct "MHz" instead of "MHZ"Ola Olsson1-3/+3
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>
2015-10-13iw: Fix return values when parameters are wrongOla Olsson3-10/+6
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>
2015-10-12iw: Fix memory leak in error pathOla Olsson1-1/+4
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>
2015-10-08iw: remove superfluous includesOla Olsson12-12/+0
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>
2015-09-18ibss: use correct "MHz" instead of "MHZ"Johannes Berg1-4/+4
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18ibss: add VHT80 support for IBSSJanusz.Dziedzic@tieto.com1-8/+41
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>
2015-09-18scan: Add FTM info to scan resultsAssaf Krauss1-0/+2
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>
2015-09-18iw: display interface TX power if availableRafał Miłecki1-0/+7
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> [print dBm] Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18bump version to 4.3v4.3Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18iw: fix off-by-oneJohannes Berg1-1/+1
An off-by-one prevented printing the very last command, fix it. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18add a few new commands/eventsJohannes Berg1-0/+3
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18print IR-concurrent instead of GO-concurrentJohannes Berg1-1/+1
Since this flag is now also used for other IR indications, e.g. TDLS. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18update nl80211.h to kernel 4.3Johannes Berg1-12/+16
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18iw: don't mix declaration into codeJohannes Berg1-1/+2
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18iw: make netns_get_fd staticJohannes Berg1-1/+1
This can be static since it's only used right there. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-09-18iw: fix s_cb leakJohannes Berg1-2/+2
Reported-by: Amit Khatri <amit.khatri@samsung.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-08-13iw: avoid passing NULL to nla_data()Amit Khatri1-1/+3
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>
2015-08-13iw: cqm: check nlmsg_alloc() returnAmit Khatri1-0/+2
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>
2015-08-13iw: remove android-nl.c with unneeded workaroundFilipe Brandenburger2-7/+1
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>
2015-08-13iw: fix references to libnl in Android.mkFilipe Brandenburger1-5/+1
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>
2015-08-13iw: free memory on scan parse errorsAmit Khatri1-0/+2
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>
2015-08-13iw: remove cb from arguments and simplify valid handlerJohannes Berg27-122/+85
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>
2015-06-17iw: add connected time to station infoArik Nemtsov1-0/+4
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
2015-06-17iw: print beacon-loss and wiphy delete eventsBen Greear1-9/+18
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>
2015-06-08iw: only use tags matching "v*"Johannes Berg1-1/+1
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>
2015-05-05bump version to 4.1v4.1Johannes Berg1-1/+1
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05iw: handle NL80211_ATTR_EXT_FEATURES attributeJanusz.Dziedzic@tieto.com1-0/+20
Print if VHT-IBSS is supported. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05update nl80211.hJohannes Berg1-3/+31
(To 4.1-rc2) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05iw: trivial spelling fix (initial)Stefan Lippers-Hollmann1-1/+1
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>
2015-03-30iw: Print OSEN element for HotSpot 2.0 IE.Ben Greear1-8/+43
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>
2015-03-17iw: add randomise option for sched_scanLuciano Coelho2-1/+12
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>
2015-03-17iw: add support for active scheduled scanLuciano Coelho2-3/+59
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>
2015-03-17iw: implement scheduled scanLuciano Coelho3-0/+44
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>
2015-03-17iw: move generic sched scan parsing code out of net detectLuciano Coelho3-167/+181
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>
2015-03-17version 4.0v4.0Johannes Berg1-1/+1
2015-03-17iw: add a delay option to net-detectLuciano Coelho1-4/+27
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>
2015-03-03phy: Allow set netns by fdVadim Kochan1-9/+46
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>
2015-03-03update nl80211.hJohannes Berg1-30/+148
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-03-03iw: print human readable radar eventsHelmut Schaa1-0/+25
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-01-14Read number of supported net-detect matchesLuciano Coelho1-2/+3
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>
2015-01-14iw: Add OCB mode handlingRostislav Lisovy4-1/+81
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>
2015-01-06iw: fix android buildArik Nemtsov2-1/+4
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>
2014-12-17iw: support multiple regdom printArik Nemtsov1-4/+36
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>
2014-12-17update nl80211.hJohannes Berg1-1/+28
2014-12-12iw: fix attr max for reg_ruleArik Nemtsov1-3/+3
Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12iw: print new RRF_ regulatory flagsArik Nemtsov1-0/+6
These were added to cfg80211 recently Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12iw: print phy TDLS ch-switch supportArik Nemtsov1-0/+2
Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12parse net detect wowlan configuration informationLuciano Coelho1-1/+38
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>
2014-12-12add WoWLAN net-detect triggerLuciano Coelho3-3/+205
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>
2014-12-12support random scan requestJohannes Berg1-6/+39
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12update nl80211.hJohannes Berg1-6/+82
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12iw: Fix calculation of maximum supported 802.11n data rateHenning Rogge1-1/+1
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>
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