From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753099AbaHLABy (ORCPT ); Mon, 11 Aug 2014 20:01:54 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:61830 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751790AbaHLABw (ORCPT ); Mon, 11 Aug 2014 20:01:52 -0400 Message-ID: <1407801666.28221.84.camel@chimera> Subject: Re: [PATCH] allow setting wiphy.perm_addr after driver probe From: Daniel Gimpelevich To: Marcel Holtmann Cc: "John W. Linville" , "linux-wireless@vger.kernel.org Wireless" , Johannes Berg , "David S. Miller" , Network Development , linux-kernel@vger.kernel.org Date: Mon, 11 Aug 2014 17:01:06 -0700 In-Reply-To: <52896C9C-8560-4CE4-A1FB-C896D766EC87@holtmann.org> References: <1407780269.28221.63.camel@chimera> <54DF22CF-59D7-4633-A625-896F58C26A64@holtmann.org> <1407789645.28221.68.camel@chimera> <37210DB5-2911-4FA3-9299-7701C5003945@holtmann.org> <1407791075.28221.74.camel@chimera> <28066DB2-9EA9-4748-9C89-D3FBD3EC51F5@holtmann.org> <1407798738.28221.81.camel@chimera> <52896C9C-8560-4CE4-A1FB-C896D766EC87@holtmann.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2014-08-11 at 16:56 -0700, Marcel Holtmann wrote: > the way I read the nl80211 code is that the NL80211_CMD_NEW_INTERFACE > requires a wiphy device to be specified. And that is actually just a > number. So I have no idea what the MAC has to here. > OpenWrt finds a wiphy by its MAC. > Why does the wiphy need to know the MAC if it is always specified from > userspace when actually creating the new netdev interface. Works for > P2P devices, so why wouldn't it work for access point and station > mode? > A MAC can be specified for the netdev, but it is assigned to a wiphy identified by its MAC.