* Passing a custom MAC to ath6kl
@ 2013-07-05 15:21 Hector Palacios
2013-07-05 15:49 ` Kalle Valo
0 siblings, 1 reply; 6+ messages in thread
From: Hector Palacios @ 2013-07-05 15:21 UTC (permalink / raw)
To: linux-wireless; +Cc: kvalo, ath6kl-devel
Greetings,
Is there a way to pass a custom MAC address to the ath6kl upstream driver?
In the ISC version of the driver, a softmac.c file is provided that reads a MAC from a
file if a module parameter softmac_enable=1 is passed.
Is there any reason why this has not made it upstream?
Best regards,
--
Hector Palacios
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Passing a custom MAC to ath6kl
2013-07-05 15:21 Passing a custom MAC to ath6kl Hector Palacios
@ 2013-07-05 15:49 ` Kalle Valo
2013-07-05 15:56 ` Hector Palacios
0 siblings, 1 reply; 6+ messages in thread
From: Kalle Valo @ 2013-07-05 15:49 UTC (permalink / raw)
To: Hector Palacios; +Cc: linux-wireless, ath6kl-devel
Hector Palacios <hector.palacios@digi.com> writes:
> Is there a way to pass a custom MAC address to the ath6kl upstream driver?
Not right now. It has been a common feature request so I'm hoping
someone will implement it soon.
> In the ISC version of the driver, a softmac.c file is provided that
> reads a MAC from a file if a module parameter softmac_enable=1 is
> passed. Is there any reason why this has not made it upstream?
Providing mac address through a file is too ugly for upstream. We need
to implement it properly using the proper interface.
--
Kalle Valo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Passing a custom MAC to ath6kl
2013-07-05 15:49 ` Kalle Valo
@ 2013-07-05 15:56 ` Hector Palacios
2013-07-05 18:02 ` Arend van Spriel
0 siblings, 1 reply; 6+ messages in thread
From: Hector Palacios @ 2013-07-05 15:56 UTC (permalink / raw)
To: Kalle Valo; +Cc: linux-wireless@vger.kernel.org, ath6kl-devel@qca.qualcomm.com
Dear Kalle,
On 07/05/2013 05:49 PM, Kalle Valo wrote:
> Hector Palacios <hector.palacios@digi.com> writes:
>
>> Is there a way to pass a custom MAC address to the ath6kl upstream driver?
>
> Not right now. It has been a common feature request so I'm hoping
> someone will implement it soon.
>
>> In the ISC version of the driver, a softmac.c file is provided that
>> reads a MAC from a file if a module parameter softmac_enable=1 is
>> passed. Is there any reason why this has not made it upstream?
>
> Providing mac address through a file is too ugly for upstream. We need
> to implement it properly using the proper interface.
I totally agree. What would be the proper interface for that?
Best regards,
--
Hector Palacios
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Passing a custom MAC to ath6kl
2013-07-05 15:56 ` Hector Palacios
@ 2013-07-05 18:02 ` Arend van Spriel
2013-07-05 20:23 ` Kalle Valo
2013-07-29 11:14 ` Priti
0 siblings, 2 replies; 6+ messages in thread
From: Arend van Spriel @ 2013-07-05 18:02 UTC (permalink / raw)
To: Hector Palacios
Cc: Kalle Valo, linux-wireless@vger.kernel.org,
ath6kl-devel@qca.qualcomm.com
On 07/05/2013 05:56 PM, Hector Palacios wrote:
> Dear Kalle,
>
> On 07/05/2013 05:49 PM, Kalle Valo wrote:
>> Hector Palacios <hector.palacios@digi.com> writes:
>>
>>> Is there a way to pass a custom MAC address to the ath6kl upstream
>>> driver?
>>
>> Not right now. It has been a common feature request so I'm hoping
>> someone will implement it soon.
>>
>>> In the ISC version of the driver, a softmac.c file is provided that
>>> reads a MAC from a file if a module parameter softmac_enable=1 is
>>> passed. Is there any reason why this has not made it upstream?
>>
>> Providing mac address through a file is too ugly for upstream. We need
>> to implement it properly using the proper interface.
>
> I totally agree. What would be the proper interface for that?
Add .ndo_set_mac_address() callback in main.c and go from there.
int (*ndo_set_mac_address)(struct net_device *dev, void *addr);
Regards,
Arend
> Best regards,
> --
> Hector Palacios
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Passing a custom MAC to ath6kl
2013-07-05 18:02 ` Arend van Spriel
@ 2013-07-05 20:23 ` Kalle Valo
2013-07-29 11:14 ` Priti
1 sibling, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2013-07-05 20:23 UTC (permalink / raw)
To: Arend van Spriel
Cc: Hector Palacios, linux-wireless@vger.kernel.org,
ath6kl-devel@qca.qualcomm.com
Arend van Spriel <arend@broadcom.com> writes:
> On 07/05/2013 05:56 PM, Hector Palacios wrote:
>> Dear Kalle,
>>
>> On 07/05/2013 05:49 PM, Kalle Valo wrote:
>>> Hector Palacios <hector.palacios@digi.com> writes:
>>>
>>>> Is there a way to pass a custom MAC address to the ath6kl upstream
>>>> driver?
>>>
>>> Not right now. It has been a common feature request so I'm hoping
>>> someone will implement it soon.
>>>
>>>> In the ISC version of the driver, a softmac.c file is provided that
>>>> reads a MAC from a file if a module parameter softmac_enable=1 is
>>>> passed. Is there any reason why this has not made it upstream?
>>>
>>> Providing mac address through a file is too ugly for upstream. We need
>>> to implement it properly using the proper interface.
>>
>> I totally agree. What would be the proper interface for that?
>
> Add .ndo_set_mac_address() callback in main.c and go from there.
>
> int (*ndo_set_mac_address)(struct net_device *dev, void *addr);
And the challenge with ath6kl is that we need to stop the firmware,
change mac address in the firmware and restart the firmware. So it's not
trivial to add that but it shouldn't be too difficult either. Patches
more than welcome :)
--
Kalle Valo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Passing a custom MAC to ath6kl
2013-07-05 18:02 ` Arend van Spriel
2013-07-05 20:23 ` Kalle Valo
@ 2013-07-29 11:14 ` Priti
1 sibling, 0 replies; 6+ messages in thread
From: Priti @ 2013-07-29 11:14 UTC (permalink / raw)
To: linux-wireless
Hi,
i am looking for a way to update MAC address for ar6103.
i am using compat-wirless-3.4.rc3-1 package and linux 2.3.31 kernel.
i have tried many ways to hard code the mac address value just to see the
change in mac address.i am able to see the updated mac address while giving
the ifconfig command,but my device is not sending any packet and not getting
IP address.
i have been trying to dig each and every source file in ath6kl folder but
not able to figure out why i am not able to change the mac address.
can any one please tell me the exact steps to achieve this.
it will be really helpful.
THanks,
Priti
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-07-30 16:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-05 15:21 Passing a custom MAC to ath6kl Hector Palacios
2013-07-05 15:49 ` Kalle Valo
2013-07-05 15:56 ` Hector Palacios
2013-07-05 18:02 ` Arend van Spriel
2013-07-05 20:23 ` Kalle Valo
2013-07-29 11:14 ` Priti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).