From patchwork Thu Feb 27 14:47:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Herrmann X-Patchwork-Id: 3733831 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 585B09F2F7 for ; Thu, 27 Feb 2014 14:48:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9195520117 for ; Thu, 27 Feb 2014 14:48:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 64FBB201DC for ; Thu, 27 Feb 2014 14:48:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbaB0Orp (ORCPT ); Thu, 27 Feb 2014 09:47:45 -0500 Received: from mail-ea0-f170.google.com ([209.85.215.170]:50812 "EHLO mail-ea0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751396AbaB0Ore (ORCPT ); Thu, 27 Feb 2014 09:47:34 -0500 Received: by mail-ea0-f170.google.com with SMTP id g15so1916686eak.29 for ; Thu, 27 Feb 2014 06:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WF83eF7XY2DjRlJcxnYJiAeP1fS5qrKaY1c18+Ued9U=; b=sRxv0PPMhCuQST2Pr2fIh+voLtN0BuZvILld/6/Nc5QGLwF80Cbvl6oTrmnYMwAG/t sMiQYMWpfxf6HMbdhpZUFP/I6BYCFhCK57OfyJnanjuxLzJJJYZzxhhpbfNa423e7SSh 2vu1K7jeP/GAhzW9WHhmTT2g0m7s/1KRWg1SCVzDzNXZko46DrcDCv/WrUvnbK8Viq2r fc6brYxaUOfetcYrBi8n1mDmbIVWShZiNhJcVWkwQv4hOSjwxE/Md/SbhRWmSOnYhOlQ fW/COUCrXmo5qIWtNzuel3Iw1A8IKh0FGNH3C4+vsmtUCwQgg6PsFWScxwdFfrxhZIys vnNg== X-Received: by 10.15.48.1 with SMTP id g1mr13643537eew.51.1393512451389; Thu, 27 Feb 2014 06:47:31 -0800 (PST) Received: from david-tp.localdomain (stgt-5f72aa4f.pool.mediaWays.net. [95.114.170.79]) by mx.google.com with ESMTPSA id 43sm17691835eeh.13.2014.02.27.06.47.29 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Feb 2014 06:47:30 -0800 (PST) From: David Herrmann To: netdev@vger.kernel.org Cc: "David S. Miller" , Kay Sievers , Tom Gundersen , Johannes berg , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, David Herrmann , Arend van Spriel Subject: [PATCH 4/4] brcmfmac: set NET_NAME_USER for P2P ifs Date: Thu, 27 Feb 2014 15:47:14 +0100 Message-Id: <1393512434-1325-5-git-send-email-dh.herrmann@gmail.com> X-Mailer: git-send-email 1.9.0 In-Reply-To: <1393512434-1325-1-git-send-email-dh.herrmann@gmail.com> References: <1393512434-1325-1-git-send-email-dh.herrmann@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Netdevs created via nl80211 (currently only P2P ifs) have names provided by user-space. Therefore, set the naming-policy to NET_NAME_USER so it is correctly shown in sysfs. Cc: Arend van Spriel Signed-off-by: David Herrmann --- drivers/net/wireless/brcm80211/brcmfmac/p2p.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c index fc4f98b..6af4d26 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/p2p.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/p2p.c @@ -2310,6 +2310,7 @@ struct wireless_dev *brcmf_p2p_add_vif(struct wiphy *wiphy, const char *name, goto fail; } + ifp->ndev->name_assign_type = NET_NAME_USER; strncpy(ifp->ndev->name, name, sizeof(ifp->ndev->name) - 1); err = brcmf_net_attach(ifp, true); if (err) {