View previous topic :: View next topic |
Author |
Message |
vcr n00b
Joined: 17 Aug 2008 Posts: 2
|
Posted: Sun Aug 17, 2008 4:53 am Post subject: rt2860 with kernel 2.6.26.2 |
|
|
Long story short. I bought a trendnet TEW-623PI version 2.0R (this version has the Realtek chip). When I downloaded the driver for this from http://www.ralinktech.com.tw/data/drivers/2008_0708_RT2860_Linux_STA_v1.7.0.0.tar.bz2 I was running into a problem compiling the code to my kernel version 2.6.26.2 (straight from kernel.org). This is the message I would get:
/home/x/2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/../../os/linux/rt_main_dev.c: In function 'rt_ieee80211_if_setup':
/home/x/2008_0708_RT2860_Linux_STA_v1.7.0.0/os/linux/../../os/linux/rt_main_dev.c:804: error: 'struct net_device' has no member named 'nd_net'
After doing some research into the issue I found out that this nd_net is only available when CONFIG_NET_NS is enabled in the kernel, but in order to turn this on you have to have SYSFS turned off; I didn't like that answer. So, I reworked the function to supply what the driver needed. So far I haven't had any issues with wifi connections or kernel panics.
Here is the diff for the change:
754c754
<
---
> struct net *dev_name; //temporary fix for not having CONFIG_NET_NS set in the kernel
804c804,806
< device = dev_get_by_name(dev->nd_net, slot_name);
---
> // device = dev_get_by_name(dev->nd_net, slot_name);
> dev_name = dev_net(dev);
> device = dev_get_by_name(dev_name, slot_name);
USE AT YOUR OWN RISK.
p.s. from what I can tell in the kernel mailing lists the SYSFS dependency for NET_NS will eventually go away. |
|
Back to top |
|
|
naviathan Apprentice
Joined: 12 Dec 2004 Posts: 231
|
Posted: Wed Aug 27, 2008 3:36 pm Post subject: |
|
|
THANK YOU!!!! _________________ I respect faith, but doubt is what gives you an education.
-- Wilson Mizner |
|
Back to top |
|
|
vcr n00b
Joined: 17 Aug 2008 Posts: 2
|
Posted: Wed Sep 03, 2008 12:16 am Post subject: |
|
|
You're welcome.
I can submit a bug on this, but the last time I checked the repository it didn't have this version of the driver code. If people feel that this change is needed I am willing to go through the effort to make a bug that incorporates a version bump of the driver along with the patch file; what say you? _________________ what you see isn't what you get. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|