From patchwork Thu Jul 10 08:17:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gundersen X-Patchwork-Id: 4521841 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 DB1A29F26C for ; Thu, 10 Jul 2014 08:21:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 206D22021B for ; Thu, 10 Jul 2014 08:21:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 403EB2026F for ; Thu, 10 Jul 2014 08:21:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380AbaGJITH (ORCPT ); Thu, 10 Jul 2014 04:19:07 -0400 Received: from mail-lb0-f179.google.com ([209.85.217.179]:56759 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752305AbaGJITD (ORCPT ); Thu, 10 Jul 2014 04:19:03 -0400 Received: by mail-lb0-f179.google.com with SMTP id z11so5833757lbi.10 for ; Thu, 10 Jul 2014 01:19:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=++haYfYPu3QjdhhEN3BitqmXTI7N2IGGmI/bmPYJ8rc=; b=ICNThwI6OdsWuN8+EZ2b/bia6PXXhjA2GjKFVwVaF2Uxgp9Jhs6pEot/6wM06LvrjQ dQf+1LSHh+/1ZtXzPh+TYGTiM2Zv3XXofIpLFFXwJ+Px6/aFUCnlMpFqqniq/lLgUdGQ VHChcBgCAowaJ5jtkhzSVOZzY8EbCpo95YpXMm+/vUQdly8lmRijGlWDAeATM8VEB8sn jCUf1026PljBr79NaV2VwEKOBtQTh8cRPZBYmpspALFGCuGYwzXZ66CjR350Lz3uTdpf E/nfvVKBEPhNdL7lsZ462wIJ4X+xTRAdAvNxezWW0iIDrQuTqV/7sLpTeD9J9d/QMNSG 9kXQ== X-Gm-Message-State: ALoCoQk8cu3TGjYy3wiqLK5/96VHd6Qxm5Ii8DVj4pCK4errIhMlY1aqcdEbp5UOW6aUSTXtb6Wg X-Received: by 10.112.138.36 with SMTP id qn4mr961969lbb.74.1404980342593; Thu, 10 Jul 2014 01:19:02 -0700 (PDT) Received: from localhost.localdomain (m188-149-105-114.cust.tele2.no. [188.149.105.114]) by mx.google.com with ESMTPSA id tg1sm37154793lbb.11.2014.07.10.01.19.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jul 2014 01:19:01 -0700 (PDT) From: Tom Gundersen To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, David Miller , David Herrmann , Kay Sievers , Tom Gundersen , Brett Rudley , Arend van Spriel , "Franky (Zhenhui) Lin" , Hante Meuleman , John Linville , linux-wireless@vger.kernel.org, brcm80211-dev-list@broadcom.com Subject: [PATCH v7 29/33] net: brcmfmac - set name assign type Date: Thu, 10 Jul 2014 10:17:34 +0200 Message-Id: <1404980258-30853-30-git-send-email-teg@jklm.no> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1404980258-30853-1-git-send-email-teg@jklm.no> References: <1404980258-30853-1-git-send-email-teg@jklm.no> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 The name is given by the firmware, so we assume it is predictable. Signed-off-by: Tom Gundersen Cc: Brett Rudley Cc: Arend van Spriel Cc: "Franky (Zhenhui) Lin" Cc: Hante Meuleman Cc: John Linville Cc: linux-wireless@vger.kernel.org Cc: brcm80211-dev-list@broadcom.com --- drivers/net/wireless/brcm80211/brcmfmac/fweh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fweh.c b/drivers/net/wireless/brcm80211/brcmfmac/fweh.c index f6990f2..8d32721 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/fweh.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/fweh.c @@ -201,7 +201,8 @@ static void brcmf_fweh_handle_if_event(struct brcmf_pub *drvr, brcmf_dbg(EVENT, "adding %s (%pM)\n", emsg->ifname, emsg->addr); ifp = brcmf_add_if(drvr, ifevent->bssidx, ifevent->ifidx, - emsg->ifname, NET_NAME_UNKNOWN, emsg->addr); + emsg->ifname, NET_NAME_PREDICTABLE, + emsg->addr); if (IS_ERR(ifp)) return; brcmf_fws_add_interface(ifp);