Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1446398

Re: [PATCH net-next v2] cdc_ether: Improve ZTE MF823/831/910 handling

From Kristian Evensen <kristian.evensen@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH net-next v2] cdc_ether: Improve ZTE MF823/831/910 handling
Date 2016-07-19 14:50 +0200
Message-ID <rWCDg-44x-23@gated-at.bofh.it> (permalink)
References <rWBHb-3uo-7@gated-at.bofh.it> <rWCDg-44x-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Jul 19, 2016 at 2:33 PM, Oliver Neukum <oliver@neukum.org> wrote:
> On Tue, 2016-07-19 at 13:49 +0200, Kristian Evensen wrote:
>> @@ -428,10 +434,47 @@ int usbnet_cdc_bind(struct usbnet *dev, struct
>> usb_interface *intf)
>>                 return status;
>>         }
>>
>> +       if (dev->net->dev_addr[0] & 0x02)
>> +               eth_hw_addr_random(dev->net);
>> +
>>         return 0;
>>  }
>>  EXPORT_SYMBOL_GPL(usbnet_cdc_bind);
>>
>> +static int usbnet_cdc_zte_bind(struct usbnet *dev, struct
>> usb_interface *intf)
>> +{
>> +       int status = usbnet_cdc_bind(dev, intf);
>> +
>> +       if (status)
>> +               return status;
>> +
>> +       if (dev->net->dev_addr[0] & 0x02)
>> +               eth_hw_addr_random(dev->net);
>> +
>> +       return 0;
>> +}
>
> That really makes no sense.

Ops, my bad. Thanks for catching it. The check for random hw_addr
should only be in the zte_bind() function.

-Kristian

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH net-next v2] cdc_ether: Improve ZTE MF823/831/910 handling Kristian Evensen <kristian.evensen@gmail.com> - 2016-07-19 13:50 +0200
  Re: [PATCH net-next v2] cdc_ether: Improve ZTE MF823/831/910 handling Kristian Evensen <kristian.evensen@gmail.com> - 2016-07-19 14:50 +0200

csiph-web