[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#536455: linux-source-2.6.30: Unable to set NIC hwaddress



Hi Ben,

* Ben Hutchings <ben@decadent.org.uk> [090710 11:56]:
> 
> The MAC change operation seems to have been accidentally left out of
> this driver in a change to the way net device operations are set up.
> 
> Please try applying the following patch:
> 
> --- a/drivers/net/wireless/orinoco/main.c
> +++ b/drivers/net/wireless/orinoco/main.c
> @@ -2523,6 +2523,8 @@ static const struct net_device_ops orinoco_netdev_ops = {
>  	.ndo_change_mtu		= orinoco_change_mtu,
>  	.ndo_tx_timeout		= orinoco_tx_timeout,
>  	.ndo_get_stats		= orinoco_get_stats,
> +	.ndo_set_mac_address	= eth_mac_addr,
> +	.ndo_validate_addr	= eth_validate_addr,
>  };
>  
>  struct net_device
> --- END ---

Nice one. I applied the patch and can confirm that it fixes the problem.
I can now change my mac address. Thanks for the very fast fix.

Cheers,

Nick.



Attachment: signature.asc
Description: Digital signature


Reply to: