compat-wireless: compile fix for commit patches/09-threaded-irq.patch

This commit had some compile problem with kernel < 2.6.32

commit c486a4fcc5ddfb3232edfd0489fe63ffc1fa8aea
Author: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Date:   Tue Dec 13 10:40:55 2011 -0800

    compat-wireless: fix patches/09-threaded-irq.patch

There was a semicolon missing at the end of a line and wl1271_hardirq
has to be renamed to wl12xx_hardirq.
This is now compile tested with all maijor kernel version from 2.6.27.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: remove platform_device_id for kernel < 2.6.30

Kernel < 2.6.30 do not support struct platform_device_id, so remove it
for them and hope that the probing will reject an invalid device.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: CONFIG_BT_L2CAP and CONFIG_BT_SCO removed

The config options CONFIG_BT_L2CAP and CONFIG_BT_SCO were removed from
the kernel and this patch removes them from compat-wireless.

commit f1e91e1640d808d332498a6b09b2bcd01462eff9
Author: Ulisses Furquim <ulisses@profusion.mobi>
Date:   Wed Dec 21 01:32:09 2011 -0200

    Bluetooth: Always compile SCO and L2CAP in Bluetooth Core

    The handling of SCO audio links and the L2CAP protocol are essential to
    any system with Bluetooth thus are always compiled in from now on.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: make patches apply again

* sk_add_backlog() is no longer used in net/bluetooth/l2cap_core.c so
the patch is not needed any more.
* ath6k got some now functions and the patches did not apply any more.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: use other workqueue

Old kernel versions do not support WQ_HIGHPRI and WQ_MEM_RECLAIM so we
should use create_singlethread_workqueue() which was used at this
position before.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: no trans_start on netdev_queue

struct netdev_queue does not have the attribute trans_start in kernel <
2.6.31. trans_start on struct net_device does the same on older kernels.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: clarify patches/47-no_trans_start_on_netdev_queue.patch

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: clarify patches/46-use_other_workqueue.patch

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

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

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wirless: refresh patches

Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: build: Throw error if space in path

Because of make limitations, the build will fail if there are spaces in
the path leading to the compat-wireless directory.
I tried to make it work anyway for a while and, while it probably is
possible, it would involve rewriting part of kbuild and well...
This at least throws up nicely if there is a space in the path.

Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: check if modprobe exists before using it

If you're cross-compiling compat-wireless on a different host, you
can't reliably use modprobe.  The host system may not even have
modprobe, so it doesn't make sense to run modprobe, unless you're
installing the modules on the target machine.

The modprobe command was being used unconditionally to set the MADWIFI
and OLD_IWL variables.  This commit adds a check to see whether
modprobe exists before trying to use.  It also adds a dependency on
the modprobe commands to all recipes that rely on it, so we fail more
gracefully if modprobe doesn't exist in the system.

Reported by: William List <wlist@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Enable CONFIG_RT2800{PCI,USB}_RT53XX

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: use linux-stable instead of linux-2.6-allstable

I used to use hpa's linux-2.6-allstable.git tree to make
stable releases of compat-wireless. This allowed me to
make updates to the stable releases whenever a 2.6.x.y
extraversion got out -- but also to make updates whenever
Linus updated his own tree so I can make RC releases
based on the latest RC release. Greg has taken over of
that tree and its now called linux-stable.git. What I am
seeing though is that the linux-stable git tree now seems
to not update as often to Linus' tree. This is fine as all
I have to do is add Linus' tree as a remote and fetch
those objects and then reset the tree to say, v3.2-rc6
and that'll get what Linus' tree looks like today.

This patch just changes the path where we pick up stable
releases from but also documents this change in case
anyone that wants to make stable release must also add
Linus' tree as a remote and fetch those objects.

Cc: greg@kroah.com
CC: kvalo@qca.qualcomm.com
Cc: linville@tuxdriver.com
Cc: senthilb@qca.qualcomm.com
Cc: johannes@sipsolutions.net
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: fix wl12xx driver-select

wl12xx is a possible choice for both group drivers and
singular modules (making it impossible to build only
the wl12xx module). change the group name to "ti" instead.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: backport dev_pm_ops for bcma

bcma now also uses dev_pm_ops which does not work with older kernel
versions. Just backport it like it was done for the other drivers.

This should also go into compat-wireless-stable-3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: use skb_get_queue_mapping() in b43 and b43legacy

Use skb_get_queue_mapping() for getting the queue_mapping member of
skb. Some old kernels do not have the member queue_mapping with all
configuration options, but this function always returns something.

This should also go into compat-wireless-stable-3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: rename path_lookup

path_lookup in net/mac80211/mesh_pathtbl.c consolidates with
path_lookup in include/linux/namei.h used in old kernel versions.

This should also go into compat-wireless-stable-3.3.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat-wireless: fix some config options

Adds some missing config options interceded in the last time and remove
some old now unused config options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>