aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-11-28Android.mk: Stop using version.sh scriptDan Willemsen
This isn't producing the correct results anyways, since the working directory of the script is the top level of the android tree, not external/iw like the script expects. And moving the working directory doesn't help either, since we don't have a copy the git tags that it expects. I noticed this while testing git submodules as an alternative to repo, where we suddenly have a .git directory at the top level, and the script failed. So just extract the version number itself from the script and write out our own version.c file. Test: m out/target/product/generic/gen/EXECUTABLES/iw_intermediates/version.c Test: Compare version.c before/after Change-Id: I98ff4e44b84afbcd2ce8319ccf6816d5fa57a90a
2016-06-13Admit that iw is _GNU_SOURCE. am: 9235006c4b am: 9de42714ca am: 2750da3372Elliott Hughes
am: 8fb75ca6f9 Change-Id: I087949730bf3a31f422c923741b59f7d7af4f22d
2016-06-13Admit that iw is _GNU_SOURCE. am: 9235006c4b am: 9de42714caElliott Hughes
am: 2750da3372 Change-Id: I489a54830af9aa28aba4001490dfddf45e1ce1f8
2016-06-13Admit that iw is _GNU_SOURCE. am: 9235006c4bandroid-n-mr1-preview-2android-n-mr1-preview-1Elliott Hughes
am: 9de42714ca Change-Id: Ia17d1602907a4b28db72ad19591bf45b2803bc4a
2016-06-13Admit that iw is _GNU_SOURCE.Elliott Hughes
am: 9235006c4b Change-Id: I462308ffea38483075f1aa06bdc25f86f3879af3
2016-06-13Admit that iw is _GNU_SOURCE.android-wear-n-preview-2android-wear-7.1.1_r1android-n-preview-5android-n-iot-preview-2nougat-mr1-wear-releasen-iot-preview-2Elliott Hughes
Change-Id: Ifa778f084405647b10166b3cb82d290f44780969
2015-12-09Iw: Silence some warningsandroid-wear-n-preview-3android-wear-n-preview-1android-n-preview-4android-n-preview-3android-n-preview-2android-n-preview-1android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r29android-cts-7.1_r28android-cts-7.1_r27android-cts-7.1_r26android-cts-7.1_r25android-cts-7.1_r24android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-cts-7.0_r9android-cts-7.0_r8android-cts-7.0_r7android-cts-7.0_r6android-cts-7.0_r5android-cts-7.0_r4android-cts-7.0_r33android-cts-7.0_r32android-cts-7.0_r31android-cts-7.0_r30android-cts-7.0_r3android-cts-7.0_r29android-cts-7.0_r28android-cts-7.0_r27android-cts-7.0_r26android-cts-7.0_r25android-cts-7.0_r24android-cts-7.0_r23android-cts-7.0_r22android-cts-7.0_r21android-cts-7.0_r20android-cts-7.0_r2android-cts-7.0_r19android-cts-7.0_r18android-cts-7.0_r17android-cts-7.0_r16android-cts-7.0_r15android-cts-7.0_r14android-cts-7.0_r13android-cts-7.0_r12android-cts-7.0_r11android-cts-7.0_r10android-cts-7.0_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r61android-7.1.1_r60android-7.1.1_r6android-7.1.1_r59android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1android-7.0.0_r9android-7.0.0_r8android-7.0.0_r7android-7.0.0_r6android-7.0.0_r5android-7.0.0_r4android-7.0.0_r36android-7.0.0_r35android-7.0.0_r34android-7.0.0_r33android-7.0.0_r32android-7.0.0_r31android-7.0.0_r30android-7.0.0_r3android-7.0.0_r29android-7.0.0_r28android-7.0.0_r27android-7.0.0_r24android-7.0.0_r21android-7.0.0_r19android-7.0.0_r17android-7.0.0_r15android-7.0.0_r14android-7.0.0_r13android-7.0.0_r12android-7.0.0_r11android-7.0.0_r10android-7.0.0_r1nougat-releasenougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devnougat-mr1.8-releasenougat-mr1.7-releasenougat-mr1.6-releasenougat-mr1.5-releasenougat-mr1.4-releasenougat-mr1.3-releasenougat-mr1.2-releasenougat-mr1.1-releasenougat-mr1-volantis-releasenougat-mr1-security-releasenougat-mr1-releasenougat-mr1-flounder-releasenougat-mr1-devnougat-mr1-cts-releasenougat-mr0.5-releasenougat-dr1-releasenougat-devnougat-cts-releasenougat-bugfix-releasebrillo-m9-releasebrillo-m9-devbrillo-m8-releasebrillo-m8-devbrillo-m10-releasebrillo-m10-devAndreas Gampe
Silence some (benign) warnings. Bug: 26105799 Change-Id: I5c8444662e0673f730d2ad196ad25d52d36cbead
2015-08-12Merge remote-tracking branch 'goog/master' into 'goog/mnc-dr-dev'Filipe Brandenburger
Change-Id: Iddc76f624b3655a84643749f430362fd6d5bce6f
2015-08-10iw: Remove include of Makefile to avoid definition of invalid rulesbrillo-m7-releasebrillo-m7-mr-devbrillo-m7-devFilipe Brandenburger
This can be harmful for rules such as "clean" and implicit make rules defined in iw's Makefile, such as "%.o", etc. The problem was detected from this build warning: build/core/main.mk:1045: warning: overriding commands for target `clean' external/iw/Makefile:126: warning: ignoring old commands for target `clean' Fix it by removing the include of Makefile in Android.mk. For now, this creates even more duplication between the two files, in the future we can try to prevent that by factoring out common code (such as the list of *.o files, cflags, etc.) into a "common" file that can be included in both makefiles. TEST=Build iw from the AOSP tree and confirm it is built correctly. Confirmed that the warning about the "clean" rule is gone. Change-Id: Ia927a71edbf0243dc0074a0ac6f6aa583ce636c5
2015-08-03iw: include iw in both "userdebug" and "eng" Android buildsFilipe Brandenburger
The binary is also relevant on debug builds. While at it, removed commented out line marking it as optional. TEST=Built AOSP tree with this patchset, tested the generated iw binary. Change-Id: I0bb234c5035235155e9bfb0eb3fd05fb698d4775 Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2015-08-03iw: remove android-nl.c with unneeded workaroundFilipe Brandenburger
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. Change-Id: I932d6d3530f0aaea3dd822d48a74344be35b383a Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2015-08-03iw: fix references to libnl in Android.mkFilipe Brandenburger
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. Change-Id: I79ba4249e3f43bb6d593915458f9a06002d200d2 Signed-off-by: Filipe Brandenburger <filbranden@google.com>
2015-07-30Include NOTICE and license information for "iw"Filipe Brandenburger
The project is licensed under ISC license which is compatible with BSD: http://git.kernel.org/cgit/linux/kernel/git/jberg/iw.git/tree/COPYING Change-Id: Ib6624ab263fedcdb9815656ca932c37b221deac8
2015-06-17iw: add connected time to station infoArik Nemtsov
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 Greear
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 Berg
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.1Johannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05iw: handle NL80211_ATTR_EXT_FEATURES attributeJanusz.Dziedzic@tieto.com
Print if VHT-IBSS is supported. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05update nl80211.hJohannes Berg
(To 4.1-rc2) Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-05-05iw: trivial spelling fix (initial)Stefan Lippers-Hollmann
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 Greear
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 Coelho
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 Coelho
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 Coelho
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 Coelho
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.0Johannes Berg
2015-03-17iw: add a delay option to net-detectLuciano Coelho
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 Kochan
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 Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-03-03iw: print human readable radar eventsHelmut Schaa
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 Coelho
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 Lisovy
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 Nemtsov
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 Nemtsov
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 Berg
2014-12-12iw: fix attr max for reg_ruleArik Nemtsov
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 Nemtsov
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 Nemtsov
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 Coelho
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 Coelho
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 Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12update nl80211.hJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-12-12iw: Fix calculation of maximum supported 802.11n data rateHenning Rogge
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 Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29add WMM tspec capabilityJohannes Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29iw: support setting vif MAC during creationBen Greear
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 Berg
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2014-10-29add vendor command to MakefileJohannes Berg
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 Dziedzic
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 Rogge
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>