As compat includes linux/device.h well before iwlwifi, the
definitions from there are used without DEBUG, but iwlwifi
defines DEBUG to get debug output. Use dev_printk instead
of dev_dbg to get debugging back.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: fix patches/57-iwlwifi-debug-fix.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: refresh patches for next-20120703

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: drop patches/57-iwlwifi-debug-fix.patch for now

Johannes indicated that the patch to change it *from*
dev_err *to* dev_dbg is only in my iwlwifi-next tree now.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: remove already applied 802.11ad patches

3 patches have been merged so far, remove them from the
linux-next-pending queue.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: add pending 802.11ad pending patches

The only two remaining 802.11ad patches are related
to bit rates. I however did oppose the first patch
but throwing it in here for testing, and as there
is no other alternative yet.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: add Gabor's pendign patches for AR9550

These patches were posted by Gabor for ath9k. Below are
details extracted from his cover letter e-mail.

	The patch-set adds initial support for the AR9550
	wireless MAC into ath9k. This wireless MAC can be
	found in the Qualcomm Atheros QCA955X SoCs. It is
	a 3x3 chip and it supports both 2.4GHz and 5Ghz.

	Gabor Juhos (20):
	  ath9k: define DEVID for QCA955x
	  ath9k: define MAC version for AR9550
	  ath9k: set MAC version for AR9550
	  ath9k: add platform_device_id for AR9550
	  ath9k: add BB name string for AR9550
	  ath9k: clear pciexpress flag for AR9550
	  ath9k: enable TX/RX data byte swap for AR9550
	  ath9k: add initvals for AR9550
	  ath9k: add mode register initialization code for AR9550
	  ath9k: read spur frequency information from eeprom for AR9550
	  ath9k: fix XPABIASLEVEL settings for AR9550
	  ath9k: fix antenna control configuration for AR9550
	  ath9k: fix PAPRD settings for AR9550
	  ath9k: fix RF channel frequency configuration for AR9550
	  ath9k: disable SYNC_HOST1_FATAL interrupts for AR9550
	  ath9k: skip internal regulator configuration for AR9550
	  ath9k: fix PLL initialization for AR9550
	  ath9k: enable PLL workaround for AR9550
	  ath9k: set 4ADDRESS bit in RX filter for AR9550
	  ath9k: enable support for AR9550

	 drivers/net/wireless/ath/ath9k/ahb.c               |    4 +
	 drivers/net/wireless/ath/ath9k/ar9003_eeprom.c     |    7 +-
	 drivers/net/wireless/ath/ath9k/ar9003_hw.c         |   87 ++-
	 drivers/net/wireless/ath/ath9k/ar9003_paprd.c      |    2 +-
	 drivers/net/wireless/ath/ath9k/ar9003_phy.c        |   72 +-
	 drivers/net/wireless/ath/ath9k/ar9003_phy.h        |    6 +-
	 .../net/wireless/ath/ath9k/ar955x_1p0_initvals.h   | 1284 ++++++++++++++++++++
	 drivers/net/wireless/ath/ath9k/hw.c                |   40 +-
	 drivers/net/wireless/ath/ath9k/hw.h                |    2 +
	 drivers/net/wireless/ath/ath9k/mac.c               |    2 +-
	 drivers/net/wireless/ath/ath9k/mac.h               |    1 +
	 drivers/net/wireless/ath/ath9k/main.c              |    3 +-
	 drivers/net/wireless/ath/ath9k/recv.c              |    3 +
	 drivers/net/wireless/ath/ath9k/reg.h               |    4 +
	 14 files changed, 1492 insertions(+), 25 deletions(-)
	 create mode 100644 drivers/net/wireless/ath/ath9k/ar955x_1p0_initvals.h

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: copy over net/wireless/ and net/mac80211 Kconfig

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: add certification onus / base station pending patches

These are posted on the mailing list. Excerpt from the cover letter:

===

This is a second series on the wireless expert idea patches
with one additional patch added. As discussed the wireless expert
name really was not doing justice to the intent behind what we
wanted to convey and allow. The CONFIG_CFG80211_CERTIFICATION_ONUS
is what folks seemed to agree on, I've gone ahead and added some
lanaguage which I think represents the intent behind the option
clearly.

I've also added an extra patch which adds a new type of regulatory
hint which actually makes use of the new kernel configuration option
CONFIG_CFG80211_CERTIFICATION_ONUS. In this case the option is designed
to allow userspace to classify userspace regulatory hints either as
coming from a user or a cellular base station. If devices have been
tested with such a feature the driver could be annotated as such, this
typically may require a set of testing / perhaps some communication to
the firmware.

Open solutions obviously allow users to hack up their own code and
send random data to the kernel, however the intent behind the new
kernel option CONFIG_CFG80211_CERTIFICATION_ONUS is to allow a new
type of hint which we *do* want to treat differently in kernel space
and drivers. Linux distribtuions / system integrators can use this
new regulatory hint by classifying the regulatory hint using a new
attribute. Exactly how userspace propagates the cellular base station
hint to the kernel is outside the exact scope of this series, however,
I suspect userspace cell base station models could end up using dbus
signals to trigger an event to signal the respective regulatory hint.
Using something like geoclue would make sense.

An interesting side effect of supporting this type of new regulatory
hint is addressing which type of hints takes precedence: do we trust
the cell base station hint over an Access Point's country IE? In this
series that is what we do, we prefer the cell base station hint over
other hints mainly to also simplify the implementation and design.
This also has implications with as to what gets applied to the core
and to other drivers. For example the core will always trust the
cell base station hint if CONFIG_CFG80211_CERTIFICATION_ONUS was
enabled *but* a driver may wish to want to ignore these type of
hints. In such case then the core, with a cell base station hint
present, would not be passing along country IE hints. This soft of
corner case must be considered.

We must also consider what we do upon suspend / disconnect. We follow
the tradition of the existing implementation of how we handle
disconnect / suspend -- we reset the regulatory core to its default,
just as if we had booted a device for the first time. We do this given
that possible scenerio that you got last a cell base station hint
in Japan but resume the device in the US, in such cases you could
not initiate radiation on channel 13, for example.

The way this is implemented however is to disable this feature unless
both CONFIG_CFG80211_CERTIFICATION_ONUS *and* the driver explicitly
enable this feature. As such regressions should only be found by
those users using the new feature and willing to participate on
the development of the feature / idea or the cell base station
regulatory hint.

Luis R. Rodriguez (4):
  cfg80211: add CONFIG_CFG80211_CERTIFICATION_ONUS
  ath5k: replace modparam_all_channels with CONFIG_ATH5K_TEST_CHANNELS
  ath9k: make CONFIG_ATH9K_DFS_CERTIFIED depend on
    CFG80211_CERTIFICATION_ONUS
  cfg80211: add cellular base station regulatory hint support

 drivers/net/wireless/ath/ath5k/Kconfig |    8 +++
 drivers/net/wireless/ath/ath5k/base.c  |   17 +++---
 drivers/net/wireless/ath/ath9k/Kconfig |    2 +-
 include/linux/nl80211.h                |   28 ++++++++++
 include/net/regulatory.h               |    4 ++
 net/wireless/Kconfig                   |   21 ++++++++
 net/wireless/nl80211.c                 |   15 +++++-
 net/wireless/reg.c                     |   88 +++++++++++++++++++++++++++++---
 net/wireless/reg.h                     |    4 +-
 9 files changed, 171 insertions(+), 16 deletions(-)

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: Make target/compat branch check optional

The safety check to ensure that the target kernel and the
local compat-wireless branch are the same can be adjusted a
bit to allow users to generate stable releases from a temporary
branch.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: fix patches/55-iwlwifi-msg-trace-fix.patch

The dev_err() was moved to deb_dbg() in this patch upstream:

commit 346c265a48169d73a69c88ce9d6b65e6bb3b1f20
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Thu Jun 28 18:45:38 2012 +0200

    iwlwifi: fix debug message level

    Debug messages should be printed using dev_dbg() not
    dev_err() which requires DEBUG to be defined.

    Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
As compat includes linux/device.h well before iwlwifi, the
definitions from there are used without DEBUG, but iwlwifi
defines DEBUG to get debug output. Use dev_printk instead
of dev_dbg to get debugging back.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: refresh patches for next-20120709

Synchs with next-20120709

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: remove 802.11ad linux-next-pending patches

These are now merged as of next-20120709

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: remove linux-next-pending QCA955x support

This is now merged as of next-20120709

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: remove cfg80211 certification onus pending patches

A new iteration was sent, I'll update that next.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: add new v3 of cfg80211 onus patches

These are not yet merged.

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat: config.mk - add wlcore/wl18xx

Signed-off-by: Eliad Peller <eliad@wizery.com>
compat: update scripts to support new wl12xx/wl18xx drivers

Signed-off-by: Eliad Peller <eliad@wizery.com>
update patches