Problems changing mac adress

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems changing mac adress

Aleix Orti
Hi everybody!

  my name's Aleix and this is my first mail to this list.
I have a Freerunner with SHR since last march and I'm very happy :)

but i have had a problem tryng to change the mac adress of the wlan
(eth0). I tried whith:
# ifconfig eth0 down hw ether 00:00:00:aa:aa:aa

or with
# ip link set eth0 down
# ip link set addr 00:00:00:aa:aa:aa dev eth1

but the result is ever the same:
"SIOCSIFHWADDR: Operation not supported"

What can I do?

please, excuse me for my bad english
best regards
Aleix

 

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Problems changing mac adress

Timo Juhani Lindfors
Aleix Orti<[hidden email]> writes:
> but the result is ever the same:
> "SIOCSIFHWADDR: Operation not supported"
>
> What can I do?

I get the same error with

linux-image-2.6.34-openmoko-gta02       20101212.git049b71de-2

in Debian. My guess is that the firmware does not let you change the MAC
address.



_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Problems changing mac adress

Joachim Ott-2
On 23 June 2011 11:58, Timo Juhani Lindfors <[hidden email]> wrote:

> Aleix Orti<[hidden email]> writes:
>> but the result is ever the same:
>> "SIOCSIFHWADDR: Operation not supported"
>>
>> What can I do?
>
> I get the same error with
>
> linux-image-2.6.34-openmoko-gta02       20101212.git049b71de-2
>
> in Debian. My guess is that the firmware does not let you change the MAC
> address.

This feature is missing in the ar6000 driver. I thought it was there
already when I found WMI_SET_MAC_ADDRESS_CMDID in the source, but that
one is used for wake-on-wireless. It wouldn't be that hard to
implement, 2 new ioctls (set mac and reset mac) and another 6 bytes to
save the original mac address.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Problems changing mac adress

Aleix Orti
On Thu, 23 Jun 2011 17:59:09 +0200
Joachim Ott <[hidden email]> wrote:

> On 23 June 2011 11:58, Timo Juhani Lindfors <[hidden email]>
> wrote:
> > Aleix Orti<[hidden email]> writes:
> >> but the result is ever the same:
> >> "SIOCSIFHWADDR: Operation not supported"
> >>
> >> What can I do?
> >
> > I get the same error with
> >
> > linux-image-2.6.34-openmoko-gta02       20101212.git049b71de-2
> >
> > in Debian. My guess is that the firmware does not let you change
> > the MAC address.
>
> This feature is missing in the ar6000 driver. I thought it was there
> already when I found WMI_SET_MAC_ADDRESS_CMDID in the source, but that
> one is used for wake-on-wireless. It wouldn't be that hard to
> implement, 2 new ioctls (set mac and reset mac) and another 6 bytes to
> save the original mac address.

thanks Timo and Joachim
I find the ar6000 sorce in the openmoko repo. I've been looking it and
I haven't understand. I want to find the variable where mac is
stored. If I find it I could hard code it. It's a very nasty way but
only for starting...
>
> _______________________________________________
> support mailing list
> [hidden email]
> https://lists.openmoko.org/mailman/listinfo/support


_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support
Reply | Threaded
Open this post in threaded view
|

Re: Problems changing mac adress

Joachim Ott-2
On 29 June 2011 20:53, AleixOF <[hidden email]> wrote:

> On Thu, 23 Jun 2011 17:59:09 +0200
> Joachim Ott <[hidden email]> wrote:
>
>> On 23 June 2011 11:58, Timo Juhani Lindfors <[hidden email]>
>> wrote:
>> > Aleix Orti<[hidden email]> writes:
>> >> but the result is ever the same:
>> >> "SIOCSIFHWADDR: Operation not supported"
>> >>
>> >> What can I do?
>> >
>> > I get the same error with
>> >
>> > linux-image-2.6.34-openmoko-gta02       20101212.git049b71de-2
>> >
>> > in Debian. My guess is that the firmware does not let you change
>> > the MAC address.
>>
>> This feature is missing in the ar6000 driver. I thought it was there
>> already when I found WMI_SET_MAC_ADDRESS_CMDID in the source, but that
>> one is used for wake-on-wireless. It wouldn't be that hard to
>> implement, 2 new ioctls (set mac and reset mac) and another 6 bytes to
>> save the original mac address.
>
> thanks Timo and Joachim
> I find the ar6000 sorce in the openmoko repo. I've been looking it and
> I haven't understand. I want to find the variable where mac is
> stored. If I find it I could hard code it. It's a very nasty way but
> only for starting...

See the file drivers/ar6000/wmi/wmi_doc.h:

Name
    READY

Synopsis
    Indicates that the AR6000 device is prepared to accept commands.
It is sent once after
    power on or reset. It also indicates the MAC address of the device.

Event ID
    0x1001

Event Parameters
    UINT8    macAddr[6]
        Device MAC address
    UINT8    phyCapability
        A WMI_PHY_CAPABILITY value. Indicates the
        capabilities of the device wireless module's radio

You could try to change the ready function in wmi.c to use a mac
address of your own.

_______________________________________________
support mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/support