Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 07-25-2006, 11:19 AM   #1
LQ Newbie
Registered: Jan 2006
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Doesnt change MAC (CWP-854 under rt61 driver)

im suffering from a strange problem - i cant change mac on my wifi card.

what i am doing:
modprobe rt61
iwconfig ra0 ap 00:40:CA:45:10:9C OR ifconfig ra0 hw ether 00:40:CA:45:10:9C

it doesnt work. Old mac is shown when exec ifconfig

i tried to modify sources:

into rtmp_init.c i cnahged line pAd->bLocalAdminMAC = FALSE; //TRUE;
bLocalAdminMAC was set to 'true'
after that every time i changed mac, new mac was 00:00:00:00:00:00

then i found program 'macchanger'
but it doesnt work =(

help me pls
Old 07-25-2006, 11:44 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
First off, iwconfig isn't even intended to change your interface's MAC. It specifies the MAC of the access point you want to connect to.

Secondly, not all devices CAN have their MAC address changed. Some (including one of mine) horribly fail to work until a reboot if you try that. From looking at the rt61 driver, it's almost certainly not intended to change MACs.

Why do you need to change your MAC address?
Old 07-25-2006, 12:52 PM   #3
LQ Newbie
Registered: Jan 2006
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
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)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Cnet cwp-854 supported?? lalo Linux - Hardware 3 11-11-2006 06:26 AM
Cnet CWP-854 wireless card software jbie Linux - Hardware 1 02-08-2006 12:29 AM
CNet CWP-854 and Rt2500 driver objorkum Linux - Hardware 2 02-06-2006 09:16 AM
Resolution doesnt change twin Linux - Newbie 4 09-25-2003 02:08 PM
Linux router -Mac connects -WinPC doesnt thepez Linux - Networking 12 09-12-2003 11:21 AM > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration