Commit a8cb9930 authored by Jan Mette's avatar Jan Mette

--no commit message

--no commit message
parent 9b0a7942
# # $Id: PKGBUILD 59804 2009-11-27 21:57:36Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Laszlo Papp <djszapi@archlinux.us>
pkgname=ar9170-fw
pkgver=1.0
pkgrel=2
pkgdesc="Firmware for the AR9170 wireless drivers"
arch=('any')
url="http://wireless.kernel.org/en/users/Drivers/ar9170"
license=('custom')
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}.tar.gz)
md5sums=('258fb8056e7522a44e07fa2172153893')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware
install -D -m644 ar9170.fw "${pkgdir}/lib/firmware/ar9170.fw" || return 1
install -D -m644 ar9170-1.fw "${pkgdir}/lib/firmware/ar9170-1.fw" || return 1
install -D -m644 ar9170-2.fw "${pkgdir}/lib/firmware/ar9170-2.fw" || return 1
# Install license
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=b43-fwcutter
pkgver=012
pkgrel=1
pkgdesc="firmware extractor for the bcm43xx kernel module"
url="http://linuxwireless.org/en/users/Drivers/b43"
depends=('glibc')
license=('GPL')
arch=('i686' 'x86_64')
source=(http://bu3sch.de/b43/fwcutter/${pkgname}-${pkgver}.tar.bz2)
md5sums=('69eadf67b459f313a8d6b37aaabef96c')
build()
{
cd $startdir/src/$pkgname-$pkgver
make || return 1
install -D -m755 b43-fwcutter $startdir/pkg/usr/bin/b43-fwcutter || return 1
install -D -m644 b43-fwcutter.1 $startdir/pkg/usr/share/man/man1/b43-fwcutter.1 || return 1
}
# $Id: PKGBUILD 59422 2009-11-23 20:05:10Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=ipw2100-fw
pkgver=1.3
pkgrel=4
pkgdesc="Intel Centrino Drivers firmware for IPW2100"
arch=('any')
url="http://ipw2100.sourceforge.net/"
license=('custom')
depends=()
replaces=('ipw2100')
source=(http://bughost.org/firmware/${pkgname}-${pkgver}.tgz)
md5sums=('46aa75bcda1a00efa841f9707bbbd113')
build() {
cd "${srcdir}"
# Install firmware
for i in *.fw
do
install -D -m 644 $i "${pkgdir}/lib/firmware/$i" || return 1
done
# Install license
install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59427 2009-11-23 20:20:15Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=ipw2200-fw
pkgver=3.1
pkgrel=2
pkgdesc="Firmware for the Intel PRO/Wireless 2200BG"
arch=('any')
url='http://ipw2200.sourceforge.net/'
license=('custom')
depends=()
source=(http://bughost.org/firmware/${pkgname}-${pkgver}.tgz)
replaces=('ipw2200')
md5sums=('eaba788643c7cc7483dd67ace70f6e99')
build() {
cd "${srcdir}/ipw2200-fw-${pkgver}"
# Install firmware
for i in ipw*.fw; do
install -D -m 644 $i "${pkgdir}/lib/firmware/$i"
done
# Install license
install -D -m 644 LICENSE.ipw2200-fw "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59385 2009-11-23 10:35:44Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Ralf Barth <archlinux dot org at haggy dot org>
pkgname=iwlwifi-1000-ucode
pkgver=128.50.3.1
pkgrel=1
pkgdesc="Intel wireless firmware for Intel's WiFi Link 1000BGN wireless devices"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz)
md5sums=('cfad8d5a7651dde665c5c23e8209c35d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware
install -D -m 644 iwlwifi-1000-3.ucode "${pkgdir}/lib/firmware/iwlwifi-1000-3.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-1000-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59408 2009-11-23 18:02:38Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=iwlwifi-3945-ucode
pkgver=15.32.2.9
pkgrel=2
pkgdesc="Intel wireless firmware for Intel PRO/Wireless 3945ABG/BG"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz)
md5sums=('d99a75ab1305d1532a09471b2f9a547a')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install API version 2 firmware
install -D -m 644 iwlwifi-3945-2.ucode "${pkgdir}/lib/firmware/iwlwifi-3945-2.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-3945-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59405 2009-11-23 17:55:58Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=iwlwifi-4965-ucode
pkgver=228.61.2.24
pkgrel=2
pkgdesc="Intel wireless firmware for IPW4965 (iwlwifi driver)"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz)
md5sums=('2531028773cfc22aca5539c734f2a241')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware (ABI version 2, for future versions of iwl4965)
install -D -m 644 iwlwifi-4965-2.ucode "${pkgdir}/lib/firmware/iwlwifi-4965-2.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-4965-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=iwlwifi-5000-ucode
pkgver=8.24.2.12
_old_pkgver=5.4.A.11
pkgrel=2
pkgdesc="Intel wireless firmware for Intel's 5100BG, 5100ABG, 5100AGN, 5300AGN and 5350AGN wireless devices"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz
http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${_old_pkgver}.tar.gz)
md5sums=('45f74d052d52f6f473dc7a8d412f2274'
'748860c5079dde1a1313e72511b9322a')
build() {
cd "${srcdir}/${pkgname}-${_old_pkgver}"
# Install API version 1 firmware
install -D -m 644 iwlwifi-5000-1.ucode "${pkgdir}/lib/firmware/iwlwifi-5000-1.ucode" || return 1
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware
install -D -m 644 iwlwifi-5000-2.ucode "${pkgdir}/lib/firmware/iwlwifi-5000-2.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-5000-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=iwlwifi-5150-ucode
pkgver=8.24.2.2
pkgrel=2
pkgdesc="Intel wireless firmware for Intel Wireless WiFi 5150AGN"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz)
md5sums=('f9cee16e455e8046b1bf62c93f882d5d')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware
install -D -m 644 iwlwifi-5150-2.ucode "${pkgdir}/lib/firmware/iwlwifi-5150-2.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-5150-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59312 2009-11-22 00:30:19Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
pkgname=iwlwifi-6000-ucode
pkgver=9.176.4.1
pkgrel=1
pkgdesc="Intel wireless firmware for Intel's 6000 Series wireless devices"
arch=('any')
url="http://intellinuxwireless.org/?p=iwlwifi"
license=('custom')
depends=()
source=(http://intellinuxwireless.org/iwlwifi/downloads/${pkgname}-${pkgver}.tgz)
md5sums=('d0489d67d88e681eb3070c57daccfd92')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Install firmware
install -D -m 644 iwlwifi-6000-4.ucode "${pkgdir}/lib/firmware/iwlwifi-6000-4.ucode" || return 1
# Install license
install -D -m 644 LICENSE.iwlwifi-6000-ucode "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59445 2009-11-24 00:06:36Z giovanni $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Alois Nespor <alois.nespor@gmail.com>
pkgname=rt2870usb-fw
pkgver=8
pkgrel=1
pkgdesc="Firmware for RaLink RT2870USB (RT2870/RT2770) WiFi adapter"
url="http://web.ralinktech.com/ralink/Home/Support/Linux.html"
arch=('any')
license=('custom')
depends=()
source=(ftp://ftp.archlinux.org/other/rt2870usb-fw/RT2870_Firmware_V$pkgver.zip)
md5sums=('a7aae1d8cfd68e4d86a73000df0b6584')
build() {
cd "${srcdir}/RT2870_Firmware_V${pkgver}"
# Install firmware
install -D -m 644 rt2870.bin "${pkgdir}/lib/firmware/rt2870.bin" || return 1
# Install license
install -D -m 644 LICENSE.ralink-firmware.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59431 2009-11-23 20:55:55Z giovanni $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=rt2x00-rt61-fw
pkgver=1.2
pkgrel=4
pkgdesc="Firmware for the rt2x00 wireless drivers"
arch=('any')
url="http://www.ralinktech.com/"
license=('custom')
depends=()
source=(ftp://ftp.archlinux.org/other/rt2x00-rt61-fw/RT61_Firmware_V${pkgver}.zip)
md5sums=('d4c690c93b470bc9a681297c2adc6281')
build() {
cd "${srcdir}/RT61_Firmware_V${pkgver}"
# Install firmware
for i in *.bin
do
install -D -m 644 $i "${pkgdir}/lib/firmware/$i" || return 1
done
# Install license
install -D -m 644 LICENSE.ralink-firmware.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59434 2009-11-23 21:13:35Z giovanni $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=rt2x00-rt71w-fw
pkgver=1.8
pkgrel=4
pkgdesc="Firmware for the rt2x00 wireless drivers"
arch=('any')
url="http://www.ralinktech.com/"
license=('custom')
depends=()
source=(ftp://ftp.archlinux.org/other/rt2x00-rt71w-fw/RT71W_Firmware_V${pkgver}.zip)
md5sums=('1e7a5dc574e0268574fcda3fd5cf52f7')
build() {
cd "${srcdir}/RT71W_Firmware_V${pkgver}"
# Install firmware
install -D -m 644 rt73.bin "${pkgdir}/lib/firmware/rt73.bin" || return 1
# Install license
install -D -m 644 LICENSE.ralink-firmware.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}
# $Id: PKGBUILD 59442 2009-11-23 23:27:25Z giovanni $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=tiacx-firmware
pkgver=2
pkgrel=2
pkgdesc="Firmware for Texas Instruments ACX100/ACX111 wireless chips."
arch=('any')
url="http://acx100.sourceforge.net/"
license=('MPL')
install=tiacx-firmware.install
depends=()
source=(ftp://ftp.archlinux.org/other/tiacx-firmware/acx-firmware-20060207.tar.bz2)
md5sums=('b8efea38c2c598190604dfa297cc9675')
build() {
install -d ${pkgdir}/usr/share
cp -r fw "${pkgdir}/usr/share/tiacx"
find ${pkgdir} -type d -exec chmod 755 {} \;
find ${pkgdir} -type f -exec chmod 644 {} \;
}
post_install() {
cat << 'EOM'
==>
==> PLEASE NOTE:
==> The firmware files for ACX100/111 devices are installed in
==> /usr/share/tiacx. Please identify the correct file(s) for your
==> device and copy them to /lib/firmware.
==>
==> See http://acx100.sourceforge.net/wiki/Firmware for details.
==>
EOM
}
post_upgrade() {
post_install
}
# $Id: PKGBUILD 62481 2010-01-09 16:31:59Z tpowa $
# Maintainer: James Rayner <iphitus@gmail.com>
pkgname=tiacx
pkgver=20080210
pkgrel=13
pkgdesc="OpenSource module for Texas Instruments ACX100/ACX111 wireless chips. For stock arch 2.6 kernel"
arch=(i686 x86_64)
url="http://acx100.sourceforge.net/"
license=('MPL')
depends=('wireless_tools' 'kernel26>=2.6.32.3' 'kernel26<2.6.33' 'tiacx-firmware')
makedepends=('kernel26-headers>=2.6.32' 'kernel26-headers<2.6.33')
install=acx.install
source=(http://downloads.sourceforge.net/sourceforge/acx100/acx-$pkgver.tar.bz2
kernel-2.6.27.patch
kernel-2.6.30.patch
kernel-2.6.31.patch)
_kernver=2.6.32-ARCH
build() {
cd $startdir/src/acx-$pkgver
patch -Np1 -i ../kernel-2.6.27.patch || return 1
patch -Np0 -i ../kernel-2.6.30.patch || return 1
patch -Np1 -i ../kernel-2.6.31.patch || return 1
make -C /lib/modules/${_kernver}/build M=`pwd` || return 1
install -D acx.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/wireless/tiacx/acx.ko
sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
}
md5sums=('7d5ce3215708e4e9f95cf567a9ee3a12'
'9895f72f8d0c84956b0f6c3b16df0fe8'
'e2900aee839ce711a7f7606b3e3de36e'
'dbcb276d77df7801cef58a85c18dfe94')
# arg 1: the new package version
post_install() {
KERNEL_VERSION='2.6.32-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
KERNEL_VERSION='2.6.32-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
# arg 1: the old package version
post_remove() {
KERNEL_VERSION='2.6.32-ARCH'
depmod $KERNEL_VERSION > /dev/null 2>&1
}
diff -Nur acx-20080210.orig/ioctl.c acx-20080210/ioctl.c
--- acx-20080210.orig/ioctl.c 2008-02-10 21:06:42.000000000 +0100
+++ acx-20080210/ioctl.c 2008-10-10 17:07:32.000000000 +0200
@@ -489,6 +489,7 @@
static char*
acx_s_scan_add_station(
acx_device_t *adev,
+ struct iw_request_info *info,
char *ptr,
char *end_buf,
struct client *bss)
@@ -503,14 +504,14 @@
iwe.u.ap_addr.sa_family = ARPHRD_ETHER;
MAC_COPY(iwe.u.ap_addr.sa_data, bss->bssid);
acxlog_mac(L_IOCTL, "scan, station address: ", bss->bssid, "\n");
- ptr = iwe_stream_add_event(ptr, end_buf, &iwe, IW_EV_ADDR_LEN);
+ ptr = iwe_stream_add_event(info, ptr, end_buf, &iwe, IW_EV_ADDR_LEN);
/* Add ESSID */
iwe.cmd = SIOCGIWESSID;
iwe.u.data.length = bss->essid_len;
iwe.u.data.flags = 1;
log(L_IOCTL, "scan, essid: %s\n", bss->essid);
- ptr = iwe_stream_add_point(ptr, end_buf, &iwe, bss->essid);
+ ptr = iwe_stream_add_point(info, ptr, end_buf, &iwe, bss->essid);
/* Add mode */
iwe.cmd = SIOCGIWMODE;
@@ -520,7 +521,7 @@
else
iwe.u.mode = IW_MODE_ADHOC;
log(L_IOCTL, "scan, mode: %d\n", iwe.u.mode);
- ptr = iwe_stream_add_event(ptr, end_buf, &iwe, IW_EV_UINT_LEN);
+ ptr = iwe_stream_add_event(info, ptr, end_buf, &iwe, IW_EV_UINT_LEN);
}
/* Add frequency */
@@ -528,7 +529,7 @@
iwe.u.freq.m = acx_channel_freq[bss->channel - 1] * 100000;
iwe.u.freq.e = 1;
log(L_IOCTL, "scan, frequency: %d\n", iwe.u.freq.m);
- ptr = iwe_stream_add_event(ptr, end_buf, &iwe, IW_EV_FREQ_LEN);
+ ptr = iwe_stream_add_event(info, ptr, end_buf, &iwe, IW_EV_FREQ_LEN);
/* Add link quality */
iwe.cmd = IWEVQUAL;
@@ -546,7 +547,7 @@
iwe.u.qual.updated = 7;
log(L_IOCTL, "scan, link quality: %d/%d/%d\n",
iwe.u.qual.level, iwe.u.qual.noise, iwe.u.qual.qual);
- ptr = iwe_stream_add_event(ptr, end_buf, &iwe, IW_EV_QUAL_LEN);
+ ptr = iwe_stream_add_event(info, ptr, end_buf, &iwe, IW_EV_QUAL_LEN);
/* Add encryption */
iwe.cmd = SIOCGIWENCODE;
@@ -556,7 +557,7 @@
iwe.u.data.flags = IW_ENCODE_DISABLED;
iwe.u.data.length = 0;
log(L_IOCTL, "scan, encryption flags: %X\n", iwe.u.data.flags);
- ptr = iwe_stream_add_point(ptr, end_buf, &iwe, bss->essid);
+ ptr = iwe_stream_add_point(info, ptr, end_buf, &iwe, bss->essid);
/* add rates */
iwe.cmd = SIOCGIWRATE;
@@ -570,7 +571,7 @@
if (rate & 1) {
iwe.u.bitrate.value = *p * 500000; /* units of 500kb/s */
log(L_IOCTL, "scan, rate: %d\n", iwe.u.bitrate.value);
- ptr_rate = iwe_stream_add_value(ptr, ptr_rate, end_buf,
+ ptr_rate = iwe_stream_add_value(info, ptr, ptr_rate, end_buf,
&iwe, IW_EV_PARAM_LEN);
}
rate >>= 1;
@@ -625,7 +626,7 @@
for (i = 0; i < ARRAY_SIZE(adev->sta_list); i++) {
struct client *bss = &adev->sta_list[i];
if (!bss->used) continue;
- ptr = acx_s_scan_add_station(adev, ptr,
+ ptr = acx_s_scan_add_station(adev, info, ptr,
extra + IW_SCAN_MAX_DATA, bss);
}
dwrq->length = ptr - extra;
--- wlan_compat.h~ 2009-06-12 09:17:30.000000000 +0200
+++ wlan_compat.h 2009-06-12 09:17:30.000000000 +0200
@@ -217,13 +217,6 @@
/*=============================================================*/
#define WLAN_PACKED __attribute__ ((packed))
-/* Interrupt handler backwards compatibility stuff */
-#ifndef IRQ_NONE
-#define IRQ_NONE
-#define IRQ_HANDLED
-typedef void irqreturn_t;
-#endif
-
#ifndef ARPHRD_IEEE80211_PRISM
#define ARPHRD_IEEE80211_PRISM 802
#endif
--- acx-20080210/pci.c 2008-02-10 21:06:42.000000000 +0100
+++ acx-20080210/pci.c 2009-09-11 22:27:28.000000000 +0200
@@ -1437,6 +1437,19 @@
static void dummy_netdev_init(struct net_device *ndev) {}
+static const struct net_device_ops acx_netdev_ops = {
+ .ndo_open = &acxpci_e_open,
+ .ndo_stop = &acxpci_e_close,
+ .ndo_start_xmit = &acx_i_start_xmit,
+ .ndo_get_stats = &acx_e_get_stats,
+#if IW_HANDLER_VERSION <= 5
+ .ndo_get_wireless_stats = &acx_e_get_wireless_stats,
+#endif
+ .ndo_set_multicast_list = &acxpci_i_set_multicast_list,
+ .ndo_tx_timeout = &acxpci_i_tx_timeout,
+ .ndo_change_mtu = &acx_e_change_mtu,
+};
+
#ifdef CONFIG_PCI
static int __devinit acxpci_e_probe(struct pci_dev *pdev, const struct pci_device_id *id)
{
@@ -1547,17 +1560,8 @@
}
ether_setup(ndev);
- ndev->open = &acxpci_e_open;
- ndev->stop = &acxpci_e_close;
- ndev->hard_start_xmit = &acx_i_start_xmit;
- ndev->get_stats = &acx_e_get_stats;
-#if IW_HANDLER_VERSION <= 5
- ndev->get_wireless_stats = &acx_e_get_wireless_stats;
-#endif
- ndev->wireless_handlers = (struct iw_handler_def *)&acx_ioctl_handler_def;
- ndev->set_multicast_list = &acxpci_i_set_multicast_list;
- ndev->tx_timeout = &acxpci_i_tx_timeout;
- ndev->change_mtu = &acx_e_change_mtu;
+ ndev->wireless_handlers = (struct iw_handler_def *)&acx_ioctl_handler_def;
+ ndev->netdev_ops = &acx_netdev_ops;
ndev->watchdog_timeo = 4 * HZ;
ndev->irq = pdev->irq;
ndev->base_addr = pci_resource_start(pdev, 0);
--- acx-20080210/usb.c 2008-02-10 21:06:42.000000000 +0100
+++ acx-20080210/usb.c 2009-09-11 22:38:42.000000000 +0200
@@ -778,6 +778,21 @@
static void
dummy_netdev_init(struct net_device *ndev) {}
+static const struct net_device_ops acxusb_netdev_ops = {
+ .ndo_open = &acxusb_e_open,
+ .ndo_stop = &acxusb_e_close,
+ .ndo_start_xmit = (void *)&acx_i_start_xmit,
+ .ndo_get_stats = (void *)&acx_e_get_stats,
+#if IW_HANDLER_VERSION <= 5
+ .ndo_get_wireless_stats = (void *)&acx_e_get_wireless_stats,
+#endif
+ .ndo_set_multicast_list = (void *)&acxusb_i_set_rx_mode,
+#ifdef HAVE_TX_TIMEOUT
+ .ndo_tx_timeout = &acxusb_i_tx_timeout,
+#endif
+ .ndo_change_mtu = &acx_e_change_mtu,
+};
+
static int
acxusb_e_probe(struct usb_interface *intf, const struct usb_device_id *devID)
{
@@ -845,20 +860,11 @@
/* Register the callbacks for the network device functions */
ether_setup(ndev);
- ndev->open = &acxusb_e_open;
- ndev->stop = &acxusb_e_close;
- ndev->hard_start_xmit = (void *)&acx_i_start_xmit;
- ndev->get_stats = (void *)&acx_e_get_stats;
-#if IW_HANDLER_VERSION <= 5
- ndev->get_wireless_stats = (void *)&acx_e_get_wireless_stats;
-#endif
ndev->wireless_handlers = (struct iw_handler_def *)&acx_ioctl_handler_def;
- ndev->set_multicast_list = (void *)&acxusb_i_set_rx_mode;
+ ndev->netdev_ops = &acxusb_netdev_ops;
#ifdef HAVE_TX_TIMEOUT
- ndev->tx_timeout = &acxusb_i_tx_timeout;
ndev->watchdog_timeo = 4 * HZ;
#endif
- ndev->change_mtu = &acx_e_change_mtu;
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) && defined(SET_MODULE_OWNER)
SET_MODULE_OWNER(ndev);
#endif
# $Id: PKGBUILD 59439 2009-11-23 22:50:09Z giovanni $
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=zd1211-firmware
pkgver=1.4
pkgrel=3
pkgdesc="Firmware for the in-kernel26 zd1211rw wireless driver"
arch=('any')
url="http://zd1211.wiki.sourceforge.net/"
license=('GPL')
provides=('zd1211')
source=(http://downloads.sourceforge.net/zd1211/${pkgname}-${pkgver}.tar.bz2)
md5sums=('19f28781d76569af8551c9d11294c870')
build() {
cd "${srcdir}/${pkgname}"
# Install firmware
for i in zd1211* WS11U*
do
install -D -m 644 $i "${pkgdir}/lib/firmware/zd1211/$i" || return 1
done
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment