LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-12-2011, 03:38 AM   #1
olexandr.klymenko
LQ Newbie
 
Registered: Jun 2011
Posts: 18

Rep: Reputation: Disabled
via VT6656 wifi module under kernel >2.6.32


Hi guys,
We widely use Zotac GF9300-G-E in our appliances based on linux. There is internal usb wifi module (via VT6656) in this motherboard.
While upgrading linux kernel (to version 2.6.37) of our appliances we faced such problem:
Quote:
driver (VT6656_linux_src_v1.20.03_x86) of wifi module refuse to compile:
CC [M] /home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.o
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c: In function ‘device_set_multi’:
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c:2086: error: ‘struct net_device’ has no member named ‘mc_count’
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c:2098: error: ‘struct net_device’ has no member named ‘mc_list’
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c:2098: error: ‘struct net_device’ has no member named ‘mc_count’
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c:2099: error: dereferencing pointer to incomplete type
/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.c:2100: error: dereferencing pointer to incomplete type
make[2]: *** [/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver/main_usb.o] Error 1
make[1]: *** [_module_/home/kernel/2.6.37.6-rpn1.7/via/VT6656_linux_src_v1.20.03_x86/driver] Error 2
make[1]: Leaving directory `/home/kernel/2.6.37.6-rpn1.7/linux-2.6.37.6-rpn1.7'
make: *** [default] Error 2
We had no issue doing this under kernels <=2.6.32.
Please, help us with our problem.

Last edited by olexandr.klymenko; 12-12-2011 at 03:51 AM.
 
Old 12-12-2011, 09:03 PM   #2
gary185
Member
 
Registered: Jul 2011
Posts: 113

Rep: Reputation: Disabled
diff -ru VT6656_linux_src_v1.20.03_x86.old/driver/main_usb.c VT6656_linux_src_v1.20.03_x86/driver/main_usb.c
--- VT6656_linux_src_v1.20.03_x86.old/driver/main_usb.c 2009-11-13 16:05:21.000000000 +0100
+++ VT6656_linux_src_v1.20.03_x86/driver/main_usb.c 2010-11-11 19:34:35.000000000 +0100
@@ -2060,7 +2060,7 @@
PSMgmtObject pMgmt = &(pDevice->sMgmtObj);
u32 mc_filter[2];
int ii;
- struct dev_mc_list *mclist;
+ struct netdev_hw_addr *mclist;
BYTE pbyData[8] = {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};
BYTE byTmpMode = 0;
int rc;
@@ -2083,7 +2083,7 @@
// Unconditionally log net taps.
pDevice->byRxMode |= (RCR_MULTICAST|RCR_BROADCAST|RCR_UNICAST);
}
- else if ((dev->mc_count > pDevice->multicast_limit) || (dev->flags & IFF_ALLMULTI)) {
+ else if ((netdev_mc_count(dev) > pDevice->multicast_limit) || (dev->flags & IFF_ALLMULTI)) {
CONTROLnsRequestOut(pDevice,
MESSAGE_TYPE_WRITE,
MAC_REG_MAR0,
@@ -2095,9 +2095,8 @@
}
else {
memset(mc_filter, 0, sizeof(mc_filter));
- for (ii = 0, mclist = dev->mc_list; mclist && ii < dev->mc_count;
- ii++, mclist = mclist->next) {
- int bit_nr = ether_crc(ETH_ALEN, mclist->dmi_addr) >> 26;
+ netdev_for_each_mc_addr(mclist,dev) {
+ int bit_nr = ether_crc(ETH_ALEN, mclist->addr) >> 26;
mc_filter[bit_nr >> 5] |= cpu_to_le32(1 << (bit_nr & 31));
}
for (ii = 0; ii < 4; ii++) {
 
  


Reply



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
[SOLVED] Install older kernel module into newer kernel - no symbol version for module bayoulinux Linux - Kernel 4 10-26-2011 04:32 AM
[SOLVED] Trying to install kernel module for new usb wifi dongle Adol Linux - Hardware 2 04-14-2011 05:18 AM
WiFi - Broadcom 4306 on kernel 2.6.24 (b43 module) juchem Linux - Wireless Networking 4 02-07-2008 02:09 PM
usb wifi driver src (kern module ?) zd1211, ubuntu 5.10, athxp, kernel 2.6.12-9-386 stairwayoflight Linux - Newbie 5 04-13-2006 06:59 PM
kernel module ignorant newbie looking for any one with kernel module knowledge cpoet Slackware 4 11-24-2003 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 07:42 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