1 |
matsuu 09/05/03 01:25:19 |
2 |
|
3 |
Added: broadcom-sta-5.10.91.9-linux-2.6.29.patch |
4 |
Log: |
5 |
Version bumped, bug #248450. |
6 |
(Portage version: 2.1.6.11/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.29.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.29.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/broadcom-sta/files/broadcom-sta-5.10.91.9-linux-2.6.29.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: broadcom-sta-5.10.91.9-linux-2.6.29.patch |
15 |
=================================================================== |
16 |
diff -Naur a/src/wl/sys/wl_iw.c b/src/wl/sys/wl_iw.c |
17 |
--- a/src/wl/sys/wl_iw.c 2009-04-23 02:51:58.000000000 +0900 |
18 |
+++ b/src/wl/sys/wl_iw.c 2009-05-03 09:13:38.000000000 +0900 |
19 |
@@ -610,7 +610,11 @@ |
20 |
char *extra |
21 |
) |
22 |
{ |
23 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
24 |
+ wl_iw_t *iw = netdev_priv(dev); |
25 |
+#else |
26 |
wl_iw_t *iw = dev->priv; |
27 |
+#endif |
28 |
struct sockaddr *addr = (struct sockaddr *) extra; |
29 |
int i; |
30 |
|
31 |
@@ -635,7 +639,11 @@ |
32 |
char *extra |
33 |
) |
34 |
{ |
35 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
36 |
+ wl_iw_t *iw = netdev_priv(dev); |
37 |
+#else |
38 |
wl_iw_t *iw = dev->priv; |
39 |
+#endif |
40 |
struct sockaddr *addr = (struct sockaddr *) extra; |
41 |
struct iw_quality *qual = (struct iw_quality *) &addr[iw->spy_num]; |
42 |
int i; |
43 |
@@ -1110,7 +1118,11 @@ |
44 |
char *extra |
45 |
) |
46 |
{ |
47 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
48 |
+ wl_iw_t *iw = netdev_priv(dev); |
49 |
+#else |
50 |
wl_iw_t *iw = dev->priv; |
51 |
+#endif |
52 |
|
53 |
WL_TRACE(("%s: SIOCSIWNICKN\n", dev->name)); |
54 |
|
55 |
@@ -1134,7 +1146,11 @@ |
56 |
char *extra |
57 |
) |
58 |
{ |
59 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
60 |
+ wl_iw_t *iw = netdev_priv(dev); |
61 |
+#else |
62 |
wl_iw_t *iw = dev->priv; |
63 |
+#endif |
64 |
|
65 |
WL_TRACE(("%s: SIOCGIWNICKN\n", dev->name)); |
66 |
|
67 |
@@ -1790,7 +1806,11 @@ |
68 |
int paramid; |
69 |
int paramval; |
70 |
int val = 0; |
71 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
72 |
+ wl_iw_t *iw = netdev_priv(dev); |
73 |
+#else |
74 |
wl_iw_t *iw = dev->priv; |
75 |
+#endif |
76 |
|
77 |
WL_TRACE(("%s: SIOCSIWAUTH\n", dev->name)); |
78 |
|
79 |
@@ -1921,7 +1941,11 @@ |
80 |
int paramid; |
81 |
int paramval = 0; |
82 |
int val; |
83 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
84 |
+ wl_iw_t *iw = netdev_priv(dev); |
85 |
+#else |
86 |
wl_iw_t *iw = dev->priv; |
87 |
+#endif |
88 |
|
89 |
WL_TRACE(("%s: SIOCGIWAUTH\n", dev->name)); |
90 |
|
91 |
diff -Naur a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c |
92 |
--- a/src/wl/sys/wl_linux.c 2009-04-23 02:52:08.000000000 +0900 |
93 |
+++ b/src/wl/sys/wl_linux.c 2009-05-03 09:13:38.000000000 +0900 |
94 |
@@ -53,6 +53,9 @@ |
95 |
#include <linux/pci_ids.h> |
96 |
#define WLC_MAXBSSCFG 1 |
97 |
|
98 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
99 |
+#include <net/lib80211.h> |
100 |
+#endif |
101 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) |
102 |
#include <net/ieee80211.h> |
103 |
#endif |
104 |
@@ -130,7 +133,11 @@ |
105 |
u8 rx_hdr[16], tx_hdr[16]; |
106 |
}; |
107 |
|
108 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
109 |
+#define WL_DEV_IF(dev) ((wl_if_t*)netdev_priv(dev)) |
110 |
+#else |
111 |
#define WL_DEV_IF(dev) ((wl_if_t*)(dev)->priv) |
112 |
+#endif |
113 |
#define WL_INFO(dev) ((wl_info_t*)(WL_DEV_IF(dev)->wl)) |
114 |
|
115 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) |
116 |
@@ -282,6 +289,9 @@ |
117 |
dev = wlif->dev; |
118 |
wl->dev = dev; |
119 |
wl_if_setup(dev); |
120 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
121 |
+ wlif = netdev_priv(dev); |
122 |
+#endif |
123 |
|
124 |
dev->base_addr = regs; |
125 |
|
126 |
@@ -359,10 +369,19 @@ |
127 |
|
128 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) |
129 |
|
130 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
131 |
+ wl->tkipmodops = lib80211_get_crypto_ops("TKIP"); |
132 |
+#else |
133 |
wl->tkipmodops = ieee80211_get_crypto_ops("TKIP"); |
134 |
+#endif |
135 |
if (wl->tkipmodops == NULL) { |
136 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
137 |
+ request_module("lib80211"); |
138 |
+ wl->tkipmodops = lib80211_get_crypto_ops("TKIP"); |
139 |
+#else |
140 |
request_module("ieee80211_crypt_tkip"); |
141 |
wl->tkipmodops = ieee80211_get_crypto_ops("TKIP"); |
142 |
+#endif |
143 |
} |
144 |
#endif |
145 |
#ifdef CONFIG_WIRELESS_EXT |
146 |
@@ -666,7 +685,11 @@ |
147 |
} |
148 |
|
149 |
if (wl->monitor) { |
150 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
151 |
+ wl_free_if(wl, (wl_if_t *)netdev_priv(wl->monitor)); |
152 |
+#else |
153 |
wl_free_if(wl, (wl_if_t *)(wl->monitor->priv)); |
154 |
+#endif |
155 |
wl->monitor = NULL; |
156 |
} |
157 |
|
158 |
@@ -834,6 +857,9 @@ |
159 |
#else |
160 |
|
161 |
dev = alloc_netdev(0, name, ether_setup); |
162 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
163 |
+ wlif = netdev_priv(dev); |
164 |
+#endif |
165 |
if (!dev) { |
166 |
MFREE(wl->osh, wlif, sizeof(wl_if_t)); |
167 |
WL_ERROR(("wl%d: wl_alloc_if: out of memory, alloc_netdev\n", |
168 |
@@ -847,7 +873,9 @@ |
169 |
wlif->wl = wl; |
170 |
wlif->wlcif = wlcif; |
171 |
wlif->subunit = subunit; |
172 |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) |
173 |
dev->priv = wlif; |
174 |
+#endif |
175 |
|
176 |
if (iftype != WL_IFTYPE_MON && wl->dev && netif_queue_stopped(wl->dev)) |
177 |
netif_stop_queue(dev); |
178 |
diff -Naur a/src/wl/sys/wl_linux.h b/src/wl/sys/wl_linux.h |
179 |
--- a/src/wl/sys/wl_linux.h 2009-04-23 02:52:13.000000000 +0900 |
180 |
+++ b/src/wl/sys/wl_linux.h 2009-05-03 10:14:47.000000000 +0900 |
181 |
@@ -85,10 +85,16 @@ |
182 |
bool resched; |
183 |
uint32 pci_psstate[16]; |
184 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) |
185 |
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) |
186 |
+ struct lib80211_crypto_ops *tkipmodops; |
187 |
+ struct lib80211_tkip_data *tkip_ucast_data; |
188 |
+ struct lib80211_tkip_data *tkip_bcast_data; |
189 |
+#else |
190 |
struct ieee80211_crypto_ops *tkipmodops; |
191 |
struct ieee80211_tkip_data *tkip_ucast_data; |
192 |
struct ieee80211_tkip_data *tkip_bcast_data; |
193 |
#endif |
194 |
+#endif |
195 |
|
196 |
uint stats_id; |