I also spent few minutes examining the errors I got when using your patch with 2.6.22 revision of the module. Adding few lines to the r8169.c solved the compilations errors :
and in the definition of struct rtl8169_private :
************
unsigned features;
************
Then the module compile perfectly and as far I could test it, it doesn't improve the WOL behaviour.
I will do some deeper testing in order to get sure that I'm using the newly compiled module (I consider using some additional printk to insure that my module -your module- is the one that the kernel actually loads)
I also spent few minutes examining the errors I got when using your patch with 2.6.22 revision of the module. Adding few lines to the r8169.c solved the compilations errors :
added :
************
enum features {
RTL_FEATURE_WOL = (1 << 0),
};
************
and in the definition of struct rtl8169_private :
************
unsigned features;
************
Then the module compile perfectly and as far I could test it, it doesn't improve the WOL behaviour.
I will do some deeper testing in order to get sure that I'm using the newly compiled module (I consider using some additional printk to insure that my module -your module- is the one that the kernel actually loads)
PY