iw: sync frequency to channel mapping with kernel

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>
Don't get iw version from git if there is no .git/

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 ).
iw: add support for 5 and 10 MHz channels in IBSS mode

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>
update nl80211.h
iw: Use NL80211_FREQUENCY_ATTR_NO_IR channel attribute

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>
version 3.13

Seems like I skipped version 3.12, and we already have
a bit more than kernel 3.13 will have, but hey.
info: print something for T-DLS support
update nl80211.h to kernel 3.14 version
listen to vendor events
update command list
iw: add VHT MCS/NSS set support to set bitrates

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>
version 3.14
update nl80211.h
iw: add sgi/lgi support to set bitrates

Add possiblity to force SGI/LGI.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
print command name for unknown events
fix RX & TX Antenna Pattern Consistency in VHT capabilities

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
iw: add support to set/get retry limit

Show the retry limit in phy details and also configure the
retry limit.

Signed-off-by: Ujjal Roy <royujjal@gmail.com>
iw: embrace the Developer Certificate of Origin for contributions

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>
wowlan: don't require pattern offset

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>
update nl80211.h to 3.15 version

Signed-off-by: Johannes Berg <johannes.berg@intel.com>