Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 195182 Details for
Bug 248450
New ebuild: net-wireless/broadcom-sta
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a patch to convert the wl driver to net_device_ops (required to build on 2.6.31+)
hybrid-portsrc-x86_32-v5_10_91_9-convert_to_net_device_ops.diff (text/plain), 1.26 KB, created by
Tomáš Szépe
on 2009-06-19 16:21:35 UTC
(
hide
)
Description:
a patch to convert the wl driver to net_device_ops (required to build on 2.6.31+)
Filename:
MIME Type:
Creator:
Tomáš Szépe
Created:
2009-06-19 16:21:35 UTC
Size:
1.26 KB
patch
obsolete
>diff -urN a/src/wl/sys/wl_linux.c b/src/wl/sys/wl_linux.c >--- a/src/wl/sys/wl_linux.c 2009-06-19 17:41:26 +0200 >+++ b/src/wl/sys/wl_linux.c 2009-06-19 18:00:51 +0200 >@@ -219,16 +219,20 @@ > }; > #endif > >+static const struct net_device_ops wl_netdev_ops = { >+ .ndo_open = wl_open, >+ .ndo_stop = wl_close, >+ .ndo_start_xmit = wl_start, >+ .ndo_get_stats = wl_get_stats, >+ .ndo_set_mac_address = wl_set_mac_address, >+ .ndo_set_multicast_list = wl_set_multicast_list, >+ .ndo_do_ioctl = wl_ioctl, >+}; >+ > static > void wl_if_setup(struct net_device *dev) > { >- dev->open = wl_open; >- dev->stop = wl_close; >- dev->hard_start_xmit = wl_start; >- dev->get_stats = wl_get_stats; >- dev->set_mac_address = wl_set_mac_address; >- dev->set_multicast_list = wl_set_multicast_list; >- dev->do_ioctl = wl_ioctl; >+ dev->netdev_ops = &wl_netdev_ops; > #ifdef CONFIG_WIRELESS_EXT > #if WIRELESS_EXT < 19 > dev->get_wireless_stats = wl_get_wireless_stats; >diff -urN a/src/wl/sys/wl_iw.c b/src/wl/sys/wl_iw.c >--- a/src/wl/sys/wl_iw.c 2009-06-19 18:13:20 +0200 >+++ b/src/wl/sys/wl_iw.c 2009-06-19 18:12:04 +0200 >@@ -118,7 +118,7 @@ > > fs = get_fs(); > set_fs(get_ds()); >- ret = dev->do_ioctl(dev, &ifr, SIOCDEVPRIVATE); >+ ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, SIOCDEVPRIVATE); > set_fs(fs); > > return ret;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248450
:
173053
|
173054
|
173055
|
174402
|
176017
|
176018
|
176084
|
176108
|
176112
|
176117
|
177128
|
177129
|
178706
|
179564
|
179581
|
179630
|
179742
|
180576
|
180679
|
184149
|
184151
|
184152
|
184198
|
184309
|
187456
|
189238
|
189250
| 195182 |
232555