Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
|
|
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This saves an extra call to change it later, and will
also keep udev from potentially messing with a vif
it should not be messing with.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Apparently I forgot this when applying the previous commit.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This allow to send vendor data to the driver.
This command required OUI and SUBCMD parameters.
Also optional DATA parameter could be used:
cat data.bin | iw wlan0 send oui subcmd -
iw wlan0 send oui subcmd file.bin
iw wlan0 vendor send oui subcmd 0x00 0x00 0x00 0x1f
echo EOF | iw wlan0 vendor send oui subcmd -
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Add the "mpp get" and "mpp dump" command to query to mac80211s mesh
proxy path table through nl80211.
Signed-off-by: Henning Rogge <henning.rogge@fkie.fraunhofer.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This means I forgot and am skipping 3.16, too bad.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Add auto parameter to set distance command in order to enable ACK timeout
estimation algorithm (dynack). Dynack is automatically disabled setting valid
value for coverage class. Currently dynack is supported just by ath9k
This patch is based on "configure dynack through mac80211/cfg80211 stack"
patchset sent on linux-wireless
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Close f, when returning before while loop.
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
This patch adds option to configure basic rates during mesh join.
Signed-off-by: Ashok Nagarajan <ashok.dragon@gmail.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
v2: minor change for upstream
v3: fix typo error (Colleen)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Allow user to configure frequency and channel type during
mesh join command.
Signed-off-by: Ashok Nagarajan <ashok.dragon@gmail.com>
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
v2: use chandef similar to IBSS (Johannes)
v4: make the mesh join command more self-explanatory (Bob Copeland)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
print hexdump when vendor event and -f requested
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The file is a merge of upstream mac80211 and mac80211-next trees as
otherwise iw fails to compile on NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Handle DFS CAC time param for
iw list/info, iw reg get
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Not all kernels have offset support, so don't treat it
being absent as an error.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The Linux kernel started to embrace a light weight development contribution
agreement process called the Developer Certificate of Origin (DCO) circa
2004. Attorneys all over the planet have conferred a lot of respect and
appreciation for this document and it provides a light weight alternative to
cumbersome and controversial Contribution License Agreements (CLAs).
Similar to streamlining FOSS licenses we also all stand to gain from
streamlining a light weight contribution agreement process for development
and in light of this the the Linux Foundation recently has made the DCO a
standalone project [0] so that any FOSS project under any FOSS license can
take advantage of the same gains. The motivation and intent is documented
only currently on my blog post [1].
Lets take advantage of the new shiny DCO and embrace it for contributions.
NOTE: Contributions before this commit that still included a Signed-off-by
line (presumably out of habit of typing -s with git commands) aren't
necessarily covered by this agreement.
[0] http://developercertificate.org/
[1] http://www.do-not-panic.com/2014/02/developer-certificate-of-origin.html
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Show the retry limit in phy details and also configure the
retry limit.
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
|
|
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
|
|
|
|
Add possiblity to force SGI/LGI.
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
|
|
|
|
|
|
mcs-2.4/mcs-5 rename to ht-mcs-2.4/ht-mcs-5
vht-mcs-2.4/vht-mcs-5 added
Format for vht-mcs-*, eg:
1:0-9 - set NSS=1 and MCS0-9
2:4,5 - set NSS=2 and MCS4, MCS5
3:1 - set NSS=3 and MCS1
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
|
|
|
|
|
|
|
|
|
|
Seems like I skipped version 3.12, and we already have
a bit more than kernel 3.13 will have, but hey.
|
|
Align iw with the change in nl80211.h where NL80211_FREQUENCY_ATTR_NO_IBSS
and NL80211_FREQUENCY_ATTR_PASSIVE_SCAN were replaced by
NL80211_FREQUENCY_ATTR_NO_IR.
In case both NL80211_FREQUENCY_ATTR_NO_IR and __NL80211_FREQUENCY_ATTR_NO_IBSS
are set, assume that a new kernel is used and use the NO_IR notation,
otherwise use the previous notation.
This change requires nl80211.h with the new definitions
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
|
|
|
|
5/10 MHz requires to send the frequency information as chandef instead
of the the old channel type, therfore send the chandef next the channel
type (the latter is still used for old kernels).
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
|
|
The version.sh script should only try to get the version from git if the
source actually resides in a git repository, i.e. .git/ exists. Doing
otherwise in a non-git source repo results in git ascending until it
finds a .git directory, which will cause problems in some source-based
distributions ( https://bugs.gentoo.org/show_bug.cgi?id=482334 ).
|
|
Use ieee80211_frequency_to_channel() and ieee80211_channel_to_frequency() as in
the current kernel. This is necessary to properly print the channel numbers for
4.9GHz channels which can be used in Japan.
Signed-off-by: Bruno Randolf <br1@einfach.org>
|
|
Example:
HotSpot 2.0 Indication:
DGAF: 0
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
Example output:
802.11u Roaming Consortium:
ANQP OIs: 0
OI 1: 01010101
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
Sample output looks like:
802.11u Advertisement:
Query Response Info: 0x7f
Query Response Length Limit: 127
ANQP
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
Output looks like:
802.11u Interworking:
Network Options: 0xf1
Network Type: 1 (Private with Guest)
Internet
ASRA
ESR
UESA
Venue Group: 2 (Business)
Venue Type: 1
HESSID: 00:00:00:00:00:01
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
We already have more features supported than will be in 3.11
(notably the coalescing support) but that doesn't really matter.
|
|
|
|
NL80211_COALESCE_CONDITION_MATCH is 0 and
NL80211_COALESCE_CONDITION_NO_MATCH is 1.
Hence this change is required
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
|
|
Print out mesh configuration element which will be useful for
decision making whether to join or not join the mesh network.
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
|
|
User can configure the peer link expiration time with a
new mesh parameter, mesh_plink_timeout. This parameter
sets the expiration time, in seconds, for peer links.
After this time, the peer link is expired. This means the
inactive STA is removed from the list of peers and is not
considered a peer again unless it re-peers.
Signed-off-by: Colleen Twitty <colleen@cozybit.com>
|
|
User can configure multiple coalesce rules using 'iw coalesce
enable <config-file>' command. The setting can be cleared using
'iw coalesce disable' command. 'iw coalesce show' displays current
configuration.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
|
|
They are renamed in new nl80211.h so that they can be used for
new feature. This patch uses those updated structures and enums
to make the code look nicer.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
|
|
|
|
iw-3.10/connect.c:104:leaked_storage –
Variable "conn_argv" going out of scope leaks the storage it points to.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
|
|
iw-3.10/util.c:569:result_independent_of_operands –
"mcs[10] >> 8" is 0 regardless of the values of its operands. This occurs as the bitwise first operand of '&'.
This seems more like what was intended...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
|
|
|
|
This patch adds the ability to perform a directed scan
for MBSSs matching meshid by
iw <dev> scan meshid <meshid>
Signed-off-by: jacob minshall <jacob@cozybit.com>
|
|
It seems I forgot to release 3.9 when that kernel was starting,
so there's little point in doing it now. The 3.10 merge window
has opened and wireless features are finalized, so this version
of iw matches what will be supported in 3.10.
|
|
|
|
Ben Greear reported that on a kernel that doesn't have the split
(and therefore filtered) wiphy dump feature, "iw phy#0 info" was
reporting data for all devices, rather than just one. This was a
result of using the split/filtered dump rather than a simple get
on "older" kernels (before 3.10!)
Fix this by checking the kernel feature before getting the data.
|
|
For instance:
vap0 (phy #0): probe client 00:ab:cd:ef:03:5c (cookie f54bb400): no ack
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
Unfortunately Android's libnl doesn't have nla_put_flag()
so add a simple source file to declare that for now.
|
|
To build iw without pkg-config, you can now do something
like
$ make NO_PKG_CONFIG=1 LDFLAGS=-lnl
|
|
This is no longer used to configure the tool.
|
|
Change the makefile a bit to add the optional
things in a cleaner way.
|
|
Small update, found while verifying against the standard.
Thanks
Jörg
The results of a boring train ride:
- Decode some IEs sent by other traveller's devices
+ IBSS ATIM window
+ TPC report
+ Old ERP IE (802.11g D4.0)
- Tiny whitespace fix
- Add Unit 'TUs' to beacon interval.
v2: TPC: Link margin element is not used in beacons
In case this project requires a sob:
Signed-off-by: Joerg Mayer <jmayer@loplof.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
|
|
|
|
I updated only "iw link" for VHT, so refactor it now to
also get "iw station dump" etc. updated and not make this
mistake again in the future.
|
|
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
|
|
Also, fix indentation.
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
|
|
This adds support for the new split wiphy dump,
it only uses it for "iw list", not for "info"
though, so far. Using it for "info" would mean
querying the kernel capability first and then
using get/dump (with filter) depending on that.
|
|
|
|
|
|
With the TCP WoWLAN, larger messages may be needed.
To simplify the code, always use larger messages.
|
|
Now user can provide packet offset along with the pattern in
"iw wowlan" command. Default offset will be 0 when it is not
provided.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
|
|
Since the configuration is complex, read it from a file.
|
|
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
|
|
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
|
|
|
|
Show VHT mcs, nss and bw, if present, in
iw dev link.
Eg.,
Connected to 10:6f:3f:4d:94:b4 (on mlan0)
SSID: 122920
freq: 5180
RX: 0 bytes (0 packets)
TX: 88 bytes (1 packets)
signal: -51 dBm
tx bitrate: 650.0 MBit/s VHT-MCS 7 80Mhz short GI VHT-NSS 2
bss flags:
dtim period: 1
beacon int: 100
Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
[also fix existing Mhz to MHz]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
There are now three possible threshold events. The old
code assumed only above/below RSSI, and printed out 'low'
for beacon-loss-event.
Fix that, and do so with a switch statement so the compiler
can warn if the enum is further expanded w/out updating this
code.
Shorten 'connection quality monitor' to CQM to keep total string
relatively short.
Signed-off-by: Ben Greear <greearb@candelatech.com>
|
|
The different power modes of links towards neighbor STA can be
read using
iw <dev> station get
-or-
iw <dev> station dump
The different power modes shown are:
- mesh local PS mode
- mesh peer PS mode
- mesh non-peer PS mode
where the local PS mode is "our" mode towards the neighbor, the
peer PS mode is the neighbor's mode towards us, and the non-peer
PS mode is the neighbor's non-peer PS mode as indicated in
beacons and management frames.
The local PS mode can be modified for each neighbor using
iw <dev> station set <mac-addr> mesh_power_mode
<active|light|deep>
Signed-off-by: Marco Porsch <marco@cozybit.com>
Signed-off-by: Ivan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
|
|
The default mesh power mode is the power mode that will be
assigned to newly established peer links.
The awake window is the duration the local STA will stay awake
after sending its own beacon in PS mode.
Both values can be modified as part of the mesh params.
Signed-off-by: Marco Porsch <marco@cozybit.com>
Signed-off-by: Ivan Bezyazychnyy <ivan.bezyazychnyy@gmail.com>
|
|
Set the beacon interval and DTIM period with the mesh join
command:
iw <dev> mesh join <meshid> beacon-interval <time in TUs>
dtim-period <value>
Signed-off-by: Marco Porsch <marco@cozybit.com>
|
|
|
|
This isn't helpful for real usage, but can be useful
for debugging authentication issues.
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
On the DMG (Directed Multi-Gigabit) aka 60GHz band, capability info
defined by the 802.11ad spec differently from non-DMG one
Detect DMG band by frequency, spec says DMG if above 45 GHz;
parse and print accordingly
For the non-DMG capability info, add more bits as defined in the
IEEE802.11-2012
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The merge window is going to close soon so
release version 3.8 with nl80211.h from that
tree.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
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
|
|
Signed-off-by: Pontus Fuchs <pontus.fuchs@gmail.com>
|
|
|
|
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>
|
|
update the list to 802.11-2012, except for the
service interval granularity
|
|
For testing, it can be useful to be able to use the
P2P Device manually, add the ability to do that.
|
|
|
|
If the kernel has been updated, and iw hasn't
but was recompiled, the function can return
NULL which isn't desirable. Fix it.
|
|
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>
|
|
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>
|
|
|
|
Also stick to coding style. use "strcmp ( , ) == 0" instead of (!strcmp( , ))
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
|
|
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>
|
|
|
|
The merge window for 3.7 closed, so all the
features are in.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
to kernel 3.7 (from rc1)
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
The merge window for 3.6 closed, so all the
features are in.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
|
|
|
|
In new kernels, any virtual interface also has a wdev
identifier, allow using that in place of interface idx.
|
|
|
|
|
|
|
|
|
|
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
|
|
Recognize cipher suite selector and print "GCMP" name
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
|
|
If 32-bit bitrate reported, use it. Otherwise, use 16-bit one.
Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
|
|
|
|
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.
|
|
|
|
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".
|
|
I'm a bit late, kernel 3.5 is already around the corner.
|
|
Add a small one-line sed script to make
updating the command list easier and of
course use it once.
|
|
|
|
|
|
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>
|
|
Print out the mesh id element which is useful for a mesh node
to scan for an existing mesh network
|
|
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
|
|
Signed-off-by: Ashok Nagarajan <ashok@cozybit.com>
|
|
Maximum number of neighbors to synchronize to for mesh default synchronization
method
Signed-off-by: Marco Porsch <marco.porsch@etit.tu-chemnitz.de>
|
|
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>
|
|
|
|
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>
|
|
The networking merges for 3.4 are done and
there are no outstanding API changes, so
release iw version 3.4.
|
|
Make it possible to print the help for a specific set of
commands, e.g. "iw help wowlan" or "iw help wowlan enable".
|
|
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>
|
|
|
|
print_iface_handler printed the interface type at the phy number.
|
|
|
|
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>
|
|
|
|
Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
|
|
The merge window for 3.3 is open, so
it will be feature-complete now.
|
|
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>
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
Let user know which capabilities are supported.
|
|
|
|
It's unused and causes errors with older pkg-config.
|
|
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>
|
|
With libnl 3.2, both LIBNL3FOUND and LIBNL3xFOUND
might become true, leading to errors. Disable the
former if the latter is found.
|
|
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>
|
|
This reverts commit 15bc193a926ec67e25de175f7dfe45df8cbd3e9a.
This commit broke compiling against libnl 3.0 which
numerous distributions ship.
|
|
This simplifies the code quite a bit since
we don't need an nl_cache or nl_family.
|
|
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>
|
|
Only bail out if the last character is *not* \0
|
|
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.
|
|
|
|
For now without the data in it.
|
|
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
|
|
|
|
|
|
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.
|
|
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 ...)"
|
|
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>
|
|
|
|
|
|
|
|
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|