openwrt/staging/blogic.git
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>
14 years agocompat-wireless: copy headers in include/pcmcia from compat
Kshitij Kulshreshtha [Sun, 1 Aug 2010 22:02:53 +0000 (00:02 +0200)]
compat-wireless: copy headers in include/pcmcia from compat

this is needed after the removal of pcmcia/cs_types.h in v2.6.36

Signed-off-by: Kshitij Kulshreshtha <kshitij@math.hu-berlin.de>
14 years agocompat-wireless: allow compilation of compat-2.6.35.c from compat
Kshitij Kulshreshtha [Sun, 1 Aug 2010 22:02:52 +0000 (00:02 +0200)]
compat-wireless: allow compilation of compat-2.6.35.c from compat

Signed-off-by: Kshitij Kulshreshtha <kshitij@math.hu-berlin.de>
14 years agocompat-wireless: refresh patch
Hauke Mehrtens [Wed, 21 Jul 2010 19:27:14 +0000 (21:27 +0200)]
compat-wireless: refresh patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh patch
Hauke Mehrtens [Thu, 15 Jul 2010 18:50:54 +0000 (20:50 +0200)]
compat-wireless: refresh patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: backport threaded-irq for rt2x00
Hauke Mehrtens [Wed, 14 Jul 2010 20:49:58 +0000 (22:49 +0200)]
compat-wireless: backport threaded-irq for rt2x00

This backport was done like for the b43 driver. This was just build tested.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompta-wireless: update unload script
Luis R. Rodriguez [Wed, 14 Jul 2010 01:23:27 +0000 (18:23 -0700)]
compta-wireless: update unload script

This wasn't removing the ath9k_hw module, and ath9k_htc.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: backport sk_add_backlog() calls through a patch
Luis R. Rodriguez [Tue, 13 Jul 2010 22:32:38 +0000 (15:32 -0700)]
compat-wireless: backport sk_add_backlog() calls through a patch

v2.6.34-rc2~48 got 8eae939f net: add limit for socket backlog
This adds sk_add_backlog_limitted() which makes the backlog
have a size, and therefore adding an skb to the backlog can
fail, a later patch changed all non-limitted calls to use the
limitted caller via a3a858ff. The older kernels don't have a
size and as such always are successfull when adding to the
backlog.

An overload is possible but complex in C so just backport this
via a patch. This fixes this compile issue with compat-wireless
when on kernels older than 2.6.34:

 CC [M]  /home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/bluetooth/l2cap.o
/home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/bluetooth/l2cap.c: In function 'l2cap_data_channel':
/home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/bluetooth/l2cap.c:4352: error: void value not ignored as it ought to be
make[4]: *** [/home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/bluetooth/l2cap.o] Error 1
make[3]: *** [/home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/bluetooth] Error 2
make[2]: *** [_module_/home/philipp/kernel/build_i586/compat-wireless-2010-07-12] Error 2
make[2]: Leaving directory `/home/philipp/kernel/build_i586/linux-2.6.27.48-astlinux'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/philipp/kernel/build_i586/compat-wireless-2010-07-12'
make: *** [/home/philipp/kernel/build_i586/compat-wireless-2010-07-12/net/wireless/lib80211.ko] Error 2

Reported-by: "Philip A. Prindeville" <philipp_subx@redfish-solutions.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Tue, 13 Jul 2010 21:07:23 +0000 (14:07 -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, 13 Jul 2010 21:06:43 +0000 (14:06 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: patch refresh
Luis R. Rodriguez [Mon, 12 Jul 2010 15:44:18 +0000 (08:44 -0700)]
compat-wireless: patch refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix build of ath5k for CONFIG_PM_SLEEP=n
Hauke Mehrtens [Sun, 11 Jul 2010 20:23:11 +0000 (22:23 +0200)]
compat-wireless: fix build of ath5k for CONFIG_PM_SLEEP=n

suspend and resume are activated in ath5k if CONFIG_PM_SLEEP is set and
not if just CONFIG_PM is set.

This should fix the problems reported by Philip Prindeville.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix build problems
Hauke Mehrtens [Thu, 8 Jul 2010 21:13:48 +0000 (23:13 +0200)]
compat-wireless: fix build problems

Fix some minor build problems in patch.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Thu, 8 Jul 2010 20:46:42 +0000 (13:46 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: scripts/admin-update.sh refresh
Luis R. Rodriguez [Thu, 8 Jul 2010 20:16:59 +0000 (13:16 -0700)]
compat-wireless: scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Thu, 8 Jul 2010 20:13:02 +0000 (13:13 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: scripts/admin-update.sh refresh
Luis R. Rodriguez [Thu, 8 Jul 2010 20:12:13 +0000 (13:12 -0700)]
compat-wireless: scripts/admin-update.sh refresh

Refresh patch hunk offsets.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update 28-pm-qos-params.patch
Luis R. Rodriguez [Thu, 8 Jul 2010 19:40:04 +0000 (12:40 -0700)]
compat-wireless: update 28-pm-qos-params.patch

This patch is required because now pm-qos has 3 different flavors:

On kernels >= 2.6.36 the pm qos req is kzalloc()'d by pm-qos itself
On kernel   = 2.6.35 the pm qos req uses the stack
On kernels <  2.6.35 the pm qos req is pegged to a unique name

On newer kernels we don't use a name to tag a pm-qos requirement, and on
older kernels we do. Although we can port over the struct pm_qos_request_list
to older kernels it provides no variable with any unique name we can use
for older kernels. Perhaps there's a way.. right now I just don't see it.

We also should probably not bother updating pm-qos to newer versions unless
we are willing to treat the oldest kernels as newer ones and that'd be a
little wierd. Update the header of 28-pm-qos-params.patch while at it
with a little explanation as to why this is all needed.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update 07-change-default-rate-alg.patch
Luis R. Rodriguez [Thu, 8 Jul 2010 19:38:58 +0000 (12:38 -0700)]
compat-wireless: update 07-change-default-rate-alg.patch

The hunk context changed so it would no longer apply with
a fuzz. This required some manual updating of the patch.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update 07-change-default-rate-alg.patch
Pavel Roskin [Tue, 6 Jul 2010 20:24:08 +0000 (16:24 -0400)]
compat-wireless: update 07-change-default-rate-alg.patch

14 years agocompat-wireless: refresh patch
Hauke Mehrtens [Tue, 29 Jun 2010 20:36:15 +0000 (22:36 +0200)]
compat-wireless: refresh patch

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: activate iwmc3200wifi and WL1271_SDIO
Hauke Mehrtens [Thu, 24 Jun 2010 21:00:05 +0000 (23:00 +0200)]
compat-wireless: activate iwmc3200wifi and WL1271_SDIO

netdev_ops for iwmc3200wifi is backported now.
CONFIG_WL1271_SDIO does not depend on ARM any more in mainline, but it
needs at least kernel 2.6.32.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh patches
Hauke Mehrtens [Thu, 24 Jun 2010 21:00:04 +0000 (23:00 +0200)]
compat-wireless: refresh patches

refresh patches and backport netdev_ops for iwmc3200wifi

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: "crap" code is "not yet posted", not "not yet merged"
Pavel Roskin [Tue, 22 Jun 2010 20:40:48 +0000 (16:40 -0400)]
compat-wireless: "crap" code is "not yet posted", not "not yet merged"

14 years agocompat-wireless: refresh patches
Luis R. Rodriguez [Mon, 21 Jun 2010 19:06:20 +0000 (12:06 -0700)]
compat-wireless: refresh patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix compilation for 2.6.32
Paul Fertser [Sun, 20 Jun 2010 09:44:57 +0000 (13:44 +0400)]
compat-wireless: fix compilation for 2.6.32

2.6.32 was the latest version using CONFIG_WIRELESS_EXT. Without this patch
compilation produced

net/wireless/wext-compat.c:443: error: ‘struct wireless_dev’ has no member named ‘wext’

since config.mk defined CONFIG_CFG80211_WEXT but autoconf.sh didn't.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
14 years agocompat-wireles: fix compilation when you have disabled CONFIG_CFG80211_WEXT
Luis R. Rodriguez [Thu, 17 Jun 2010 20:28:58 +0000 (13:28 -0700)]
compat-wireles: fix compilation when you have disabled CONFIG_CFG80211_WEXT

On newer kernels you can disable CONFIG_CFG80211_WEXT. If you try to
compile compat-wireless with CONFIG_CFG80211_WEXT disabled you get:

  CC [M]  /home/mcgrof/devel/compat-wireless-2.6/net/wireless/core.o
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/core.c: In function ‘cfg80211_netdev_notifier_call’:
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/core.c:703: error: ‘struct net_device’ has no member named ‘wireless_handlers’
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/core.c:704: error: ‘struct net_device’ has no member named ‘wireless_handlers’
make[3]: *** [/home/mcgrof/devel/compat-wireless-2.6/net/wireless/core.o] Error 1
make[2]: *** [/home/mcgrof/devel/compat-wireless-2.6/net/wireless] Error 2
make[1]: *** [_module_/home/mcgrof/devel/compat-wireless-2.6] Error 2

This is because we currently force CONFIG_CFG80211_WEXT to be enabled
on the compat_autoconf.h. Instead we should enable it conditionally
based on CONFIG_CFG80211_WEXT for older kernels and simply leave it
out for newer kernels, so we can respect your kernel config. For
newer kernels you cannot enable CONFIG_CFG80211_WEXT since
the net_device structure changes based on CONFIG_CFG80211_WEXT,
the wireless_handlers are not added to the net_device if you don't
have it enabled.

Reported-by: Mathieu Olivari <Mathieu.Olivari@Atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: backport netdev->br_port
Hauke Mehrtens [Wed, 16 Jun 2010 20:49:26 +0000 (22:49 +0200)]
compat-wireless: backport netdev->br_port

In commit f350a0a87374418635689471606454abc7beaa3a the br_port
attribute was replaced with a private flag.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: refresh patches for next-20100617
Luis R. Rodriguez [Thu, 17 Jun 2010 05:32:36 +0000 (22:32 -0700)]
compat-wireless: refresh patches for next-20100617

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove pending AR9003 IBSS fix
Luis R. Rodriguez [Thu, 17 Jun 2010 05:30:35 +0000 (22:30 -0700)]
compat-wireless: remove pending AR9003 IBSS fix

Remove 0001-ath9k_hw-avoid-setting-cwmin-cwmax-to-0-for-IBSS-for.patch
as it is upstream now.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: increase the code-metric percent resolution two fold
Luis R. Rodriguez [Wed, 16 Jun 2010 00:19:27 +0000 (17:19 -0700)]
compat-wireless: increase the code-metric percent resolution two fold

If we only carry one patch then the two decimals will
not cut it to reflect a real percentage of all the code we
are pulling from upstream so use two more decimals.

This is what I get now:

compat-wireless code metrics

    498409 - Total upstream lines of code being pulled
      1398 - backport code changes
      1167 - backport code additions
       231 - backport code deletions
      5748 - backport from compat module
      7146 - total backport code
    1.4338 - % of code consists of backport work
        13 - Code changes posted but not yet merged
         8 - Code additions posted but not yet merged
         5 - Code deletions posted but not yet merged
    0.0026 - % of code not yet merged

Base tree: linux-next.git
Base tree version: next-20100615
compat-wireless release: compat-wireless-2010-06-10-10-g0c66bc8

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix code-metrics for 1 patch
Luis R. Rodriguez [Wed, 16 Jun 2010 00:15:07 +0000 (17:15 -0700)]
compat-wireless: fix code-metrics for 1 patch

If we only have one patch then the currently grep will
not parse correctly, force the grep to always include the
filename so that the existing computation can be used for
both the case we use only one patch file in the directories:

linux-next-pending/
linux-next-cherry-pick/
crap/

This fixes the computation for linux-next-pending/ right
now.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: change admin-update to clarify lines of code
Luis R. Rodriguez [Tue, 15 Jun 2010 21:34:06 +0000 (14:34 -0700)]
compat-wireless: change admin-update to clarify lines of code

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh crap patches
Luis R. Rodriguez [Tue, 15 Jun 2010 21:21:03 +0000 (14:21 -0700)]
compat-wireless: refresh crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add one pending patch for ath9k_hw for adhoc for AR9003
Luis R. Rodriguez [Tue, 15 Jun 2010 21:06:27 +0000 (14:06 -0700)]
compat-wireless: add one pending patch for ath9k_hw for adhoc for AR9003

This is not merged yet but required for testing.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patches
Hauke Mehrtens [Tue, 15 Jun 2010 20:56:35 +0000 (22:56 +0200)]
compat-wireless: refresh patches

make the patches apply against recent linux-next.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove all pending patches
Luis R. Rodriguez [Tue, 15 Jun 2010 20:59:35 +0000 (13:59 -0700)]
compat-wireless: remove all pending patches

These are all merged now

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompt-wireless: fix crap/0002-ath9k-Add-pktlog-support.patch
Luis R. Rodriguez [Sat, 12 Jun 2010 06:03:14 +0000 (23:03 -0700)]
compt-wireless: fix crap/0002-ath9k-Add-pktlog-support.patch

Due to the new pending patches the seond hunk for the
packet log patch touching hw.h needed to be adjusted.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add new AR9003 series for pending patches
Luis R. Rodriguez [Sat, 12 Jun 2010 05:53:17 +0000 (22:53 -0700)]
compat-wireless: add new AR9003 series for pending patches

Some new AR9003 patches have been posted, merge them into
the pending diretory for now until they get merged.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove AR9003 PCI ID patch from crap/
Luis R. Rodriguez [Sat, 12 Jun 2010 05:50:40 +0000 (22:50 -0700)]
compat-wireless: remove AR9003 PCI ID patch from crap/

This has now been posted

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add script to grep out colors
Luis R. Rodriguez [Fri, 11 Jun 2010 01:19:00 +0000 (18:19 -0700)]
compat-wireless: add script to grep out colors

This is useful for a cronjobs that do not want the
color fluff on output.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh of crap patches
Luis R. Rodriguez [Fri, 11 Jun 2010 01:14:47 +0000 (18:14 -0700)]
compat-wireless: refresh of crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh of patches for June 10 2010
Luis R. Rodriguez [Fri, 11 Jun 2010 01:14:18 +0000 (18:14 -0700)]
compat-wireless: refresh of patches for June 10 2010

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: activate CONFIG_MAC80211_RC_MINSTREL_HT
Hauke Mehrtens [Sun, 6 Jun 2010 09:11:58 +0000 (11:11 +0200)]
compat-wireless: activate CONFIG_MAC80211_RC_MINSTREL_HT

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: deactivate atl1c for kernel < 2.6.27
Hauke Mehrtens [Sun, 6 Jun 2010 09:11:57 +0000 (11:11 +0200)]
compat-wireless: deactivate atl1c for kernel < 2.6.27

atl1c uses pci_prepare_to_sleep that is not backported.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: deactivate libertas sdio suspend for < 2.6.34
Hauke Mehrtens [Sun, 6 Jun 2010 09:11:56 +0000 (11:11 +0200)]
compat-wireless: deactivate libertas sdio suspend for < 2.6.34

libertas sdio suspend and resume depends on some new features of the
sdio framework in kernel 2.6.34.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: Enable rt2800usb in compat-wireless stable branch
Richard Farina [Sun, 6 Jun 2010 05:54:10 +0000 (22:54 -0700)]
compat-wireless: Enable rt2800usb in compat-wireless stable branch

This patch enables the new RT307x and RT357x chips.

Propagate-to: 2.6.35.y
Signed-off-by: Richard Farina <sidhayn@gmail.com>
14 years agocompat-wireless: add Ethernet support for driver-select
Luis R. Rodriguez [Fri, 4 Jun 2010 22:50:34 +0000 (15:50 -0700)]
compat-wireless: add Ethernet support for driver-select

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh of crap for 2010-06-04
Luis R. Rodriguez [Fri, 4 Jun 2010 21:54:46 +0000 (14:54 -0700)]
compat-wireless: refresh of crap for 2010-06-04

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh for 2010-06-04
Luis R. Rodriguez [Fri, 4 Jun 2010 21:54:13 +0000 (14:54 -0700)]
compat-wireless: refresh for 2010-06-04

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix config.mk
Luis R. Rodriguez [Fri, 4 Jun 2010 15:06:35 +0000 (08:06 -0700)]
compat-wireless: fix config.mk

Ooops, forgot to revert config.mk after cp'ing it to defconfigs/

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add defconfigs directory
Luis R. Rodriguez [Fri, 4 Jun 2010 15:03:44 +0000 (08:03 -0700)]
compat-wireless: add defconfigs directory

This lets you stuff custom config.mk files for debugging purposes
or other reasons.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: ./scripts/admin-update.sh -c refresh
Luis R. Rodriguez [Thu, 3 Jun 2010 22:30:47 +0000 (15:30 -0700)]
compat-wireless: ./scripts/admin-update.sh -c refresh

Refreshes the crap patches for today's linux-next.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: run ./scripts/admin-update.sh refresh for 2010-06-03
Luis R. Rodriguez [Thu, 3 Jun 2010 22:29:57 +0000 (15:29 -0700)]
compat-wireless: run ./scripts/admin-update.sh refresh for 2010-06-03

Synchs up with linux-next tag next-20100603

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove all the pending patches
Luis R. Rodriguez [Thu, 3 Jun 2010 22:26:16 +0000 (15:26 -0700)]
compat-wireless: remove all the pending patches

The merge window is over, so John just merged all of these
posted pending patches.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix target kernel expecations on gen-stable-release.sh
Luis R. Rodriguez [Wed, 2 Jun 2010 00:15:39 +0000 (17:15 -0700)]
compat-wireless: fix target kernel expecations on gen-stable-release.sh

We were computing the target kernel too early, we need to do this
*after* we have updated the stable tree.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update the usage() print for gen-stable-release.sh
Luis R. Rodriguez [Wed, 2 Jun 2010 00:07:45 +0000 (17:07 -0700)]
compat-wireless: update the usage() print for gen-stable-release.sh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: optimize branch selection on gen-stable-release.sh
Luis R. Rodriguez [Tue, 1 Jun 2010 23:59:36 +0000 (16:59 -0700)]
compat-wireless: optimize branch selection on gen-stable-release.sh

This lets us optimize the way we use gen-stable-release.sh so that
by default we don't do a git fetch or reset of the branch if we are
already on it. To force an update use -f.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add -n -p -c support for gen-stable-release.sh
Luis R. Rodriguez [Tue, 1 Jun 2010 23:20:01 +0000 (16:20 -0700)]
compat-wireless: add -n -p -c support for gen-stable-release.sh

This lets us make stable compat-wireless releases with -n -p
and/or -c. We also annotate the REMOTE_BRANCH is unused for
now and will change the way this is used next.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: accept extra arguments for scripts/gen-stable-release.sh
Luis R. Rodriguez [Mon, 31 May 2010 22:40:52 +0000 (15:40 -0700)]
compat-wireless: accept extra arguments for scripts/gen-stable-release.sh

This lets us use -n -p -c to generate stable compat-wireless releases.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: run refresh only on last applied directory
Hauke Mehrtens [Sat, 29 May 2010 13:44:32 +0000 (15:44 +0200)]
compat-wireless: run refresh only on last applied directory

Running "./scripts/admin-refresh.sh -n -p -c refresh" failed because
patchRefresh refreshes and applies every patch form the series and
then  reverse them all. If a patch from the next series in an other
directory depends on that it will not apply any more.

Now only the last series/directory will be refresh.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: use /etc/init.d/ and not sudo service
Hauke Mehrtens [Sat, 29 May 2010 13:35:06 +0000 (15:35 +0200)]
compat-wireless: use /etc/init.d/ and not sudo service

sudo is not installed and used on all distributions. the user should
call the script with the needed rights and the script should not
include sudo. This fails on debian lenny.

service is only available on very recent distributions and not on old
ons like debian lenny in the default configuration. Use the old init.d
script. This also works on ubuntu 10.04.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: update clean scripts
Hauke Mehrtens [Sat, 29 May 2010 13:35:05 +0000 (15:35 +0200)]
compat-wireless: update clean scripts

Without this patch make fails after calling make clean because compat_*
files were deleted.

Delete all files generated by scripts/admin-update.sh in
scripts/admin-clean.sh and not in make clean

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: add pending fix patch for ath9k
Luis R. Rodriguez [Thu, 27 May 2010 02:47:05 +0000 (19:47 -0700)]
compat-wireless: add pending fix patch for ath9k

This adds this pending patch:

From:   Vasanthakumar Thiagarajan <vasanth@atheros.com>
Subject: [PATCH] ath9k: Fix bug in the way "bf_tx_aborted" of struct ath_buf is used
Date:   Wed, 26 May 2010 19:06:53 -0700

This bug was introduced by the following commit

Author: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Date:   Thu Apr 15 17:38:46 2010 -0400

ath9k: Remove ATH9K_TX_SW_ABORTED and introduce a bool for this purpose

Wrong buffer is checked for bf_tx_aborted field in ath_tx_num_badfrms(),
this may result in a rate scaling with wrong feedback (number
of unacked frames in this case). It is the last one in the chain
of buffers for an aggregate frame that should be checked.

Also it misses the initialization of this field in the buffer,
this may lead to a situation where we stop the sw retransmission
of failed subframes associated to this buffer.

Signed-off-by: Vasanthakumar Thiagarajan <vasanth@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove two pending patches now upstream
Luis R. Rodriguez [Thu, 27 May 2010 00:27:05 +0000 (17:27 -0700)]
compat-wireless: remove two pending patches now upstream

These patches are now upstream:

commit a65e4cb402b5f3e120570ba1faca4354d47e8f2f
Author: Felix Fietkau <nbd@openwrt.org>
Date:   Thu May 13 20:37:25 2010 +0200

    ath9k: remove VEOL support for ad-hoc

    With VEOL, Beacon transmission in ad-hoc does not currently work.
    I believe for larger ad-hoc networks, VEOL is too unreliable, as
    it can get beacon transmissions stuck during synchronization.
    Use SWBA based beacon trasmission similar to AP mode instead.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Acked-by: Benoit Papillault <benoit.papillault@free.fr>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
commit 774610e4f26cb3d9da14a8b5974324c9e51017bd
Author: Felix Fietkau <nbd@openwrt.org>
Date:   Thu May 13 20:37:24 2010 +0200

    ath9k: change beacon allocation to prefer the first beacon slot

    This fixes IBSS beacon transmissions without VEOL enabled

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This reduces the pending stuff:

      7132 - Code changes posted but not yet merged
      4449 - Code additions posted but not yet merged
      2683 - Code deletions posted but not yet merged
      1.45 - % of code not yet merged

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: clarify usage of linux-next-cherry-pick for bleeding edge
Luis R. Rodriguez [Tue, 25 May 2010 23:19:58 +0000 (16:19 -0700)]
compat-wireless: clarify usage of linux-next-cherry-pick for bleeding edge

Bleeding edge releaseas are already using linux-next so the
linux-next-cherry-pick directory will be empty for those releases.
The linux-next-cherry-pick is more of a helper for stable RC
releases, once we start making releases from the linux-2.6-allstable
git tree.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update the atheros crap patches
Luis R. Rodriguez [Tue, 25 May 2010 23:16:31 +0000 (16:16 -0700)]
compat-wireless: update the atheros crap patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add new set of pending patches for 2010-05-25
Luis R. Rodriguez [Tue, 25 May 2010 23:05:48 +0000 (16:05 -0700)]
compat-wireless: add new set of pending patches for 2010-05-25

This just adds three patches by Felix posted today. To generate
these and merge these back into this tree though I am using
a very crude technique though:

I cherry pick patches from the mailing lists, I then git am
them onto a local wireless-testing tree, then I

git format-patch -o compat-pending-05-25 origin..pending-sha1sum

Then I git rm linux-next-pending/*.patch and add the new series.
This is a bit sloppy, I admit it but it works well for how I am
managing it. If you need a patch sucked into this series let me
know and I'll go ahead and merge it as well. For now I am just
taking in things I see as important for ath9k, mac80211 and
cfg80211. If you want to consider your drivers just ask in the
linux-wireless / linux-bluetooth list (cc'ing me or something)
annotating the patch for me to be picked up. At least lets try
it for now this way and see it how it goes. If you think of
something better let me know.

These pending patches are applied with the -p option of
./scripts/admin-update.sh -p

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix typo for used color for nagometer
Luis R. Rodriguez [Tue, 25 May 2010 22:55:14 +0000 (15:55 -0700)]
compat-wireless: fix typo for used color for nagometer

s/REG/RED/

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: ./scripts/admin-update.sh -p refresh
Luis R. Rodriguez [Tue, 25 May 2010 22:48:26 +0000 (15:48 -0700)]
compat-wireless: ./scripts/admin-update.sh -p refresh

Runs reresh on the pending patches. There are no automatic
tarballs using this yet.

      6809 - Code changes posted but not yet merged
      4398 - Code additions posted but not yet merged
      2411 - Code deletions posted but not yet merged
      1.39 - % of code not yet merged

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: only copy existing Kconfig files
Luis R. Rodriguez [Tue, 25 May 2010 22:45:47 +0000 (15:45 -0700)]
compat-wireless: only copy existing Kconfig files

If no Kconfig file exist don't try to copy it to avoid
the warning.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix backport code calculation
Luis R. Rodriguez [Tue, 25 May 2010 22:40:32 +0000 (15:40 -0700)]
compat-wireless: fix backport code calculation

The current computation was not taking into account the
compat/*.[ch] files and the include/linux/compat*.h files.
Additionally these files were just being counted towards the
total sum of the upstream code.

Remove the compat code from the total sum of upstream code,
and add the compat code to the backport sum. This also adds
a new line to indicate to us the size of the total backport
work (patches + compat) and compat alone.

These are the stats I get today:

compat-wireless code metrics

    491620 - Total upstream code being pulled
      1393 - backport code changes
      1163 - backport code additions
       230 - backport code deletions
      5679 - backport from compat module
      7072 - total backport code
      1.44 - % of code consists of backport work

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: ./scripts/admin-update.sh refresh
Luis R. Rodriguez [Tue, 25 May 2010 21:39:27 +0000 (14:39 -0700)]
compat-wireless: ./scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove pending patches as of next-20100525
Luis R. Rodriguez [Tue, 25 May 2010 21:37:27 +0000 (14:37 -0700)]
compat-wireless: remove pending patches as of next-20100525

This only affects tarballs created with the
./scripts/admin-update.sh -p option

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRevert "compat-wireless: run ./scripts/compat_firmware_install"
Luis R. Rodriguez [Mon, 24 May 2010 17:05:20 +0000 (10:05 -0700)]
Revert "compat-wireless: run ./scripts/compat_firmware_install"

We were calling this script.. it was just being called from the
compat/ directory. Revert this change.

This reverts commit 4e916644a5810da831bb716ea274c72967cf8d24.

14 years agocompat-wireless: add the new versioning files to .gitignore
Luis R. Rodriguez [Mon, 24 May 2010 17:01:41 +0000 (10:01 -0700)]
compat-wireless: add the new versioning files to .gitignore

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: remove some new files upon make clean
Luis R. Rodriguez [Mon, 24 May 2010 17:01:00 +0000 (10:01 -0700)]
compat-wireless: remove some new files upon make clean

The new versioning files were not being removed.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: run ./scripts/compat_firmware_install
Luis R. Rodriguez [Mon, 24 May 2010 16:57:24 +0000 (09:57 -0700)]
compat-wireless: run ./scripts/compat_firmware_install

We were not running this before so users of compat-wireless would
not get the compat_firmware stuff properly installed. Since the
compat_firmware_*() API is used for *all* compat-wireless drivers
this should mean loading of the firmware would have failed for
all those requiring firmware.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add some Atheros crap patches
Luis R. Rodriguez [Sat, 22 May 2010 01:21:54 +0000 (18:21 -0700)]
compat-wireless: add some Atheros crap patches

The reasoning for reach patch not being posted is explained
on the top of each patch.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add the Kconfig for drivers
Luis R. Rodriguez [Sat, 22 May 2010 01:15:19 +0000 (18:15 -0700)]
compat-wireless: add the Kconfig for drivers

The linux-next-chery-pick, linux-next-pending, and crap
patches all would rely on the Kconfig so add the Kconfig
files internally.

We could eventually use these as well to modify the
build system for compat-wireless so we can use mconf
intsead. For that we'd need to modify each kconfig option
though with some heroic effort.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add a set of pending patches for linux-wireless
Luis R. Rodriguez [Sat, 22 May 2010 01:09:56 +0000 (18:09 -0700)]
compat-wireless: add a set of pending patches for linux-wireless

We're in the merge window, so this adds all the patches pending
merge from Atheros. Note that these are not applied by default,
to apply then you must use the "-p" flag for ./scripts/admin-update.sh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agorm -rf drivers when running scripts/admin-update.sh
Luis R. Rodriguez [Sat, 22 May 2010 01:06:26 +0000 (18:06 -0700)]
rm -rf drivers when running scripts/admin-update.sh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: add linux-next-pending, crap patch dirs and nagometer
Luis R. Rodriguez [Sat, 22 May 2010 00:35:40 +0000 (17:35 -0700)]
compat-wireless: add linux-next-pending, crap patch dirs and nagometer

Sometimes you have no other option but to carry around patches.
This can happen for a variety of reasons. Ultimately testing of code
cannot happen on the kernel maintainer's clock but on your own.

This expands the idea of the linux-next-cherry-pick patch directory
on compat-wireless to also allow for patches to be merged which are
posted to some mailing list but pending merge due to some reasons
(merge window is a good example). It also adds a crap patch directory
for those really nasty situations you can run into where you have
no other option but to give someone a release with some delta even
if the patch is not yet posted anywhere.

The focus should always be upstream though so to avoid these
situations we will also provide code metrics to indicate to
the package maintainer how much code came from each directory,
including the backport code to support older kernel releases.

Maybe we should add the code-metrics.txt file as a print out
on the compat module load :)

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdd the compat to the unload of the modules
Luis R. Rodriguez [Tue, 18 May 2010 01:10:19 +0000 (18:10 -0700)]
Add the compat to the unload of the modules

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix scripts/driver-select due to new version changes
Luis R. Rodriguez [Tue, 18 May 2010 01:09:34 +0000 (18:09 -0700)]
Fix scripts/driver-select due to new version changes

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix gen-compat-autoconf.sh for new version name changes
Luis R. Rodriguez [Tue, 18 May 2010 00:23:57 +0000 (17:23 -0700)]
Fix gen-compat-autoconf.sh for new version name changes

This script needed some updating based on the new version
tag mechanism embraced.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix the CREL compat-wireless release name on top level Makefile
Luis R. Rodriguez [Mon, 17 May 2010 23:32:23 +0000 (16:32 -0700)]
Fix the CREL compat-wireless release name on top level Makefile

The new compat-wireless release name is on the compat_version
file so use that on the Makefile.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix dependency on on WEXT
Luis R. Rodriguez [Mon, 17 May 2010 23:16:48 +0000 (16:16 -0700)]
Fix dependency on on WEXT

CONFIG_WIRELESS_EXT is no longer required on kernels >= 2.6.32
The new WEXT stuff can be enabled throught the CONFIG_CFG80211_WEXT
which would enable CONFIG_WIRELESS_EXT. Legacy (non-cfg80211,
non-mac80211) drivers also need to select CONFIG_WIRELESS_EXT
now as otherwise its left disabled.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoUse the defines to tag the compat module
Luis R. Rodriguez [Mon, 17 May 2010 22:41:24 +0000 (15:41 -0700)]
Use the defines to tag the compat module

The compat module now has read-only module parameters which
we can help tune to help identify the exact upstream base
tree used for this backport, as well as the specific tree
used to make it. For example when building a stable
compat-wireless release based on the linux-2.6-allstable.git
git tree, using the tree as of the 'v2.6.34' tag we'd get:

$ sudo grep '' /sys/module/compat/parameters/compat_
/sys/module/compat/parameters/compat_base_tree:linux-2.6-allstable.git
/sys/module/compat/parameters/compat_base_tree_version:v2.6.34
/sys/module/compat/parameters/compat_version:v2.6.34-rc4-4-g9ace871

The last file indicates compat-wireless.git was used, but
specifically that the v2.6.34-rc4 branch was used and that
4 patches have been applied on top of that tree. The top
sha1sum commit on that tree is 9ace871.

These files will work even if you have built compat-wireless
completely as built-in to your kernel.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoSplit up the NOSTDINC_FLAGS into a few lines
Luis R. Rodriguez [Mon, 17 May 2010 22:25:07 +0000 (15:25 -0700)]
Split up the NOSTDINC_FLAGS into a few lines

No functional changes here.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRemove double line on admin-update.sh
Luis R. Rodriguez [Mon, 17 May 2010 22:22:43 +0000 (15:22 -0700)]
Remove double line on admin-update.sh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoChange admin-update.sh to use system version files
Luis R. Rodriguez [Mon, 17 May 2010 22:12:10 +0000 (15:12 -0700)]
Change admin-update.sh to use system version files

The compat module now has a few module parameters we can
use to extract the base tree we are using, the base tree
version, and our current project version. Use the same
file names locally to be consistant and output them using
admin-update.sh

For example:

/sys/module/compat/parameters/compat_base_tree:linux-next.git
/sys/module/compat/parameters/compat_base_tree_version:next-20100517
/sys/module/compat/parameters/compat_version:compat-linux-2.6.34.y-4-g38e4911

This will change depending on what tree you use, etc.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years ago./scripts/admin-update.sh refresh
Luis R. Rodriguez [Mon, 17 May 2010 19:11:31 +0000 (12:11 -0700)]
./scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: Update Readme to reflect changes
Hauke Mehrtens [Fri, 14 May 2010 18:20:16 +0000 (20:20 +0200)]
compat-wireless: Update Readme to reflect changes

* A description of the differences of the stable and the normal version
  of compat wireless was added.
* Some outdated parts are now up to date
* replaceing the developing section with version in the wiki

These changes are needed because some people are tiring to build their
own compat-wireless version based on wireless-testing and some people
choose compat-wireless stable based on their currently running kernel
version.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agoRevert "compat-wireless: fix 07-change-default-rate-alg.patch"
Hauke Mehrtens [Fri, 14 May 2010 18:20:15 +0000 (20:20 +0200)]
Revert "compat-wireless: fix 07-change-default-rate-alg.patch"

This reverts commit fc4ed11ef1265b43e14bb3aa5bb4c6bd788ba65a.

In the linux-next tree there is this line
kparam_unblock_sysfs_write(ieee80211_default_rc_algo);
it was introduced 2 days ago. In wireless-text this does not exist for now.

This patch was added because it was not clear that compat-wireless is build on
linux-next.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix 07-change-default-rate-alg.patch
Bruno Randolf [Thu, 13 May 2010 01:17:11 +0000 (10:17 +0900)]
compat-wireless: fix 07-change-default-rate-alg.patch

i need this change to make it apply again

Signed-off-by: Bruno Randolf <br1@einfach.org>
14 years ago./scripts/admin-update.sh refresh
Luis R. Rodriguez [Mon, 10 May 2010 22:26:17 +0000 (15:26 -0700)]
./scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: make patches apply again
Hauke Mehrtens [Mon, 10 May 2010 21:24:10 +0000 (23:24 +0200)]
compat-wireless: make patches apply again

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