openwrt/staging/blogic.git
14 years agoDo not compile staging directory for bt target. Signed-off-by: Bala Shanmugam <sbalas...
Bala Shanmugam [Tue, 19 Oct 2010 08:45:38 +0000 (14:15 +0530)]
Do not compile staging directory for bt target. Signed-off-by: Bala Shanmugam <sbalashanmugam@atheros.com>

14 years agocompat-wireless: make patches apply again
Hauke Mehrtens [Mon, 18 Oct 2010 20:36:55 +0000 (22:36 +0200)]
compat-wireless: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: backport sock_recv_ts_and_drops in compat
Hauke Mehrtens [Mon, 18 Oct 2010 20:36:54 +0000 (22:36 +0200)]
compat-wireless: backport sock_recv_ts_and_drops in compat

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: enable uninstall for staging & atlxx
Walter Goldens [Mon, 18 Oct 2010 18:05:33 +0000 (11:05 -0700)]
compat-wireless: enable uninstall for staging & atlxx

- enable 'make uninstall' for staging - brcm80211, ath6kl and ethernet atlxx
- add atlxx to 'modprobe -l' list

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agocompat-wireless: update Makefile modules
Walter Goldens [Sun, 17 Oct 2010 20:23:00 +0000 (13:23 -0700)]
compat-wireless: update Makefile modules

update "modprobe -l X" list in Makefile

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agocompat-wireless: unload modules list updated
Walter Goldens [Sun, 17 Oct 2010 20:22:57 +0000 (13:22 -0700)]
compat-wireless: unload modules list updated

Added: wl1251, wl1271, iwmc3200wifi, b44 and
the whole orinoco family to wl/unload.sh scripts.

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agocompat-wireless: add driver-select for wl1251 and wl1271
Luis R. Rodriguez [Fri, 15 Oct 2010 18:01:20 +0000 (11:01 -0700)]
compat-wireless: add driver-select for wl1251 and wl1271

The wl12xx drivers were split up into their own directories
so if you were trying to compile wl1251 it wasn't really
happening. Now you can just select wl1251 directly.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: Added ath3k sflash workaround to crap directory
Bala Shanmugam [Sun, 3 Oct 2010 15:00:02 +0000 (20:30 +0530)]
compat-wireless: Added ath3k sflash workaround to crap directory

This patch in crap directory enables btusb to load firmware
to device RAM when it is plugged in.

Reason for this not getting upstream:

It was first rejected without any alternatives suggested. Then
an alternative was finally suggested but too late for integration
upstream.

This is a work around until a new firmware and patch is being worked
on which is acceptable upstream.

For details refer to:

http://lkml.org/lkml/2010/10/5/195

Signed-off-by: Bala Shanmugam <sbalashanmugam@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Fri, 15 Oct 2010 04:06:57 +0000 (21:06 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Fri, 15 Oct 2010 04:06:34 +0000 (21:06 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix patches for new wl1251 changes
Luis R. Rodriguez [Fri, 15 Oct 2010 04:05:28 +0000 (21:05 -0700)]
compat-wireless: fix patches for new wl1251 changes

wl1251 gets its new directory now.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update unload/wlunload scripts
Walter Goldens [Tue, 12 Oct 2010 19:50:35 +0000 (12:50 -0700)]
compat-wireless: update unload/wlunload scripts

Added: carl9170, brcm80211, aht6kl and orinoco to wlunload.sh and unload.sh
Added: atlxx ethernet drivers to unload.sh

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agocompat-wireless: backport kfifo for rt2x00
Hauke Mehrtens [Thu, 7 Oct 2010 21:21:09 +0000 (23:21 +0200)]
compat-wireless: backport kfifo for rt2x00

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: make patch apply again
Hauke Mehrtens [Thu, 7 Oct 2010 21:21:08 +0000 (23:21 +0200)]
compat-wireless: make patch apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove already applied patches
Hauke Mehrtens [Thu, 7 Oct 2010 21:21:07 +0000 (23:21 +0200)]
compat-wireless: remove already applied patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: introduce driver-select group for atlxx
Walter Goldens [Tue, 5 Oct 2010 19:12:38 +0000 (12:12 -0700)]
compat-wireless: introduce driver-select group for atlxx

In this patch:
- fixed a description typo
- changed yellow to purple color in bash as it hurts the eye/hard to read in white background (gnome)
- placed "atl1 atl2 atl1e atl1c" on one line to preserve user space and visibility, this is after all a _wireless_ compat
- introduced "atlxx" group for atlx(x) Ethernet devices in "BLUE" for distinguishability
- sorted all module groups together

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agocompat-wireless: add rx filter carl9170 patch to linux-next-pending/
Luis R. Rodriguez [Fri, 1 Oct 2010 21:36:17 +0000 (14:36 -0700)]
compat-wireless: add rx filter carl9170 patch to linux-next-pending/

This will help with load and memory. This patch seems to not
be merged yet due to a backlog but we want it for testing
purposes of carl9170.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix driver-select for brcm80211
Luis R. Rodriguez [Fri, 1 Oct 2010 18:03:41 +0000 (11:03 -0700)]
compat-wireless: fix driver-select for brcm80211

Enable mac80211 to build

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add driver-select for brcm80211
Luis R. Rodriguez [Fri, 1 Oct 2010 17:58:18 +0000 (10:58 -0700)]
compat-wireless: add driver-select for brcm80211

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: disable staging for most driver-select options
Luis R. Rodriguez [Fri, 1 Oct 2010 17:54:04 +0000 (10:54 -0700)]
compat-wireless: disable staging for most driver-select options

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add key.o to driver-select for ath drivers
Luis R. Rodriguez [Fri, 1 Oct 2010 17:45:11 +0000 (10:45 -0700)]
compat-wireless: add key.o to driver-select for ath drivers

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: replace ar9170 with carl9170
Luis R. Rodriguez [Fri, 1 Oct 2010 17:38:45 +0000 (10:38 -0700)]
compat-wireless: replace ar9170 with carl9170

ar9170 is now obsolete :)

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: Add the pending mac80211 reset work patch
Luis R. Rodriguez [Fri, 1 Oct 2010 17:25:26 +0000 (10:25 -0700)]
compat-wireless: Add the pending mac80211 reset work patch

We add the patch:

mac80211: perform scan cancel in hw reset work

patch to linux-next-pending/ directory because:

On Fri, Oct 01, 2010 at 05:47:53AM -0700, Christian Lamparter wrote:
> Currently, everyone is waiting for:
> "[PATCH 1/6] mac80211: perform scan cancel in hw reset work"
> (hopefully, it fixes the dreaded ieee80211_hw_restart deadlock.)

We need this for testing purposes for carl9170 which may
get done this weekend.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: patch refresh
Luis R. Rodriguez [Fri, 1 Oct 2010 17:18:06 +0000 (10:18 -0700)]
compat-wireless: patch refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix uninstall for compat
Luis R. Rodriguez [Mon, 27 Sep 2010 23:54:04 +0000 (16:54 -0700)]
compat-wireless: fix uninstall for compat

comapt module was not being removed.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix to include net/mac80211.h for pending-stable
Luis R. Rodriguez [Mon, 27 Sep 2010 23:50:40 +0000 (16:50 -0700)]
compat-wireless: fix to include net/mac80211.h for pending-stable

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update code-metrics to reflect extra patches applied
Luis R. Rodriguez [Mon, 27 Sep 2010 23:10:37 +0000 (16:10 -0700)]
compat-wireless: update code-metrics to reflect extra patches applied

This will peg the characters options we used to apply extra
patches to our compat-wireless release to identify the extra
patches applied.

For example with "-s", we will now get:

compat-wireless-v2.6.36-rc5-1-2-g2ac99dc-s

This should be also picked up on the compat module which when loaded
will display the above string. This is useful when troubleshooting
issues and trying to find out what a user is using exactly.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add support for printing stats for pending-stable
Luis R. Rodriguez [Mon, 27 Sep 2010 22:55:18 +0000 (15:55 -0700)]
compat-wireless: add support for printing stats for pending-stable

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix -s usage on generation stable tarballs
Luis R. Rodriguez [Mon, 27 Sep 2010 22:50:32 +0000 (15:50 -0700)]
compat-wireless: fix -s usage on generation stable tarballs

There was a typo, use $1, and then also always use refresh for
generating the tarball.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add support for -s for gen-stable-release.sh
Luis R. Rodriguez [Mon, 27 Sep 2010 22:43:26 +0000 (15:43 -0700)]
compat-wireless: add support for -s for gen-stable-release.sh

This lets us make stable releases with -s and the s pegged to the
release tarball.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add support for generating pending-stable/ fixes
Luis R. Rodriguez [Mon, 27 Sep 2010 21:03:41 +0000 (14:03 -0700)]
compat-wireless: add support for generating pending-stable/ fixes

Often right before the merge window we get a block on non
oops/regression fixes for stable fixes. Some stable fixes
often get propagated afterwards during the extraversion
maintenance of the kernels. Right before the merge window
circa rc4 and rc5 subsystem maintainers get pegged if they
throw in non oops/regression fixes for Linus or their
respective upstream maintainer. While this makes sense
for tree management and stable release considerations we
still need to get users some stable patches propagated.
We can achieve this in compat-wireless with the -s option to
./scripts/admin-update.sh which this patch implements. You
will need to use a stable branch of compat-wireless, point
it to a stable git tree, and have present a linux-next git
tree. The -s option will get your $(git describe --abbrev=0)
from your stable tree and then get all pending fixes via:

git format-patch --grep="stable@kernel.org" \
-o pending-stable/ $(git describe --abbrev=0)..HEAD $WSTABLE

Where WSTABLE is:

export WSTABLE="
        net/wireless/
        net/wireless/
        net/mac80211/
        net/rfkill/
        drivers/net/wireless/
        net/bluetooth/
        drivers/bluetooth/
        drivers/net/atl1c/
        drivers/net/atl1e/
        drivers/net/atlx/
        include/linux/nl80211.h
        include/linux/rfkill.h
        include/net/cfg80211.h
        include/net/regulatory.h
        include/net/cfg80211.h"

What this does is get us all pending stable fixes on linux-next.git
not yet merged onto Linus' tree. This lets us hurry in stable fixes
for users for stable releases of compat-wireless based on the RC
series. This accelerates the pace of fix propagation right before
the merge window.

To generate and apply your own stable fixes to your stable compa-wireless
releases you will then use:

./scripts/admin-updates.sh -s

The -s both generates new pending stable fix patches applies the
patches from the pending-stable/ directory. I'm up to support stable
releases with pending-stable/ applied, not sure if its worth it to
have two releases, one with it and one without buf if there are
considerations for this please let me know and I'll just make two
releases. For now I'll make the releases with the stable patches
merged with the requirement they must at least be on the linux-next.git
tree to promote upstreamabilty (is that a word?).

If you want to review the pending-stable/ picked patches check out the
pending-stable/ directory on the respective stable compat-wireless release.
Note that for non-stable releases you can also use the linux-next-cherry-picks/
directory, that gives distributions/vendors the flexibility to cherry pick out
non-stable fixes from linux-next.git for a stable release. For the big
fat warning as why this should be avoided check the README on that directory.

The pending-stable/ directory may also help the stable team maintainers on
their crusade when applying patches onto stable, it also means we will
need respective backports at least to Linus' tree for each stable patch.
Right now I get 23 pending stable patches based on today's linux-next.git
and Linus' v2.6.36-rc5 tag, which *should* in theory get propagated to
the first extraversion release of the kernel onto v2.6.36.1 (we'll see!).

Cc: Greg KH <greg@kroah.com>
Cc: linux-kernel@vger.kernel.org
Cc: stable-review@linux.kernel.org
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Mon, 27 Sep 2010 18:44:48 +0000 (11:44 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Mon, 27 Sep 2010 18:43:42 +0000 (11:43 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update broadcom staging Makefile
Luis R. Rodriguez [Mon, 27 Sep 2010 18:42:32 +0000 (11:42 -0700)]
compat-wireless: update broadcom staging Makefile

The upstream Makefile has changed to split up each section into new
lines.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update defconfigs/atheros-debug.mk
Luis R. Rodriguez [Thu, 23 Sep 2010 18:24:28 +0000 (11:24 -0700)]
compat-wireless: update defconfigs/atheros-debug.mk

Syncs with the latest config.mk and adds the ath9k RC
as default, and adds carl9170 with some debug options.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add CONFIG_ATH9K_RATE_CONTROL=y
Luis R. Rodriguez [Thu, 23 Sep 2010 18:18:59 +0000 (11:18 -0700)]
compat-wireless: add CONFIG_ATH9K_RATE_CONTROL=y

Disable this to get minstrel as default, we leave the ath9k
rate control algorithm as the default for now as that is also
default upstream on the kernel. We will move this to minstrel
as default once we get minstrel properly tested and blessed by
our systems engineering team. CCK rates also need to be used
for long range considerations.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Thu, 23 Sep 2010 18:15:32 +0000 (11:15 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Thu, 23 Sep 2010 18:15:14 +0000 (11:15 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix wl12xx driver
Hauke Mehrtens [Tue, 21 Sep 2010 20:26:31 +0000 (22:26 +0200)]
compat-wireless: fix wl12xx driver

This deactivate the wl1271_sdio driver, because it needs
wl12xx_platform_data.c directly compiled into the kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wirelsss: refresh patches
Hauke Mehrtens [Tue, 21 Sep 2010 20:26:30 +0000 (22:26 +0200)]
compat-wirelsss: refresh patches

33-autoconf.patch is removed because it is not needed any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: "backport" pcmcia api changes.
Hauke Mehrtens [Mon, 20 Sep 2010 19:30:44 +0000 (21:30 +0200)]
compat-wireless: "backport" pcmcia api changes.

The PCMCIA API changed again.
This patch was only compile tested, beacuse I do not have devices to
test this.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix unresolved symbols with old kernels
Hauke Mehrtens [Sun, 19 Sep 2010 17:49:13 +0000 (10:49 -0700)]
compat-wireless: fix unresolved symbols with old kernels

CONFIG_WEXT_PRIV and CONFIG_WEXT_SPY were introduced with kernel 2.6.33
and are not available in older kernel versions. We should just depend on
them for recent kernel versions, but this feature is not implemented in
compat-wireless yet. If compat-wireless was commpield against kernel <
2.6.29 with e.g. CONFIG_IPW2200=m then libipw was not build in compat-
wireless but ipw2200 was build, because the config options set in the
kernel config were used. For now we build ipw2*00 every time
CONFIG_WIRELESS_EXT is enabled. This could cause some problems with
kernel > 2.6.32 and CONFIG_WEXT_PRIV=n but there are no such
distribution kernel available and we haven't got an bug report because
of this problem although is problem existed for a long time.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wirelsss: add carl9170
Hauke Mehrtens [Sun, 19 Sep 2010 17:49:12 +0000 (10:49 -0700)]
compat-wirelsss: add carl9170

This patch adds support for carl9170.

CC: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: make patches apply again
Hauke Mehrtens [Sun, 19 Sep 2010 17:46:45 +0000 (10:46 -0700)]
compat-wireless: make patches apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: propagate config.mk changes to atheros defconfig
Luis R. Rodriguez [Sat, 18 Sep 2010 21:42:08 +0000 (14:42 -0700)]
compat-wireless: propagate config.mk changes to atheros defconfig

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: Select minstrel_ht as default rc algo
Helmut Schaa [Sat, 18 Sep 2010 09:56:06 +0000 (02:56 -0700)]
compat-wireless: Select minstrel_ht as default rc algo

Wireless-testing is using minstrel_ht already as default rc algorithm.
Do the same im compat-wireless. Setting CONFIG_MAC80211_RC_DEFAULT
manually is needed in compat-wireless since it doesn't have the Kconfig
magic to automagically select minstrel_ht if it is compiled in.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Wed, 15 Sep 2010 22:05:50 +0000 (15:05 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Wed, 15 Sep 2010 22:05:29 +0000 (15:05 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: make patch apply again.
Hauke Mehrtens [Wed, 15 Sep 2010 20:43:34 +0000 (13:43 -0700)]
compat-wireless: make patch apply again.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: make patch apply again.
Hauke Mehrtens [Wed, 15 Sep 2010 20:43:33 +0000 (13:43 -0700)]
compat-wireless: make patch apply again.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: update the atheros defconfigs/atheros-debug.mk
Luis R. Rodriguez [Wed, 15 Sep 2010 21:53:24 +0000 (14:53 -0700)]
compat-wireless: update the atheros defconfigs/atheros-debug.mk

You can use this to replace the config.mk to enable debugging
attributes. Developers should use this.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix scripts/driver-select for ath9k
Senthil Balasubramanian [Mon, 13 Sep 2010 19:55:03 +0000 (12:55 -0700)]
compat-wireless: fix scripts/driver-select for ath9k

As compat wireless now supports 2.6.24 or later, we don't need
to apply this special patch for ath9k.

This addresses a script error when ath9k alone is selected.

Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
14 years agocompat-wireless: add brcm80211 driver
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:33 +0000 (18:18 +0200)]
compat-wireless: add brcm80211 driver

This driver was compile tested on kernel 2.6.29 to 2.6.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove special handling for CONFIG_CFG80211_WEXT
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:32 +0000 (18:18 +0200)]
compat-wireless: remove special handling for CONFIG_CFG80211_WEXT

The special handling for CONFIG_CFG80211_WEXT is not needed any more,
because it is only activated when CONFIG_WIRELESS_EXT is also set.
Enabling this condition only for kernel <= 2.6.32 was wrong. In compat-
wireless we are able to deactivate CONFIG_WIRELESS_EXT for every
kernel. For activating it we need CONFIG_WIRELESS_EXT on every kernel.
If kernel <= 2.6.31 was build with cfg80211 support CONFIG_WIRELESS_EXT
was also selected, so it was activated in most cases for that kernel
versions. But it is possible to build compat-wireless without having
cfg80211 while building the kernel and that caused problems in the past.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: Add warning if wext is deactivated
Hauke Mehrtens [Sun, 12 Sep 2010 21:11:37 +0000 (23:11 +0200)]
compat-wireless: Add warning if wext is deactivated

Add a build warning if CONFIG_CFG80211_WEXT can not be activated.

wireless_handlers is only avaliable if the kernel was build with
CONFIG_WIRELESS_EXT. Add a kernel log warning if CONFIG_CFG80211_WEXT
is activated but we do not have CONFIG_WIRELESS_EXT, so we ware unable
to attach the wireless_handlers for wext.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
v2: use printk_once

14 years agocompat-wireless: add conditions form config into compat_autoconf.h
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:30 +0000 (09:18 -0700)]
compat-wireless: add conditions form config into compat_autoconf.h

We do not have to use "ifneq ($(CONFIG_...),)", "ifdef CONFIG_..." will
also work. It does not matter if it was set to m or y.
Now this can be added into compat_autoconf.h without changing the script.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: build if kernel does not have mac80211
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:29 +0000 (09:18 -0700)]
compat-wireless: build if kernel does not have mac80211

In kernel 2.6.31 the attributes do_not_encrypt and requeue were removed
from struct sk_buff so we do not need mac80211 to be build while the
kernel was build for nwer kernels.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix for CONFIG_WIRELESS_EXT=n
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:28 +0000 (09:18 -0700)]
compat-wireless: fix for CONFIG_WIRELESS_EXT=n

Some modules need CONFIG_WIRELESS_EXT to be set. They should not be
build if CONFIG_WIRELESS_EXT was not set.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: make atk6kl build with older kernels
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:27 +0000 (09:18 -0700)]
compat-wireless: make atk6kl build with older kernels

Now it will be build for kernel < 2.6.28. CONFIG_STAGING was introduced
with that kernel version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: handle depending on something build as module
Hauke Mehrtens [Sat, 11 Sep 2010 16:18:26 +0000 (09:18 -0700)]
compat-wireless: handle depending on something build as module

If something was build as module in the kernel it is named
CONFIG_..._MODULE in autoconf.h. We have to check for bouth the name
with and wothout _MODULE at the end.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Thu, 2 Sep 2010 15:09:00 +0000 (08:09 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Thu, 2 Sep 2010 15:08:35 +0000 (08:08 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix patch style
Hauke Mehrtens [Thu, 2 Sep 2010 13:32:57 +0000 (06:32 -0700)]
compat-wireless: fix patch style

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix generation of compat_autoconf.h
Hauke Mehrtens [Thu, 2 Sep 2010 13:32:56 +0000 (06:32 -0700)]
compat-wireless: fix generation of compat_autoconf.h

The endif of an ifdef or ifndef needs and comment so that gen-compat-
autoconf.sh knows that it should put it into the compat_autoconf.h. If
it is missing compat-wireless will not build.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: replace name CONFIG_IWLWIFI
Hauke Mehrtens [Thu, 2 Sep 2010 13:32:55 +0000 (06:32 -0700)]
compat-wireless: replace name CONFIG_IWLWIFI

In commit 8c8113109f6916c4926413aa3416cefffaa5d9b8 one CONFIG_IWLWIFI
was not renamed to CONFIG_COMPAT_IWLWIFI.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: convert ifndef for compat_autoconf.h
Hauke Mehrtens [Thu, 2 Sep 2010 13:32:54 +0000 (06:32 -0700)]
compat-wireless: convert ifndef for compat_autoconf.h

Only ifdef CONFIG_COMPAT_KERNEL_ was converted to something checking the kernel version. Now also ifndef is converted to the correct check.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: enable ath6kl only for >= 2.6.32
Luis R. Rodriguez [Tue, 31 Aug 2010 02:41:04 +0000 (19:41 -0700)]
compat-wireless: enable ath6kl only for >= 2.6.32

For now.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: enable ath6kl from being included
Luis R. Rodriguez [Tue, 31 Aug 2010 01:59:44 +0000 (18:59 -0700)]
compat-wireless: enable ath6kl from being included

ath6kl is not yet upstream but is on its way. For now just
display and copy ath6kl if its present on linux-next.git

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix compilation on iface.c
Luis R. Rodriguez [Mon, 30 Aug 2010 21:46:36 +0000 (14:46 -0700)]
compat-wireless: fix compilation on iface.c

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Mon, 30 Aug 2010 21:01:30 +0000 (14:01 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix patches/25-multicast-list_head.patch
Luis R. Rodriguez [Mon, 30 Aug 2010 20:55:42 +0000 (13:55 -0700)]
compat-wireless: fix patches/25-multicast-list_head.patch

This required some manual context fix.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix multiqueue patches
Luis R. Rodriguez [Mon, 30 Aug 2010 20:51:50 +0000 (13:51 -0700)]
compat-wireless: fix multiqueue patches

This patch changed the MQ helpers used, just adjust
the context manually.

Author: Johannes Berg <johannes.berg@intel.com>
Date:   Fri Aug 27 13:36:49 2010 +0200

    mac80211: use subqueue helpers

    There are subqueue helpers so that we don't
    need to get the TX queue and then wake/stop
    it, use those helpers.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add support for kernel 2.6.24
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:53 +0000 (11:40 -0700)]
compat-wireless: add support for kernel 2.6.24

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: add ifdefs into compat_autoconf.h
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:52 +0000 (11:40 -0700)]
compat-wireless: add ifdefs into compat_autoconf.h

When using ifdef or ifndef in config.mk these conditions are now also
written into compat_autoconf.h. This replaces some special handling in
gen-compat-autoconf.sh. This was needed because CONFIG_RT2X00_LIB_LEDS
should only be selected for kernel > 2.6.24.
The script adds ifdefs, ifndefs else and endif into the header file. It
adds endif and else only if it is followed by " #CONFIG_" This is
needed because we do not support something like "ifneq
($(CONFIG_CRC7),)" or "ifeq ($(wildcard $(KLIB_BUILD)/.config),)" for
now.
Now egrep is needed because grep does not support the needed regular
expressions.
The spaces in the egrep part have to be replaced by some other
character, a + is used here.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: rename CONFIG_IWLWIFI config symbol
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:51 +0000 (11:40 -0700)]
compat-wireless: rename CONFIG_IWLWIFI config symbol

In kernel 2.6.24 CONFIG_IWLWIFI was a bool config symbol and not a
tristate one. In that kernel it was used for showing the menu option for
the Intel driver and not for selection the module it is used for today.
In kernel configurations for version 2.6.24 it is set so y and not to m.
As we do not overwrite some value selected in the kernel config it
will cause problems when we build some parts of the Intel driver in
compat-wireless directly into the kernel.
Now we use an other name for this config symbol to work around the
problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: multiple changes to config file
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:50 +0000 (11:40 -0700)]
compat-wireless: multiple changes to config file

 * deactivate SPI drivers for kernel < 2.6.25 because linux/gpio.h
is missing
 *  CONFIG_WL1251 and CONFIG_WL1271 both need CRC7
 *  CONFIG_RT2X00_LIB_LEDS does not work for kernel < 2.6.25
because of missing blink_set

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove linux/gpio.h include
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:49 +0000 (11:40 -0700)]
compat-wireless: remove linux/gpio.h include

Kernel 2.6.24 does not have this header file. No method provided by
gpio.h is used in wl12*1_boot.c so this include looks unneeded to me.
This should probably also go into mainline.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix patch stile.
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:48 +0000 (11:40 -0700)]
compat-wireless: fix patch stile.

This should not change any functionality but the patches are looking
better with theses changes.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: do not use needed_headroom
Hauke Mehrtens [Fri, 27 Aug 2010 18:40:47 +0000 (11:40 -0700)]
compat-wireless: do not use needed_headroom

needed_headroom was introduced in kernel 2.6.26.
Resize hard_header_len instead as it was done before using
needed_headroom.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix enabling of 2.6.24
Luis R. Rodriguez [Wed, 25 Aug 2010 23:52:11 +0000 (16:52 -0700)]
compat-wireless: fix enabling of 2.6.24

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix unintended merge of changes
Luis R. Rodriguez [Wed, 25 Aug 2010 23:48:28 +0000 (16:48 -0700)]
compat-wireless: fix unintended merge of changes

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix driver select for ath9k
Luis R. Rodriguez [Wed, 25 Aug 2010 23:36:59 +0000 (16:36 -0700)]
compat-wireless: fix driver select for ath9k

Select enabling only down to 2.6.24 for ath9k, 2.6.23
requires a little more trivial work.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: enable compilation of ath9k on >= 2.6.24
Luis R. Rodriguez [Wed, 25 Aug 2010 23:10:22 +0000 (16:10 -0700)]
compat-wireless: enable compilation of ath9k on >= 2.6.24

Re-enabling 2.6.23 requires a little bit of more work:

mcgrof@tux ~/devel/compat-wireless-2.6 (git::linux-2.6.36.y)$ make V=1 KLIB=/lib/modules/2.6.23.17-dirty/build KLIB_BUILD=/lib/modules/2.6.23.17-dirty/build
make -C /lib/modules/2.6.23.17-dirty/build M=/home/mcgrof/devel/compat-wireless-2.6 modules
make[1]: Entering directory `/home/mcgrof/linux-2.6-allstable'
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo "  ERROR: Kernel configuration is invalid."; \
echo "         include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo "         Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /home/mcgrof/devel/compat-wireless-2.6/.tmp_versions
rm -f /home/mcgrof/devel/compat-wireless-2.6/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/mcgrof/devel/compat-wireless-2.6
make -f scripts/Makefile.build obj=/home/mcgrof/devel/compat-wireless-2.6/compat
  gcc -Wp,-MD,/home/mcgrof/devel/compat-wireless-2.6/compat/.main.o.d -I/home/mcgrof/devel/compat-wireless-2.6/include/ -include /home/mcgrof/devel/compat-wireless-2.6/include/linux/compat-2.6.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2  -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args   -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2  -mtune=generic -m64 -mno-red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-outgoing-args   -fomit-frame-pointer  -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign   -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(main)"  -D"KBUILD_MODNAME=KBUILD_STR(compat)" -c -o /home/mcgrof/devel/compat-wireless-2.6/compat/main.o /home/mcgrof/devel/compat-wireless-2.6/compat/main.c
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:8:2: error: #error "You need a COMPAT_BASE_TREE"
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:12:2: error: #error "You need a COMPAT_BASE_TREE_VERSION"
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:16:2: error: #error "You need a COMPAT_VERSION"
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:19: error: ‘COMPAT_BASE_TREE’ undeclared here (not in a function)
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:20: error: ‘COMPAT_BASE_TREE_VERSION’ undeclared here (not in a function)
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:21: error: ‘COMPAT_VERSION’ undeclared here (not in a function)
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c: In function ‘compat_init’:
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:41: error: expected ‘)’ before ‘COMPAT_PROJECT’
/home/mcgrof/devel/compat-wireless-2.6/compat/main.c:45: error: expected ‘)’ before ‘COMPAT_BASE_TREE’
make[3]: *** [/home/mcgrof/devel/compat-wireless-2.6/compat/main.o] Error 1
make[2]: *** [/home/mcgrof/devel/compat-wireless-2.6/compat] Error 2
make[1]: *** [_module_/home/mcgrof/devel/compat-wireless-2.6] Error 2
make[1]: Leaving directory `/home/mcgrof/linux-2.6-allstable'
make: *** [modules] Error 2

So we need to figure out why this:

CFLAGS += \
        -DCOMPAT_BASE_TREE="\"$(shell cat compat_base_tree)\"" \
        -DCOMPAT_BASE_TREE_VERSION="\"$(shell cat compat_base_tree_version)\"" \
        -DCOMPAT_PROJECT="\"Compat-wireless\"" \
        -DCOMPAT_VERSION="\"$(shell cat compat_version)\""

is not being picked up on 2.6.23 and/or work our way around it.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Tue, 24 Aug 2010 00:08:37 +0000 (17:08 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Tue, 24 Aug 2010 00:08:08 +0000 (17:08 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove the v from the release name
Luis R. Rodriguez [Mon, 23 Aug 2010 23:59:19 +0000 (16:59 -0700)]
compat-wireless: remove the v from the release name

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: make gen-stable-release.sh use new release number for dirs
Luis R. Rodriguez [Tue, 17 Aug 2010 23:37:39 +0000 (16:37 -0700)]
compat-wireless: make gen-stable-release.sh use new release number for dirs

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix hidp_output_raw_report
Hauke Mehrtens [Tue, 17 Aug 2010 18:31:09 +0000 (20:31 +0200)]
compat-wireless: fix hidp_output_raw_report

The report_type parameter was added with kenrel 2.6.34

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: make compat-2.6.37.c build
Hauke Mehrtens [Tue, 17 Aug 2010 18:31:08 +0000 (20:31 +0200)]
compat-wireless: make compat-2.6.37.c build

This is needed to set CONFIG_COMPAT_KERNEL_37

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: deactivate namespace
Hauke Mehrtens [Tue, 17 Aug 2010 18:31:07 +0000 (20:31 +0200)]
compat-wireless: deactivate namespace

Namespace support was introduced with kernel 2.6.35 in struct class.
Deactivate it for older kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Mon, 16 Aug 2010 23:30:20 +0000 (16:30 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Mon, 16 Aug 2010 23:29:52 +0000 (16:29 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: make patches apply again.
Hauke Mehrtens [Sun, 15 Aug 2010 12:28:10 +0000 (14:28 +0200)]
compat-wireless: make patches apply again.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: activate more bluetooth drivers
Hauke Mehrtens [Sat, 7 Aug 2010 13:34:44 +0000 (15:34 +0200)]
compat-wireless: activate more bluetooth drivers

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: backport pcmcia api changes
Hauke Mehrtens [Sat, 7 Aug 2010 13:34:43 +0000 (15:34 +0200)]
compat-wireless: backport pcmcia api changes

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: use new br_port_exists() from compat.git
Luis R. Rodriguez [Fri, 6 Aug 2010 23:15:57 +0000 (16:15 -0700)]
compat-wireless: use new br_port_exists() from compat.git

This lets us simplify the way we backport the new bridge port
changes on the bridge code. We can nuke this new patch file
if we later get br_port_exists() accepted to be used on drivers.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: more PCMCIA backporting
Kshitij Kulshreshtha [Wed, 4 Aug 2010 14:18:36 +0000 (16:18 +0200)]
compat-wireless: more PCMCIA backporting

to fix build, these changes are leftovers from commit

    commit dedb69815e9608360249e62a794e3dea6a867ab8
    Author: Luis R. Rodriguez <lrodriguez@atheros.com>
    Date:   Tue Aug 3 13:30:01 2010 -0700

        compat-wireless: backport and fix new PCMCIA changes

Signed-off-by: Kshitij Kulshreshtha <kkhere.geo@gmail.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Tue, 3 Aug 2010 20:32:07 +0000 (13:32 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Tue, 3 Aug 2010 20:31:39 +0000 (13:31 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: backport and fix new PCMCIA changes
Luis R. Rodriguez [Tue, 3 Aug 2010 20:30:01 +0000 (13:30 -0700)]
compat-wireless: backport and fix new PCMCIA changes

The arguments have been mucked around with for 2.6.36. Other
changes existed on 2.6.35.. and older kernels requires some other
format.. To make the differences between kernels easier to read
and patch up we split them up between kernel revisions completley.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>