When I apply the patch to the r8169.c of my 2.6.22 source tree revision (patch warns me about a fuzz but it seems to work), I can compile the module and it loads without any problem... but when I shutdown, I cannot wake my machine through the magic packet method (which always works when I shutdown from XP).
If I try to compile the r8169.c from git (head) after apply your patch (no warning), I have an error when compiling the module :
py@PC-FIXE2:/usr/src/linux-source-2.6.22$ sudo make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
CC [M] drivers/net/r8169.o
drivers/net/r8169.c:392: erreur: field «napi" has incomplete type
drivers/net/r8169.c:1090: erreur: unknown field «get_sset_count" specified in initializer
drivers/net/r8169.c:1090: attention : initialization from incompatible pointer type
drivers/net/r8169.c: In function «rtl8169_down":
drivers/net/r8169.c:2906: attention : implicit declaration of function «napi_disable"
make[2]: *** [drivers/net/r8169.o] Erreur 1
make[1]: *** [drivers/net] Erreur 2
make: *** [drivers] Erreur 2
Obviously the newer version of the driver does not fit older kernel API (my guess since I do not pretend to understand much about kernel programming).
When I apply the patch to the r8169.c of my 2.6.22 source tree revision (patch warns me about a fuzz but it seems to work), I can compile the module and it loads without any problem... but when I shutdown, I cannot wake my machine through the magic packet method (which always works when I shutdown from XP).
If I try to compile the r8169.c from git (head) after apply your patch (no warning), I have an error when compiling the module :
py@PC-FIXE2: /usr/src/ linux-source- 2.6.22$ sudo make modules linux/version. h linux/utsreleas e.h checksyscalls. sh net/r8169. c:392: erreur: field «napi" has incomplete type net/r8169. c:1090: erreur: unknown field «get_sset_count" specified in initializer net/r8169. c:1090: attention : initialization from incompatible pointer type net/r8169. c: In function «rtl8169_down": net/r8169. c:2906: attention : implicit declaration of function «napi_disable" net/r8169. o] Erreur 1
CHK include/
CHK include/
CALL scripts/
CC [M] drivers/net/r8169.o
drivers/
drivers/
drivers/
drivers/
drivers/
make[2]: *** [drivers/
make[1]: *** [drivers/net] Erreur 2
make: *** [drivers] Erreur 2
Obviously the newer version of the driver does not fit older kernel API (my guess since I do not pretend to understand much about kernel programming).
Regards