wifi driver cross compilation

hi all

i found ralink 3370 chipset drivers in the latest linux-3.0.1 version…
i m using linux-2.6.37 on my beaglebord… so i need to cross compile the 3.0.1 version driver for the version i m using…
but when i try to compile i m getting lot of source code error…
can anybody guide me to compile the driver code of different versions…
i have attached my makefie

error i m getting is

/home/kiran/beagle_work/work/linux-3.1.10/drivers/net/wireless/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_channel’:
/home/kiran/beagle_work/work/linux-3.1.10/drivers/net/wireless/rt2x00/rt2x00dev.c:785: error: too many arguments to function ‘ieee80211_channel_to_frequency’
make[2]: *** [/home/kiran/beagle_work/work/linux-3.1.10/drivers/net/wireless/rt2x00/rt2x00dev.o] Error 1
make[1]: *** [module/home/kiran/beagle_work/work/linux-3.1.10/drivers/net/wireless/rt2x00] Error 2
make[1]: Leaving directory `/home/kiran/android_work/rowboat/gingerbread/kernel’
make: *** [all] Error 2

Makefile (1.06 KB)