Ralink RT2870 wireless USB adapter - Mepis 11 2.6.36 kernel
At long last I found a link that has enabled me to succesfully compile and install my .deb for my DWA140 Wireless-N USB adapter in M11 using its 2.6.36 kernel.
Previously I used a Debian 2.6.32 kernel, since it became apparent that compiling under kernels >= 2.6.35 was impossible.
The following link explains why there is a problem and provides a fix [See under EDIT there].
And it works on the M11 Mepis kernel 2.6.36....:-) And I belief that it will work for all RT2870 based wireless usb-adapters (many brands)http://linuxforums.org.uk/index.php?topic=852.0
Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 ..
so if during the next (make && make install) step it fails with this error:
The fix is to cd to the driver source directory (eg. 2010_0709_RT28 70_Linux_STA_v 220.127.116.11), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:
(hitting enter after each line)