aur/dkms-8192cu resolve problems with kernel 3.10

This commit is contained in:
moonman 2013-07-11 17:24:16 -06:00
parent 710e671f69
commit 81f39bc212
2 changed files with 37 additions and 3 deletions

View file

@ -6,7 +6,7 @@
pkgname=dkms-8192cu
pkgver=v3.4.4_4749
pkgrel=8
pkgrel=9
pkgdesc="Driver for Realtek RTL8188CUS (8188C, 8192C) chipset wireless cards"
arch=('arm')
url="http://www.realtek.com.tw/"
@ -20,14 +20,16 @@ source=("https://www.dropbox.com/s/3rrxrg55hmnzr1l/$_pkgname-$pkgver.tar.bz2"
"dkms.conf"
"blacklist-dkms-8192cu.conf"
"use_kthread_run_v2.patch"
"add_missing_ids_netgear_dlink.patch")
"add_missing_ids_netgear_dlink.patch"
"fix_310_proc.patch")
md5sums=('f4291ba24e9ff3408c26606ba9400152'
'9de2f7a7788689e2bf7680950b4451d9'
'5f2d28bf3839447bfe762416a89e1a21'
'7b22f83c62456e4b8310e21b56bb4c2f'
'a595c7c7ed240e50e8001094c4488a5a')
'a595c7c7ed240e50e8001094c4488a5a'
'345072f62970d27af3599dccc540683b')
package() {
@ -42,6 +44,7 @@ package() {
patch -p1 -i "$srcdir/use_kthread_run_v2.patch"
patch -Np1 -i "$srcdir/add_missing_ids_netgear_dlink.patch"
patch -Np1 -i "$srcdir/fix_310_proc.patch"
#Disable Power Saving
sed -i 's/^CONFIG_POWER_SAVING\ \ \ =\ y/CONFIG_POWER_SAVING\ =\ n/' Makefile

View file

@ -0,0 +1,31 @@
diff -ruN a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c
--- a/os_dep/linux/os_intfs.c 2012-11-05 00:42:45.000000000 -0700
+++ b/os_dep/linux/os_intfs.c 2013-07-11 16:28:42.000000000 -0600
@@ -255,6 +255,19 @@
static struct proc_dir_entry *rtw_proc = NULL;
static int rtw_proc_cnt = 0;
+#ifndef create_proc_entry
+/* dummy routines */
+void rtw_proc_remove_one(struct net_device *dev)
+{
+}
+
+void rtw_proc_init_one(struct net_device *dev)
+{
+}
+
+#else /* create_proc_entry not defined */
+
+
void rtw_proc_init_one(struct net_device *dev)
{
struct proc_dir_entry *dir_dev = NULL;
@@ -525,6 +538,7 @@
}
}
#endif
+#endif
uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
{