summaryrefslogtreecommitdiff
path: root/net-wireless/compat-wireless/files/compat-wireless-3.5-grsec2.patch
blob: b52cd6d63a7c3141db98f46b38b5b68c92ebb918 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- drivers/net/wireless/ti/wl12xx/main.c
+++ drivers/net/wireless/ti/wl12xx/main.c
Thanks to ryao for explaining the fix on ZFS!
@@ -612,6 +612,10 @@
 	}
 }
 
+static struct wlcore_ops wl127x_ops = {
+	.prepare_read = wl127x_prepare_read
+};
+
 static int wl12xx_identify_chip(struct wl1271 *wl)
 {
 	int ret = 0;
@@ -631,7 +635,8 @@
 		       sizeof(wl->conf.mem));
 
 		/* read data preparation is only needed by wl127x */
-		wl->ops->prepare_read = wl127x_prepare_read;
+		/* wl->ops->prepare_read = wl127x_prepare_read; */
+		wl->ops = &wl127x_ops;
 
 		break;
 
@@ -650,7 +655,8 @@
 		       sizeof(wl->conf.mem));
 
 		/* read data preparation is only needed by wl127x */
-		wl->ops->prepare_read = wl127x_prepare_read;
+		/* wl->ops->prepare_read = wl127x_prepare_read; */
+		wl->ops = &wl127x_ops;
 
 		break;