Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756990AbcKXIdf (ORCPT ); Thu, 24 Nov 2016 03:33:35 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36164 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756484AbcKXIdd (ORCPT ); Thu, 24 Nov 2016 03:33:33 -0500 Date: Thu, 24 Nov 2016 09:33:29 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Pavel Machek Cc: Michal Kazior , Kalle Valo , Ivaylo Dimitrov , Sebastian Reichel , Aaro Koskinen , Tony Lindgren , linux-wireless , Network Development , linux-kernel@vger.kernel.org Subject: Re: wl1251 & mac address & calibration data Message-ID: <20161124083329.GB13735@pali> References: <201611111820.52072@pali> <201611221805.13606@pali> <20161123222335.GA4788@amd> <201611232339.59411@pali> <20161124075104.GA26721@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161124075104.GA26721@amd> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 29 On Thursday 24 November 2016 08:51:04 Pavel Machek wrote: > Hi! > > > > "ifconfig hw ether XX" normally sets the address. I guess that's > > > ioctl? > > > > This sets temporary address and it is ioctl. IIRC same as what ethtool > > uses. (ifconfig is already deprecated). > > > > > And I guess we should use similar mechanism for permanent > > > address. > > > > I'm not sure here... Above ioctl ↑↑↑ is for changing temporary mac > > address. But here we do not want to change permanent mac address. We > > want to tell kernel driver current permanent mac address which is > > stored > > Well... I'd still use similar mechanism :-). Thats problematic, because in time when wlan0 interface is registered into system and visible in ifconfig output it already needs to have permanent mac address assigned. We should assign permanent mac address before wlan0 of wl1251 is registered into system. -- Pali Rohár pali.rohar@gmail.com