Quote:
Why do you need to change your MAC address?
|
cos mac-filtering is used in my network
well. finally i got how-to change mac, i found init code in rtmp_init.c
search "// RT2660 MAC no longer auto load MAC address from E2PROM. Driver has to intialize
// MAC address registers according to E2PROM setting"
then you have to change lines containing source:
pAd->PermanentAddress[0] = (UCHAR)(Addr01 & 0xff);
pAd->PermanentAddress[1] = (UCHAR)(Addr01 >> 8);
pAd->PermanentAddress[2] = (UCHAR)(Addr23 & 0xff);
pAd->PermanentAddress[3] = (UCHAR)(Addr23 >> 8);
pAd->PermanentAddress[4] = (UCHAR)(Addr45 & 0xff);
pAd->PermanentAddress[5] = (UCHAR)(Addr45 >> 8);
new code must be similar to this:
pAd->PermanentAddress[0] = 0x00;
pAd->PermanentAddress[1] = 0x80;
pAd->PermanentAddress[2] = 0x48;
pAd->PermanentAddress[3] = 0x25;
pAd->PermanentAddress[4] = 0xF9;
pAd->PermanentAddress[5] =0x9F;
your new mac is 00:80:48:25:F9:9F (look at the and of each line, array (from 0 to 5) contains parts of mac)