LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-17-2007, 04:24 PM   #1
geerkuser
LQ Newbie
 
Registered: Feb 2007
Distribution: Fedora Core 6
Posts: 6

Rep: Reputation: 0
Unhappy Fedora Core 6 WMP54G Make Errors


Have a quick question.

I installed Fedora Core 6 (2.6.18-1.2789.fc6) running and managed to make the WMP54G (RT61 chipset) work. Once the wireless was working, I used the package manager from Gnome to update the software and the dependencies. This caused the system to update, reboot and come back up correctly with new kernel 2.6.19-1.2911.fc6

Now if I try to recompile the WMPG54G drivers so that the wireless card would work, I get the following error. The same files worked fine with the 2.6.18-1.2789.fc6 kernel.

-----------Error Log -----------------
[root@localhost Module]# uname -rm
2.6.19-1.2911.fc6 i686

[root@localhost Module]# make all
make -C /lib/modules/2.6.19-1.2911.fc6/build SUBDIRS=/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module modules
make[1]: Entering directory `/usr/src/kernels/2.6.19-1.2911.fc6-i586'
CC [M] /usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.o
/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c: In function ‘RT61_probe’:
/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c:197: error: ‘struct net_device’ has no member named ‘get_wireless_stats’
/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c: In function ‘RT61_open’:
/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.c:326: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
make[2]: *** [/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module/rtmp_main.o] Error 1
make[1]: *** [_module_/usr/local/RT61_Linux_STA_Drv1.1.0.0/Module] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.19-1.2911.fc6-i586'
make: *** [all] Error 2
[root@localhost Module]#
---------- End error log ----------------------------

Could one someone please let me know what could be wrong. Would appreciate any help. The same files worked with the previous version of the kernel.
 
Old 02-18-2007, 09:17 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Guess you didn't believe me in the other forum. Trust me, I'm right. The core wireless API was changed in the kernel between 2.6.18 and 2.6.19, and your driver code is now outdated. You can either fix it yourself or get a new driver from your vendor. Here's the commit that took away get_wireless_stats from netdevice.h

Code:
commit baef186519c69b11cf7e48c26e75feb1e6173baa
Author: John W. Linville <linville@tuxdriver.com>
Date:   Fri Sep 8 16:04:05 2006 -0400

    [PATCH] WE-21 support (core API)
    
    This is version 21 of the Wireless Extensions. Changelog :
        o finishes migrating the ESSID API (remove the +1)
        o netdev->get_wireless_stats is no more
        o long/short retry
    
    This is a redacted version of a patch originally submitted by Jean
    Tourrilhes.  I removed most of the additions, in order to minimize
    future support requirements for nl80211 (or other WE successor).
    
    CC: Jean Tourrilhes <jt@hpl.hp.com>
    Signed-off-by: John W. Linville <linville@tuxdriver.com>
 
Old 05-04-2007, 12:43 PM   #3
saiftynet
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
The way to get rid of the "get_wireless_stats" failure on compilation is to comment out the lines that call it i.e, in the file rtmp_main.c (in the Modules folder): -
the line that says
net_dev->get_wireless_stats = RT61_get_wireless_stats;
should now be
// net_dev->get_wireless_stats = RT61_get_wireless_stats;

Try recompiling it again.
Don't forget to edit ifcfg-ra0 and RT61STA.DAT before you reboot...in my system this had resulted in system hang everytime until I modified these two files.
Don't forget you have to re-install the module every time you update the kernel, but atleast now you don't have be stuck with 2.6.18, with your wireles card

Saif

Last edited by saiftynet; 05-04-2007 at 12:59 PM.
 
  


Reply

Tags
wmp54g


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linksys WMP54G on Fedora Core 4 How To beartooth91 Linux - Wireless Networking 5 03-22-2007 02:50 AM
make errors in fedora core 4 tristanm Programming 12 11-16-2005 04:01 AM
ndiswrapper make errors in Fedora Core 4 accessrichard Linux - Wireless Networking 4 06-20-2005 10:08 PM
Linksys WMP54G Fedora Core 3 JiggaJerry Linux - Wireless Networking 14 12-04-2004 03:01 AM
Linksys WMP54G on Fedora Core 2 Where do I start?? FedoraNoob Linux - Wireless Networking 3 06-17-2004 09:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration