openwrt/staging/blogic.git
14 years agoFix patch for atlx
Luis R. Rodriguez [Sat, 12 Dec 2009 05:35:13 +0000 (21:35 -0800)]
Fix patch for atlx

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdd backport for Atheros ethernet drivers: atl1x, atl1e, atl1c
Luis R. Rodriguez [Sat, 12 Dec 2009 05:33:56 +0000 (21:33 -0800)]
Add backport for Atheros ethernet drivers: atl1x, atl1e, atl1c

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoDisable network drivers for now, as b44 is disabled
Luis R. Rodriguez [Sat, 12 Dec 2009 03:53:31 +0000 (19:53 -0800)]
Disable network drivers for now, as b44 is disabled

Only wireless and bluetooth drivers are left enabled.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix rfkill - it was not being built
Luis R. Rodriguez [Sat, 12 Dec 2009 01:36:09 +0000 (17:36 -0800)]
Fix rfkill - it was not being built

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoUpdate patch hunk offsets for next-20091211
Luis R. Rodriguez [Fri, 11 Dec 2009 21:33:40 +0000 (13:33 -0800)]
Update patch hunk offsets for next-20091211

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoDisable libertas and few compat fixes
Luis R. Rodriguez [Fri, 11 Dec 2009 07:36:16 +0000 (23:36 -0800)]
Disable libertas and few compat fixes

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFix compile for iwlagn due to new UTS release header changes
Luis R. Rodriguez [Fri, 11 Dec 2009 06:50:12 +0000 (22:50 -0800)]
Fix compile for iwlagn due to new UTS release header changes

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdd missing CONFIG_COMPAT tags to make wireless start building again
Luis R. Rodriguez [Fri, 11 Dec 2009 06:24:17 +0000 (22:24 -0800)]
Add missing CONFIG_COMPAT tags to make wireless start building again

Also renames compat.h to compat-2.6.h to match compat.git

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoUse linux/compat.h for rfkill backport
Luis R. Rodriguez [Fri, 11 Dec 2009 06:00:13 +0000 (22:00 -0800)]
Use linux/compat.h for rfkill backport

The compat patch was still using net/compat.h

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoFew fixes and disable ssb and b43, b43legacy, b44
Luis R. Rodriguez [Fri, 11 Dec 2009 05:45:28 +0000 (21:45 -0800)]
Few fixes and disable ssb and b43, b43legacy, b44

PCMCIA code changed on 2.6.33 and requires some backport work
on ssb and b43 pcmcia code. Lets disable this for now.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoLet this thing build without requiring CONFIG_BT=m
Luis R. Rodriguez [Fri, 11 Dec 2009 01:09:57 +0000 (17:09 -0800)]
Let this thing build without requiring CONFIG_BT=m

The Bluetooth port is separate from the Wireless port
so don't require CONFIG_BT=m to build this. We can do the
same for wireless but for now this at least lets Ubuntu
users build this thing -- Ubuntu currently ships with
CONFIG_BT=y from 2.6.27..2.6.31.

If we want to let compat-blutooth be available to Ubuntu
users on Ubuntu Lucid this config option will need to be
revised. The CONFIG_BT just builds net/bluetooth/bluetooth.c,
that's all -- so it seems worth it. Fedora is shipping with
CONFIG_BT=m , not sure about other distributions.

This also fixes some final touches to get the build
going again which I missed in my previous patches.

./scripts/drivers-select is likely very busted now.
We'll need to fix this.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRemove old ONLY_CORE stuff
Luis R. Rodriguez [Fri, 11 Dec 2009 00:37:33 +0000 (16:37 -0800)]
Remove old ONLY_CORE stuff

This is from way back when we started building compat-wireless.
Today if we want to disable stuff we can just use the config.mk
or use things like the scripts/driver-select script.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRe-order patch location and compat code
Luis R. Rodriguez [Fri, 11 Dec 2009 00:33:59 +0000 (16:33 -0800)]
Re-order patch location and compat code

The patches can now go on the top level dir as that
is all we ship with. The top level compat/ dir now
exists as the home of the copied compat module
and we build the compat module there.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRemove our own compat*.[ch] files
Luis R. Rodriguez [Fri, 11 Dec 2009 00:05:03 +0000 (16:05 -0800)]
Remove our own compat*.[ch] files

We now use a common compat module shared between wireless
and bluetooth. No need to keep our own stuff around. The
./scripts/admin-update.sh now copies the compat stuff for
us upon refresh.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdd description for the bluetooth compat patch
Luis R. Rodriguez [Fri, 11 Dec 2009 00:04:26 +0000 (16:04 -0800)]
Add description for the bluetooth compat patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoMove bluetooth device_type changes to 14-device-type.patch
Luis R. Rodriguez [Thu, 10 Dec 2009 23:55:51 +0000 (15:55 -0800)]
Move bluetooth device_type changes to 14-device-type.patch

This belongs here.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoMove bluetooth netdev ops backport changes to compat/patches/01-netdev.patch
Luis R. Rodriguez [Thu, 10 Dec 2009 23:53:03 +0000 (15:53 -0800)]
Move bluetooth netdev ops backport changes to compat/patches/01-netdev.patch

compat/patches/01-netdev.patch already provides all the other netdev op
changes so keep adding more of them there. Each compat/patches/*.patch
file should be kept as separate as possible to be able to make that
stuff comprehensible.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRename 17-bluetooth.patch to 16-bluetooth.patch
Luis R. Rodriguez [Thu, 10 Dec 2009 23:39:52 +0000 (15:39 -0800)]
Rename 17-bluetooth.patch to 16-bluetooth.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoRemove 16-compat.patch
Luis R. Rodriguez [Thu, 10 Dec 2009 23:38:47 +0000 (15:38 -0800)]
Remove 16-compat.patch

This is all now merged part of compat.git so this not required anymore.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoUse linux-next instead of two separte trees
Luis R. Rodriguez [Thu, 10 Dec 2009 17:51:54 +0000 (09:51 -0800)]
Use linux-next instead of two separte trees

No need to use two separate trees, so just use linux-next
for both 802.11 updates and bluetooth updates.

What helps also is we'll be now using wireless-next for a clean
wireless history for pull requests for some drivesr that choose
to send pull requests and updates do go to linux-next for 802.11
updates in at about 1-2 days.

Bluetooth pushes changes to linux-next on a less regular basis due
to the smaller amount of changes kept track of on that tree.

What this means to users of compat-wireless is they'll get more
ready code being tested and used. The simplicity of maintaining
a tree with only one tree for upstream code outweighs the benefit
of getting the few random extra patches not yet queued up in
linux-next.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
14 years agoAdded compat-bluetooth to compat-wireless-2.6
Bala Shanmugam [Tue, 8 Dec 2009 07:35:42 +0000 (13:05 +0530)]
Added compat-bluetooth to compat-wireless-2.6

Added new scripts to load and unload wireless
and bluetooth modules seperately.

Compat is compiled as separate kernel module as
both wireless and bluetooth modules require it.

Compat Bluetooth has support to compile latest bluetooth code
for kernel versions 2.6.27 to 2.6.31.

Signed-off-by: Bala Shanmugam <sbalashanmugam@atheros.com>
14 years agoRefresh patches
Hauke Mehrtens [Sun, 29 Nov 2009 22:44:44 +0000 (23:44 +0100)]
Refresh patches

Refresh patches and add CONFIG_ATH9K_DEBUGFS

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agoFix build problem.
Hauke Mehrtens [Sun, 29 Nov 2009 22:44:16 +0000 (23:44 +0100)]
Fix build problem.

The mesh device in libertas uses the method lbs_mesh_dev_open and not lbs_dev_open
Add backport code for libipw_module.c

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
14 years agocompat-2.6: split netdev patch to libertas/main.c into two parts
Hin-Tak Leung [Sun, 29 Nov 2009 04:16:22 +0000 (04:16 +0000)]
compat-2.6: split netdev patch to libertas/main.c into two parts

Split netdev patch to libertas/main.c into two parts, one for
libertas/main.c and one for libertas/mesh.c, because of the file itself
was split in commit in wireless-testing:

commit a4c65e7720b22d0fa76da3b6d00a00bcffd036ab
Author: Holger Schurig <holgerschurig@gmail.com>
Date:   Wed Nov 25 13:10:15 2009 +0100

    libertas: moveing mesh-related functions into mesh.c

Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
15 years agoRefresh patches
Hauke Mehrtens [Fri, 20 Nov 2009 22:01:53 +0000 (23:01 +0100)]
Refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoRefresh config.mk
Hauke Mehrtens [Fri, 20 Nov 2009 22:01:52 +0000 (23:01 +0100)]
Refresh config.mk

Remove some unused symbols and add some new symbols.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoAdd IFF_DONT_BRIDGE definition to compat
Hauke Mehrtens [Fri, 20 Nov 2009 22:01:51 +0000 (23:01 +0100)]
Add IFF_DONT_BRIDGE definition to compat

The IFF_DONT_BRIDGE flag will not be interpreted by an old kernel, but
it does not hurt the kernel if it is set but not read by the non
wireless network code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agodriver-selet: clarify why we have select_ath9k_driver
Luis R. Rodriguez [Fri, 13 Nov 2009 20:10:57 +0000 (12:10 -0800)]
driver-selet: clarify why we have select_ath9k_driver

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agodriver-select: remove double disable_var_01 for ath9k
Luis R. Rodriguez [Fri, 13 Nov 2009 20:08:26 +0000 (12:08 -0800)]
driver-select: remove double disable_var_01 for ath9k

The other disable_var_01 was being called when we called
select_ath_driver on the switch statement for ath9k.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agodriver-select: fix enabling debugging for ath9k and ath5k
Luis R. Rodriguez [Fri, 13 Nov 2009 20:06:19 +0000 (12:06 -0800)]
driver-select: fix enabling debugging for ath9k and ath5k

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoconfig.mk: add support for CONFIG_ATH9K_COMMON
Luis R. Rodriguez [Fri, 13 Nov 2009 20:04:20 +0000 (12:04 -0800)]
config.mk: add support for CONFIG_ATH9K_COMMON

For now this is under PCI but later on once we add ath9k_htc
we'll need to move this under a bus agnostic area.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offset for patches
Luis R. Rodriguez [Fri, 13 Nov 2009 19:49:48 +0000 (11:49 -0800)]
Update hunk offset for patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoDon't build SSB modules when SSB isn't present
Philip A Prindeville [Fri, 13 Nov 2009 19:22:59 +0000 (11:22 -0800)]
Don't build SSB modules when SSB isn't present

If you're building for a platform that has (for example) no SSB,
then having a single knob to turn to disable this is a major
win.  Especially if more devices get add later that are SSB-based.

Signed-off-by: Philip A Prindeville <philipp@redfish-solutions.com>
15 years agoAdd symbol CONFIG_RT2800_LIB
Hauke Mehrtens [Mon, 9 Nov 2009 22:56:09 +0000 (14:56 -0800)]
Add symbol CONFIG_RT2800_LIB

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agorefresh patches
Hauke Mehrtens [Mon, 9 Nov 2009 22:56:05 +0000 (14:56 -0800)]
refresh patches

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFix two warnings
Hauke Mehrtens [Mon, 9 Nov 2009 22:55:55 +0000 (14:55 -0800)]
Fix two warnings

This fixes these two warnings:
drivers/net/wireless/ath/ath5k/base.c:202: warning: ‘ath5k_pci_suspend_compat’ defined but not used
drivers/net/wireless/ath/ath5k/base.c:216: warning: ‘ath5k_pci_resume_compat’ defined but not used

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFix build problem, missing get_unaligned_le16
Hauke Mehrtens [Mon, 9 Nov 2009 22:55:37 +0000 (14:55 -0800)]
Fix build problem, missing get_unaligned_le16

This patch fixes the "implicit declaration of function
'get_unaligned_le16'" in drivers/net/wireless/libertas/assoc.c

CC: philipp_subx@redfish-solutions.com
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFixes a pm patch for ath5k
Felix Bitterli [Mon, 2 Nov 2009 16:46:04 +0000 (08:46 -0800)]
Fixes a pm patch for ath5k

Signed-off-by: Felix Bitterli <ic.felix@gmail.com>
15 years agoFix drivers/net/wireless/Makefile patch
Luis R. Rodriguez [Mon, 2 Nov 2009 16:16:13 +0000 (08:16 -0800)]
Fix drivers/net/wireless/Makefile patch

This was failing due to the move of some old drivers
to staging.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate patch hunk offsets
Luis R. Rodriguez [Mon, 2 Nov 2009 16:09:37 +0000 (08:09 -0800)]
Update patch hunk offsets

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years ago09-threaded-irq.patch: update hunk offsets
Luis R. Rodriguez [Mon, 19 Oct 2009 02:37:41 +0000 (11:37 +0900)]
09-threaded-irq.patch: update hunk offsets

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agorename ieee80211_rx
Hauke Mehrtens [Sat, 17 Oct 2009 21:06:45 +0000 (23:06 +0200)]
rename ieee80211_rx

Rename ieee80211_rx to avoild conflicts with the export done by older
libipw. libipw in kernel 2.6.32 and older also exports a symbol named
ieee80211_rx. If libipw from normal kernel and mac80211 from
compat-wireless is loaded you will get an conflict.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoconfig.mk: add ath debug to config.mk but leave it commented out
Luis R. Rodriguez [Thu, 15 Oct 2009 17:38:48 +0000 (10:38 -0700)]
config.mk: add ath debug to config.mk but leave it commented out

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoRemove Modules.marker file on make clean
Luis R. Rodriguez [Tue, 13 Oct 2009 22:30:14 +0000 (15:30 -0700)]
Remove Modules.marker file on make clean

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6.32.h: cast const'd 4th argument on wireless_send_event()
Luis R. Rodriguez [Tue, 13 Oct 2009 22:46:56 +0000 (15:46 -0700)]
compat-2.6.32.h: cast const'd 4th argument on wireless_send_event()

2.6.32 constified the 4th argument to wireless_send_event(), we can
avoid these pesky warning by casting for older kernels.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6.27: move include for iw_handler on the top
Luis R. Rodriguez [Tue, 13 Oct 2009 21:01:27 +0000 (14:01 -0700)]
compat-2.6.27: move include for iw_handler on the top

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoShut up compiler on compiling mac80211 for unused variable
Luis R. Rodriguez [Tue, 13 Oct 2009 20:45:20 +0000 (13:45 -0700)]
Shut up compiler on compiling mac80211 for unused variable

We can avoid this compiler warning by using the used variable
on the if (0) branch as that is never going to happen anyway.

  CC [M]  /home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.o
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.c: In function ‘cfg80211_bss_update’:
/home/mcgrof/devel/compat-wireless-2.6/net/wireless/scan.c:422: warning: unused variable ‘used’

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoAdd skb_add_rx_frag to backport.
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:18 +0000 (23:19 +0200)]
Add skb_add_rx_frag to backport.

This is needed by iwl-3945.c.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agorefresh patch hunk offsets
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:17 +0000 (23:19 +0200)]
refresh patch hunk offsets

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agob44 fix
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:16 +0000 (23:19 +0200)]
b44 fix

encapsulate $ in bash script

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFix build with kernel < 2.6.27
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:15 +0000 (23:19 +0200)]
Fix build with kernel < 2.6.27

iw_handler.h have changed in kernel 2.6.27.
For older kernel we need some extra backport code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoRemove temporary fix
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:14 +0000 (23:19 +0200)]
Remove temporary fix

Remove temporary fix from 6dae19ce42f4f6424a37c25f9ec393c1b4bc5c32
it is now in John's tree

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFix compile bug with kernel 2.6.32
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:13 +0000 (23:19 +0200)]
Fix compile bug with kernel 2.6.32

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoMove trace headers
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:12 +0000 (23:19 +0200)]
Move trace headers

Move tracepoint headers into own patch file.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoRemove unused code
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:11 +0000 (23:19 +0200)]
Remove unused code

LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,28) can not be true in
compat-2.6.28.h. The definitions are not needed in compat-wireless any
more. Removing this does not break compiling with mainline kernel 2.6.25
to 2.6.32

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoExport round_jiffies_up again.
Hauke Mehrtens [Mon, 12 Oct 2009 21:19:09 +0000 (23:19 +0200)]
Export round_jiffies_up again.

The 2.6.27 mainline kernel does not export round_jiffies_up. It looks
like the openSuse kernel 2.6.27 does export this symbol. Rename the
compat symbol to not conflict with the openSuse kernel.

CC: larry.finger@gmail.com
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoFix driver select for ath9k
Luis R. Rodriguez [Fri, 9 Oct 2009 00:02:56 +0000 (20:02 -0400)]
Fix driver select for ath9k

All other atheros drivers were being built

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agodriver-select: respect disabling b44
Luis R. Rodriguez [Thu, 8 Oct 2009 23:35:13 +0000 (19:35 -0400)]
driver-select: respect disabling b44

This was busted after we started using the drivers/net/Makefile to
select b44, and it was *always* enabled.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: uncomment out the wiphy_type on older kernels
Luis R. Rodriguez [Thu, 8 Oct 2009 23:22:54 +0000 (19:22 -0400)]
compat-2.6: uncomment out the wiphy_type on older kernels

Kernels >= 2.6.32 can identify the type of device netdevice
so that sysfs can be used to get this. We never really had a
systematic way of doing this -- now we do through the
SET_NETDEV_DEVTYPE() macro. For older kernels we make the
SET_NETDEV_DEVTYPE() be a no-op this means the wireless type
we define is unused so we ucomment it simply to avoid a
compile warning.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoFix driver-select for ath9k and ath5k
Luis R. Rodriguez [Thu, 8 Oct 2009 21:01:49 +0000 (17:01 -0400)]
Fix driver-select for ath9k and ath5k

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years ago01-netdev.patch: temporary fix for libertas/main.c
Luis R. Rodriguez [Thu, 8 Oct 2009 21:01:23 +0000 (17:01 -0400)]
01-netdev.patch: temporary fix for libertas/main.c

We'll remove this once John merges my patch.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoAdd 13-trace.patch for skipping a trace header
Luis R. Rodriguez [Thu, 8 Oct 2009 20:36:08 +0000 (16:36 -0400)]
Add 13-trace.patch for skipping a trace header

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years ago12-iw_handler-changes.patch: cast to struct ieee80211_device *
Luis R. Rodriguez [Thu, 8 Oct 2009 20:16:47 +0000 (16:16 -0400)]
12-iw_handler-changes.patch: cast to struct ieee80211_device *

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: add 12-iw_handler-changes.patch
Luis R. Rodriguez [Thu, 8 Oct 2009 20:01:34 +0000 (16:01 -0400)]
compat-2.6: add 12-iw_handler-changes.patch

This accounts for changes on the iw_handler.h

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: fix 11-dev-pm-ops.patch
Luis R. Rodriguez [Thu, 8 Oct 2009 14:57:45 +0000 (10:57 -0400)]
compat-2.6: fix 11-dev-pm-ops.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: stop shipping bleeding edge iw_handler.h
Luis R. Rodriguez [Thu, 8 Oct 2009 13:36:15 +0000 (09:36 -0400)]
compat-2.6: stop shipping bleeding edge iw_handler.h

We should be using the old kernel's header instead.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: adding ethtool.h to compat-2.6.31.h
Hin-Tak Leung [Wed, 7 Oct 2009 03:39:22 +0000 (04:39 +0100)]
compat-2.6: adding ethtool.h to compat-2.6.31.h

Between 2.6.30 and 2.6.31, linux/netdevice.h started
to include linux/ethtool.h (commit b1b67dd45a6b629eb41553856805aaa1614fbb83,
"net: factor out ethtool invocation of vlan/macvlan drivers"),
and commit 7508e486965b0af13984bc6d9da62a8d8f0dc5f9,
"cfg80211: add firmware and hardware version to wiphy", introduces
dependency of ETHTOOL_BUSINFO_LEN from linux/ethtool.h
to net/cfg80211.h .

Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
15 years agocompat-2.6: backport dev_pm_ops stuff and SIMPLE_DEV_PM_OPS
Luis R. Rodriguez [Wed, 7 Oct 2009 06:24:09 +0000 (02:24 -0400)]
compat-2.6: backport dev_pm_ops stuff and SIMPLE_DEV_PM_OPS

The 2.6.29 kernel has new struct dev_pm_ops [1] which are used
on the pci device to distinguish power management hooks for suspend
to RAM and hibernation. Older kernels don't have these so we need
to resort back to the good ol' suspend/resume. Fortunately the calls
are not so different so it should be possible to resuse the same
calls on compat code with only slight modifications.

The SIMPLE_DEV_PM_OPS macro is used as a helper to make the regular
suspend/resume calls be linked to the equivalent hibernation calls
as that is the same behaviour in older kernels. We backport
SIMPLE_DEV_PM_OPS only for kernels 2.6.29..2.6.31 and for older
kernels this is a no-op.

[1] http://lxr.linux.no/#linux+v2.6.29/include/linux/pm.h#L170

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offsets for 09-threaded-irq.patch
Luis R. Rodriguez [Wed, 7 Oct 2009 05:45:46 +0000 (01:45 -0400)]
Update hunk offsets for 09-threaded-irq.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunks offsets for libertas on 01-netdev.patch
Luis R. Rodriguez [Wed, 7 Oct 2009 05:43:56 +0000 (01:43 -0400)]
Update hunks offsets for libertas on 01-netdev.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: adjusting 01-netdev.patch for libertas cfg80211 support
Hin-Tak Leung [Wed, 7 Oct 2009 02:50:57 +0000 (03:50 +0100)]
compat-2.6: adjusting 01-netdev.patch for libertas cfg80211 support

Adjusting the netdev patch slightly to cope with recent change
in libertas regarding cfg80211 support:

    commit 6c65edc7a3e9452509a898cc9bbc210b0121617f
    Author: Holger Schurig <hs4233@mail.mn-solutions.de>
    Date:   Tue Oct 6 16:31:54 2009 +0200

        libertas: first stab at cfg80211 support

Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
15 years agoath9k: use CONFIG_ATH9K_HW for driver select
Luis R. Rodriguez [Wed, 7 Oct 2009 01:21:31 +0000 (21:21 -0400)]
ath9k: use CONFIG_ATH9K_HW for driver select

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoath9k: enable CONFIG_ATH9K_HW
Luis R. Rodriguez [Wed, 7 Oct 2009 01:19:56 +0000 (21:19 -0400)]
ath9k: enable CONFIG_ATH9K_HW

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoconfig.mk: remove CONFIG_WEXT_* stuff
Luis R. Rodriguez [Tue, 6 Oct 2009 20:01:38 +0000 (16:01 -0400)]
config.mk: remove CONFIG_WEXT_* stuff

This should not be enabled by compat-wireless -- this is the
old wext stuff which is always built into the kernel. On newer
kernels (>= 2.6.33) these config options will already be provided
by your kernel.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocfg80211: add wext handlers back to netdev for compat code
Luis R. Rodriguez [Tue, 6 Oct 2009 18:19:02 +0000 (14:19 -0400)]
cfg80211: add wext handlers back to netdev for compat code

The patch "wext: refactor" by Johannes Berg refactored
wext code so that new kernels no longer get the wext
handlers through struct netdevice, instead they get
it through the struct wiphy which is cfg80211 specific.

For old kernels this means you get not wext handlers
anymore when backporting code, this adds the wext handler
back to the netdevice wireless_handlers to let compat
users use wext again.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offsets for 99-change-makefiles.patch
Luis R. Rodriguez [Tue, 6 Oct 2009 17:02:04 +0000 (13:02 -0400)]
Update hunk offsets for 99-change-makefiles.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offsets for 09-threaded-irq.patch
Luis R. Rodriguez [Tue, 6 Oct 2009 17:00:48 +0000 (13:00 -0400)]
Update hunk offsets for 09-threaded-irq.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offsets for 08-rename-iwl4965-config.patch
Luis R. Rodriguez [Tue, 6 Oct 2009 16:59:14 +0000 (12:59 -0400)]
Update hunk offsets for 08-rename-iwl4965-config.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunk offsets for 03-rfkill.patch
Luis R. Rodriguez [Tue, 6 Oct 2009 16:57:40 +0000 (12:57 -0400)]
Update hunk offsets for 03-rfkill.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate offsets for libertas for 01-netdev.patch
Luis R. Rodriguez [Tue, 6 Oct 2009 16:51:11 +0000 (12:51 -0400)]
Update offsets for libertas for 01-netdev.patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoconfig.mk: enable CONFIG_CFG80211_WEXT
Luis R. Rodriguez [Tue, 6 Oct 2009 16:47:12 +0000 (12:47 -0400)]
config.mk: enable CONFIG_CFG80211_WEXT

Othwerise wext isn't enabled.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoMake it compile with wireless-testing master-2009-09-30
Hauke Mehrtens [Fri, 2 Oct 2009 21:13:33 +0000 (23:13 +0200)]
Make it compile with wireless-testing master-2009-09-30

DIV_ROUND_CLOSEST is needed by the b44 driver.
Most of the rest is needed because of "wext: refactor"
in wireless-testing.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoadmin-update: fix a print, use echo -e
Luis R. Rodriguez [Fri, 2 Oct 2009 23:25:56 +0000 (16:25 -0700)]
admin-update: fix a print, use echo -e

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-wireless: Fix the bleeding-edge version to build on 2.6.27
Larry Finger [Fri, 2 Oct 2009 01:23:13 +0000 (20:23 -0500)]
compat-wireless: Fix the bleeding-edge version to build on 2.6.27

When building the bleeding-edge compat-wireless for kernel 2.6.27,
several compilation errors were detected.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
15 years agocompat-wireless: Fix b44 build issues.
Tim Gardner [Wed, 30 Sep 2009 17:00:00 +0000 (11:00 -0600)]
compat-wireless: Fix b44 build issues.

Even though CONFIG_B44 is defined, there is no Makefile
created in drivers/net. This failure to build allows the
in-kernel version of b44 to get loaded with a compat-wireless
version of ssb.ko, never a good thing.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
15 years agoFix compilation against for 2.6.32 changes
Luis R. Rodriguez [Tue, 29 Sep 2009 00:47:56 +0000 (17:47 -0700)]
Fix compilation against for 2.6.32 changes

2.6.32 added SET_NETDEV_DEVTYPE() and netdev_tx

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agocompat-2.6: adding driver-select script support for rtl818x
Hin-Tak Leung [Mon, 28 Sep 2009 19:08:34 +0000 (20:08 +0100)]
compat-2.6: adding driver-select script support for rtl818x

adding driver-select script support for rtl818x

Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
15 years agocompat-2.6: adding notes on installing to non-running kernel
Hin-Tak Leung [Mon, 28 Sep 2009 19:08:54 +0000 (20:08 +0100)]
compat-2.6: adding notes on installing to non-running kernel

adding notes on installing to non-running kernel

Signed-off-by: Hin-Tak Leung <htl10@users.sourceforge.net>
15 years agoAdd scripts/update-initramfs and use it
Luis R. Rodriguez [Sun, 27 Sep 2009 20:58:22 +0000 (13:58 -0700)]
Add scripts/update-initramfs and use it

Some distributions may ship b44 and ssb on the initramfs for
netboot. To help with this we need to update the initrafms
for those distributions.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agofix build problems
Hauke Mehrtens [Wed, 23 Sep 2009 18:50:43 +0000 (20:50 +0200)]
fix build problems

IRQ_WAKE_THREAD is not defined in kernel < 2.6.30
in include/linux/irqreturn.h .

In 09-threaded-irq.patch the condition was wrong.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoUpdate hunks for master-2009-09-23
Luis R. Rodriguez [Wed, 23 Sep 2009 17:31:53 +0000 (10:31 -0700)]
Update hunks for master-2009-09-23

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoBackport threaded IRQ support using workqueues
Luis R. Rodriguez [Wed, 23 Sep 2009 17:26:47 +0000 (10:26 -0700)]
Backport threaded IRQ support using workqueues

b43 makes use this.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoFix rfkill led build on 2.6.30
Luis R. Rodriguez [Sun, 13 Sep 2009 20:33:16 +0000 (13:33 -0700)]
Fix rfkill led build on 2.6.30

Reported-by: Oleh Hello <oleh.hello@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoBackport kmemleak support - do nothing for older kernels
Luis R. Rodriguez [Sat, 5 Sep 2009 19:43:59 +0000 (12:43 -0700)]
Backport kmemleak support - do nothing for older kernels

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoreadd netdev_ops backport to ipw2200.c
Hauke Mehrtens [Thu, 3 Sep 2009 14:31:56 +0000 (16:31 +0200)]
readd netdev_ops backport to ipw2200.c

This fixes building of ipw2200.c for kernel < 2.6.29.
It was introduced in 203a12ff5a432e2ee4a83b38e698bff0dd4efead

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
15 years agoUpdate hunk offsets for compat patches
Luis R. Rodriguez [Wed, 2 Sep 2009 21:17:00 +0000 (14:17 -0700)]
Update hunk offsets for compat patches

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoAdd notes about rfkill and uping interfaces on rfkill patch
Luis R. Rodriguez [Wed, 26 Aug 2009 22:06:53 +0000 (15:06 -0700)]
Add notes about rfkill and uping interfaces on rfkill patch

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUpdate hunks offsets for master-2009-08-20
Luis R. Rodriguez [Thu, 20 Aug 2009 20:51:42 +0000 (13:51 -0700)]
Update hunks offsets for master-2009-08-20

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoUse /dev/rfkill instead of /dev/rfkill_backport
Luis R. Rodriguez [Thu, 20 Aug 2009 20:46:43 +0000 (13:46 -0700)]
Use /dev/rfkill instead of /dev/rfkill_backport

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
15 years agoIncrease speed of compat-wireless build - CONFIG_COMPAT_WIRELESS_* changes
Felix Fietkau [Thu, 20 Aug 2009 17:13:50 +0000 (10:13 -0700)]
Increase speed of compat-wireless build - CONFIG_COMPAT_WIRELESS_* changes

$(shell) calls are pretty expensive in makefiles, avoid so many
calls by doing them only once to set the CONFIG_COMPAT_WIRELESS_*
variables and then using these to check the kernel version later in
config.mk

This speeds up the compat-wireless build process.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>