LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   RTL8187 Driver install problem. (http://www.linuxquestions.org/questions/linux-desktop-74/rtl8187-driver-install-problem-481583/)

Alias_NeO 09-08-2006 09:51 AM

RTL8187 Driver install problem.
 
Hi, all

I just downloaded the rtl8180 driver from sourceforge and extracted the contents to a directory on my desktop, i read the install document which said use "make" and so i did, and came up with the following problems.



Code:

make -C /lib/modules/2.6.17-1.2174_FC5/build SUBDIRS=/home/neo/Desktop/rtl8180-0.21 MODVERDIR=/home/neo/Desktop/rtl8180-0.21 modules
make[1]: Entering directory `/usr/src/kernels/2.6.17-1.2174_FC5-x86_64'
scripts/Makefile.build:17: /home/neo/Desktop/rtl8180-0.21/Makefile: No such file or directory
make[2]: *** No rule to make target `/home/neo/Desktop/rtl8180-0.21/Makefile'. Stop.
make[1]: *** [_module_/home/neo/Desktop/rtl8180-0.21] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.17-1.2174_FC5-x86_64'
make: *** [2.6] Error 2

after this, terminal returns to prompt and all the files from the directory disappear.

Any ideas on how i can fix this please?

I am running Redhat FC5 and performed "yum update" lastnight and acceted the installation of all 800+ packages which came to over 1GB.

Thanks in advance.

Alias_NeO 09-08-2006 09:04 PM

Driver installed
 
Ok, I have gotten a little further. I had to replace the MODVERDIR with the (new?) "M" in the modules makefile and then they compiled fine.

I am now having a problem compiling the driver, the driver uses the old MODULE_PARM so i replaced these with the new module_param equivelents.

Now i get problems in compile with different errors:

output error: r8187_core.c:2338: warning: ISO C90 forbids mixed declarations and code


Code:

2332:int rtl8180_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)

2333:{

2334:        struct r8180_priv *priv = (struct r8180_priv *)ieee80211_priv(dev);

2335:       

2336:        down(&priv->wx_sem);

2337:       

2338:        struct iwreq *wrq = (struct iwreq *) rq;

2339:        int ret=-1;

2340:        switch (cmd) {

2341:            case RTL_IOCTL_WPA_SUPPLICANT:

2342:                ret = ieee80211_wpa_supplicant_ioctl(priv->ieee80211, &wrq->u.data);

2343:                break;


2344:
2345:            default:

2346:                ret = -EOPNOTSUPP;

2347:                break;

2348:        }


2349:
2350:        up(&priv->wx_sem);

2351:       

2352:        return ret;

2353:}

error output: r8180_wx.c:167: error: implicit declaration of function ‘rtl8187_set_rxconf’


Code:

157:static int r8180_wx_set_mode(struct net_device *dev, struct iw_request_info *a,
158:                            union iwreq_data *wrqu, char *b)
159:{
160:        struct r8180_priv *priv = ieee80211_priv(dev);
161:        int ret;
162:       
163:        down(&priv->wx_sem);
164:       
165:        ret = ieee80211_wx_set_mode(priv->ieee80211,a,wrqu,b);
166:       
167:        rtl8187_set_rxconf(dev);
168:       
169:        up(&priv->wx_sem);
170:        return ret;
171:}

If anyone could help me t o fix these i'd be grateful. Thanks


All times are GMT -5. The time now is 05:52 AM.