openwrt/staging/blogic.git
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>
14 years agocompat-wireless: backport pm_qos_{add,remove,update}_request
Hauke Mehrtens [Mon, 10 May 2010 21:24:09 +0000 (23:24 +0200)]
compat-wireless: backport pm_qos_{add,remove,update}_request

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: rt2x00 added to driver-select
Walter Goldens [Wed, 5 May 2010 09:44:32 +0000 (02:44 -0700)]
compat-wireless: rt2x00 added to driver-select

Signed-off-by: Walter Goldens <goldenstranger@yahoo.com>
14 years agoatl2: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:42:05 +0000 (18:42 -0700)]
atl2: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoatl1: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:40:32 +0000 (18:40 -0700)]
atl1: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agobnep, atl1e, atl1c: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:37:43 +0000 (18:37 -0700)]
bnep, atl1e, atl1c: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agomac80211_hwsim: use netdevice_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:29:11 +0000 (18:29 -0700)]
mac80211_hwsim: use netdevice_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agolibertas: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:25:41 +0000 (18:25 -0700)]
libertas: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoipw2200: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:17:19 +0000 (18:17 -0700)]
ipw2200: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoipw2100: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:13:15 +0000 (18:13 -0700)]
ipw2100: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agob44: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 01:09:50 +0000 (18:09 -0700)]
b44: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoadmin-update refresh
Luis R. Rodriguez [Wed, 5 May 2010 00:49:39 +0000 (17:49 -0700)]
admin-update refresh

I did some nasty things to get the patch before to apply, lets
clean that up now so that the patches apply cleanly.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agomac80211: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 00:46:56 +0000 (17:46 -0700)]
mac80211: use netdev_attach_ops()

This simplifies mac80211's net_device_ops's backports
significantly. An unexpected benefit was the simplification
of the MQ backport, this is possible since the select_queue
callback can now simply be bacported by netdev_attach_ops()
selectively depending on the kernel used, the callback itself
can always be set on the ops structure since even older kernels
will have it on the code, it will just be unused.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agorndis_wlan: use netdev_attach_ops()
Luis R. Rodriguez [Wed, 5 May 2010 00:23:14 +0000 (17:23 -0700)]
rndis_wlan: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agorndis_wlan: fix backport of netdev_attach_ops() usage
Luis R. Rodriguez [Wed, 5 May 2010 00:00:00 +0000 (17:00 -0700)]
rndis_wlan: fix backport of netdev_attach_ops() usage

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agousbnet: use netdev_attach_ops()
Luis R. Rodriguez [Tue, 4 May 2010 23:59:25 +0000 (16:59 -0700)]
usbnet: use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoMake rndis_host use netdev_attach_ops()
Luis R. Rodriguez [Tue, 4 May 2010 23:54:23 +0000 (16:54 -0700)]
Make rndis_host use netdev_attach_ops()

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoscripts/admin-update.sh refresh
Luis R. Rodriguez [Tue, 4 May 2010 23:48:11 +0000 (16:48 -0700)]
scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: make use of new netdev_attach_ops() for orinoco
Luis R. Rodriguez [Tue, 4 May 2010 23:46:11 +0000 (16:46 -0700)]
compat-wireless: make use of new netdev_attach_ops() for orinoco

This is an example of how to use this stuff and how much code
it can save when backporting the net_device_ops.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: updates for orinoco
Hauke Mehrtens [Tue, 4 May 2010 22:40:50 +0000 (00:40 +0200)]
compat-wireless: updates for orinoco

* rename read_pda to avoid conflicts with definitions in kernel <= 2.6.29
* add orinoco usb

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless, unload rt2800usb
Walter Goldens [Tue, 4 May 2010 14:30:10 +0000 (07:30 -0700)]
compat-wireless, unload rt2800usb

Signed-off-by: Walter Goldens <goldenstranger@yahoo,com>
14 years agocompat-wireless: refresh patches
Hauke Mehrtens [Mon, 3 May 2010 18:35:46 +0000 (20:35 +0200)]
compat-wireless: refresh patches

Make the patches apply cleanly again.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years ago./scripts/admin-update.sh refresh
Luis R. Rodriguez [Wed, 28 Apr 2010 21:48:28 +0000 (14:48 -0700)]
./scripts/admin-update.sh refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoUpdate USB makefile for new driver ipheth.o
Luis R. Rodriguez [Wed, 28 Apr 2010 21:47:30 +0000 (14:47 -0700)]
Update USB makefile for new driver ipheth.o

This is a new USB driver and we don't stash it into compat
so it just needs to be removed from the upstream Makefile.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoadmin-update refresh
Luis R. Rodriguez [Tue, 20 Apr 2010 00:22:04 +0000 (17:22 -0700)]
admin-update refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: include net and trace includes form compat.
Hauke Mehrtens [Sun, 18 Apr 2010 13:36:24 +0000 (15:36 +0200)]
compat-wireless: include net and trace includes form compat.

The includes form the net and trace directory of compat were not copyed.
This broke compilation on older kernels that needed some files in these
directories from compat.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: Remove use of sdio quirks attribute
Hauke Mehrtens [Sun, 18 Apr 2010 13:36:23 +0000 (15:36 +0200)]
compat-wireless: Remove use of sdio quirks attribute

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: backport convert multicast list to list_head.
Hauke Mehrtens [Mon, 19 Apr 2010 20:06:56 +0000 (22:06 +0200)]
compat-wireless: backport convert multicast list to list_head.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agoadmin-update refresh
Luis R. Rodriguez [Thu, 8 Apr 2010 19:08:37 +0000 (12:08 -0700)]
admin-update refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: fix fallbacks for unknown branch, remote or remote URL
Pavel Roskin [Wed, 7 Apr 2010 22:08:10 +0000 (18:08 -0400)]
compat-wireless: fix fallbacks for unknown branch, remote or remote URL

Use bash syntax that yields the replacement value if the variable is
either empty or unset.  The original code would only check for unset
variables, but the variable would be set even if git failed to give any
output to stdout.

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: find the actual remote URL
Pavel Roskin [Wed, 7 Apr 2010 05:31:08 +0000 (01:31 -0400)]
compat-wireless: find the actual remote URL

Don't assume the remote to be called "origin".  Instead, find the
current branch first, defaulting to "master".  Then find the
corresponding remote, defaulting to "origin".  Then find the remote URL,
defaulting to "unknown".  Reuse the remote URL for TREE_NAME.

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: remove 25-device_create.patch, it's handled by compat
Pavel Roskin [Wed, 7 Apr 2010 05:31:02 +0000 (01:31 -0400)]
compat-wireless: remove 25-device_create.patch, it's handled by compat

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: remove 13-trace.patch, it's handled in compat now
Pavel Roskin [Wed, 7 Apr 2010 05:30:56 +0000 (01:30 -0400)]
compat-wireless: remove 13-trace.patch, it's handled in compat now

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: remove patch part dealing with net/net_namespace.h
Pavel Roskin [Wed, 7 Apr 2010 05:30:51 +0000 (01:30 -0400)]
compat-wireless: remove patch part dealing with net/net_namespace.h

net/net_namespace.h stub is now provided by compat

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: use wireless_handlers for wext functions.
Hauke Mehrtens [Tue, 6 Apr 2010 20:43:44 +0000 (22:43 +0200)]
compat-wireless: use wireless_handlers for wext functions.

The struct wiphy changes in kernel versions so old kernels compiled with
a different version of struct wiphy than compat-wireless are unable to
dereference the pointer to the functions in cfg80211_wext_handler
correctly. This causes oops on kernel >= 2.6.33 when using wext with
cfg80211.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix use of device_create
Hauke Mehrtens [Mon, 5 Apr 2010 21:03:30 +0000 (23:03 +0200)]
compat-wireless: fix use of device_create

The signature of device_create changed in the last kernel version.
Backporting it in compat is hard because of the use of var args.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: Backport changes in pcmcia system
Hauke Mehrtens [Mon, 5 Apr 2010 21:03:29 +0000 (23:03 +0200)]
compat-wireless: Backport changes in pcmcia system

Backport commit 83319eda6b2c6380f0152e22f33c947506c448c4 from linux-next

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agoadmin-update refresh
Luis R. Rodriguez [Fri, 2 Apr 2010 20:14:31 +0000 (13:14 -0700)]
admin-update refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix patches/13-trace.patch
Luis R. Rodriguez [Fri, 2 Apr 2010 20:13:05 +0000 (13:13 -0700)]
Fix patches/13-trace.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix patches/06-header-changes.patch
Luis R. Rodriguez [Fri, 2 Apr 2010 20:11:01 +0000 (13:11 -0700)]
Fix patches/06-header-changes.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: driver-select: add b43 to the list
Paul Fertser [Sun, 28 Mar 2010 23:43:55 +0000 (16:43 -0700)]
compat-wireless: driver-select: add b43 to the list

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
14 years agoadmin-update refresh
Luis R. Rodriguez [Sun, 28 Mar 2010 23:29:20 +0000 (16:29 -0700)]
admin-update refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agodriver-select: fix selecting ath9k_htc
Luis R. Rodriguez [Sun, 28 Mar 2010 23:25:41 +0000 (16:25 -0700)]
driver-select: fix selecting ath9k_htc

For now ath9k_htc requires enabling ath9k_hw which enables
compilation of ath9k as well. To disable the non-ath9k_hw stuff
we need to further the script but that can be done later.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agodriver-select: enable listing of ath9k_htc
Luis R. Rodriguez [Sun, 28 Mar 2010 23:18:23 +0000 (16:18 -0700)]
driver-select: enable listing of ath9k_htc

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: update 22-multiqueue.patch for the current linux-next
Pavel Roskin [Wed, 24 Mar 2010 21:25:20 +0000 (17:25 -0400)]
compat-wireless: update 22-multiqueue.patch for the current linux-next

Adjust for spacing change in net/mac80211/util.c.  Add a replacement for
netif_tx_wake_queue() for net/mac80211/tx.c

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: add support for ath9k_htc
Pavel Roskin [Wed, 24 Mar 2010 21:27:46 +0000 (17:27 -0400)]
compat-wireless: add support for ath9k_htc

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agoadmin-update refresh the patches
Luis R. Rodriguez [Tue, 23 Mar 2010 23:58:07 +0000 (16:58 -0700)]
admin-update refresh the patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: refresh patch to apply again
Hauke Mehrtens [Wed, 17 Mar 2010 20:58:14 +0000 (21:58 +0100)]
compat-wireless: refresh patch to apply again

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove rename {free,alloc}_ieee80211 patch
Hauke Mehrtens [Wed, 17 Mar 2010 20:58:13 +0000 (21:58 +0100)]
compat-wireless: remove rename {free,alloc}_ieee80211 patch

This patch is now inclued in linux-next

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: add orinoco to compat-wireless
Hauke Mehrtens [Thu, 11 Mar 2010 21:32:44 +0000 (22:32 +0100)]
compat-wireless: add orinoco to compat-wireless

orinoco now depends on cfg80211. If compat-wireless was installed it
will install its own version of cfg80211 and orinoco will not work any
more because it wants to use the version shipped with the kernel.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: update config symbols
Hauke Mehrtens [Thu, 11 Mar 2010 21:32:47 +0000 (22:32 +0100)]
compat-wireless: update config symbols

Remove some not used config symbols and add some new ones

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: remove some uneeded header files
Hauke Mehrtens [Thu, 11 Mar 2010 21:32:46 +0000 (22:32 +0100)]
compat-wireless: remove some uneeded header files

wireless.h and wext.h must not be shipped with compat-wireless.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: fix building of iwmc3200wifi
Hauke Mehrtens [Thu, 11 Mar 2010 21:32:45 +0000 (22:32 +0100)]
compat-wireless: fix building of iwmc3200wifi

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: rename {free,alloc}_ieee80211 to {free,alloc}_libipw
Hauke Mehrtens [Thu, 11 Mar 2010 21:32:42 +0000 (22:32 +0100)]
compat-wireless: rename {free,alloc}_ieee80211 to {free,alloc}_libipw

{free,alloc}_ieee80211 are also defined by ieee80211 module for example
used on kernel 2.6.26. Without this patch ipwlib will not load on this
kernel, because of a duplicate symbol.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-wireless: disable wl1251 SPI and wl1271 if crc7 is not available
Pavel Roskin [Wed, 10 Mar 2010 20:37:13 +0000 (12:37 -0800)]
compat-wireless: disable wl1251 SPI and wl1271 if crc7 is not available

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years agocompat-wireless: disable rt2800 if crc_ccitt is not available
Pavel Roskin [Wed, 10 Mar 2010 03:54:08 +0000 (22:54 -0500)]
compat-wireless: disable rt2800 if crc_ccitt is not available

Signed-off-by: Pavel Roskin <proski@gnu.org>
14 years ago./scripts/admin-update.sh refres
Luis R. Rodriguez [Thu, 25 Feb 2010 18:29:44 +0000 (10:29 -0800)]
./scripts/admin-update.sh refres

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years ago./scripts/admin-update.sh refresh
Luis R. Rodriguez [Mon, 22 Feb 2010 21:15:47 +0000 (13:15 -0800)]
./scripts/admin-update.sh  refresh

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agocompat-wireless: Fix refresh script if no patches are available
Hauke Mehrtens [Sun, 21 Feb 2010 14:27:50 +0000 (15:27 +0100)]
compat-wireless: Fix refresh script if no patches are available

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agoSkip empty patch directories if one is found.
Luis R. Rodriguez [Sat, 20 Feb 2010 01:09:38 +0000 (17:09 -0800)]
Skip empty patch directories if one is found.

admin-update runs through two patch directories but
the linux-next-cherry-picks directory will always be
empty for bleeding edge compat-wireless.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdd linux-next cherry picked patches directory
Luis R. Rodriguez [Sat, 20 Feb 2010 00:34:17 +0000 (16:34 -0800)]
Add linux-next cherry picked patches directory

We work hard to get patches in time onto the stable
tree but sometimes a few things slip out, and sometimes a
stable fix is simply too big in size to be merged into
stable. In such cases though we do believe some of these
patches are still relatively important to either enable new
hardware which escaped the late rc cycles or to correct some
behaviour which might be too late for stable. We apply
these patches by default as they will be supported on these
releases.

The larger the number of patches you see in this new directory
the more we should be ashamed. We should strive to reduce this
to 0 all the time.

This only makes sense for the stable compat-wireless releases
as bleeding edge compat-wireless already uses linux-next. We
add this patch into this tree though so that future stable
branches will get it as well.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoBackport multiqueue support for kernels < 2.6.27
Luis R. Rodriguez [Wed, 17 Feb 2010 00:30:29 +0000 (16:30 -0800)]
Backport multiqueue support for kernels < 2.6.27

The 2.6.23 kernel added some initial multiqueue support.
That release relied on the on the notion of struct
net_device_subqueue attached to the netdevice struct
as an array. The 2.6.27 renamed these to struct netdev_queue,
and enhanced MQ support by providing locks separately onto
each queue. MQ support on 2.6.27 also extended each netdev
to be able to assign a select_queue callback to be used by
core networking for prior to pushing the skb out to the device
driver so that queue selection can be dealt with and
customized internally on the driver.

For kernels 2.6.23..2.6.26 then we backport MQ support by
using the equivalent calls on the struct netdev_queue to
the struct net_device_subqueue. The performance penalty
here is just that all these queues share a common lock
so stateful operations on one queue would imply a delay
on other queues.

For older kernels than 2.6.23 we can only stop all the
queues then and wake them up only if no other queue had
been stopped previously. This means for kernels older
than 2.6.23 there is a performance penalty and congestion
on one queue would imply propagating the same congestion
impact on all the other queues.

The select_queue callback was only added as of 2.6.27 via
commit eae792b7 so for kernels older than 2.6.23 and up
to 2.6.27 we must ensure we do the selection of the queue
once the core networking calls mac80211's dev_hard_start_xmit()
(ndo_start_xmit() callback on newer kernels).

This patch then consists of three parts:

  1) Addresses the lack of select_queue on older kernels than 2.6.27
  2) Extends the backport of net_device_ops for select_queue for kernels >= 2.6.27
  3) Backporting wake/stop queue for older kernels:
        - Handle with net_device_subqueue for >= 2.6.23
        - Treat each queue operation as an aggregate for all queues

Monitor interfaces have their own select_queue -- monitor interfaces
are used for injecting frames so they have their own respective queue
handling, but mac80211 just always sends management frames on VO
queue by using skb_set_queue_mapping(skb, 0) through ieee80211_tx_skb()

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