Received: by 10.213.65.68 with SMTP id h4csp394729imn; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+6/GCj/1Y0ypf8AGh/QddmQ3HPisaXdq9WE97XrdbEo36UWDRdY2lXwLBznT5kbi0A77H5 X-Received: by 10.99.96.210 with SMTP id u201mr1320051pgb.124.1522480194392; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522480194; cv=none; d=google.com; s=arc-20160816; b=ZtuJox5TG1CuTTcaYNbZ+hqqE/CidJTeg78ZzR2e3f36xwJCM2AoHAfH9pRHrcXfzd jZEdT3BosOMzzre08Ho9qBllVjzs0GSq72NdYzSCpvHDiW/mHsWZr4J2nO/9uFDjztU8 0F5mDpcpmRonSiCknyNntHAiqUo4qMJTUkIM0c2wbyJFHEKT5tp+9gZri+LwdFkMRV+d otbD3WV2s0oJzPxhbqT+h5j10G2ACX2Q1fpVbqRRSauheFu7wRncC69Cmx+eH7IRjLO0 K5IAHase1KlILn6kVfdxgyddzb54xZNqsfffHH8lpbFnoDpd2aqJH6hlxIJcGS3aRVSb ioNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=yf72TJOqd3mTi2B2cQJ3fiI9CdGitYlsP0SRdykgNZY=; b=wqSoz7IXmOy/TnZ78W8klNorzVosvEFc3MD1gWbC5+TbFBkdwS97pzs2LU6VBAtMNO B9tK2NaDzLueffJmtw3e/5VMT6bMHLYcP9a0CxUEbE5ydZ+VDXsG9uDsIQXaoOOLUAGb JFqiKNNTsQLmCRoKlFY6V6TjLH96kvcec1dAd06Q6DwKR91H1JKOVP1LNmg65qtwc5oD EBJYCf18dw0brH0QxtKea7zX73O3X99dNCz/bXitqlkBEsOHuzrawKnjm+YM8wOiLYIC zed/hePF83qfGtuLYzEyZeZr7YyU0Q5cL854PwjITEjcDPY55fFYSVAYFy8gCcL+LrSM PuFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si10278940plc.95.2018.03.31.00.09.08; Sat, 31 Mar 2018 00:09:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753096AbeCaHGB (ORCPT + 99 others); Sat, 31 Mar 2018 03:06:01 -0400 Received: from smtprelay0198.hostedemail.com ([216.40.44.198]:60597 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752422AbeCaHF7 (ORCPT ); Sat, 31 Mar 2018 03:05:59 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 0530618224D9E; Sat, 31 Mar 2018 07:05:58 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:800:960:973:981:988:989:1260:1345:1359:1437:1534:1542:1711:1730:1747:1777:1792:2393:2559:2562:2693:3138:3139:3140:3141:3142:3353:3865:3866:3867:4321:5007:6261:7875:9592:10004:10848:11026:11473:11657:11658:11914:12043:12114:12296:12438:12555:12683:12895:14181:14394:14721:21080:21451:21627:30012:30054:30055,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:19,LUA_SUMMARY:none X-HE-Tag: flesh43_8b378c3b93b00 X-Filterd-Recvd-Size: 3378 Received: from joe-laptop.perches.com (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Sat, 31 Mar 2018 07:05:56 +0000 (UTC) From: Joe Perches To: linux-kernel@vger.kernel.org Cc: Johannes Berg , Emmanuel Grumbach , Luca Coelho , Intel Linux Wireless , Kalle Valo , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 09/12] iwlwifi: Remove local iwl_bcast_addr and use ether_broadcast_addr Date: Sat, 31 Mar 2018 00:05:24 -0700 Message-Id: X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new global to save a little bit of object code. Signed-off-by: Joe Perches --- drivers/net/wireless/intel/iwlwifi/dvm/dev.h | 1 - drivers/net/wireless/intel/iwlwifi/dvm/scan.c | 2 +- drivers/net/wireless/intel/iwlwifi/dvm/sta.c | 4 +--- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/dev.h b/drivers/net/wireless/intel/iwlwifi/dvm/dev.h index cceb4cd8e501..157cc21c5dfb 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/dev.h +++ b/drivers/net/wireless/intel/iwlwifi/dvm/dev.h @@ -271,7 +271,6 @@ struct iwl_sensitivity_ranges { * ****************************************************************************/ void iwl_update_chain_flags(struct iwl_priv *priv); -extern const u8 iwl_bcast_addr[ETH_ALEN]; #define IWL_OPERATION_MODE_AUTO 0 #define IWL_OPERATION_MODE_HT_ONLY 1 diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/scan.c b/drivers/net/wireless/intel/iwlwifi/dvm/scan.c index 17e6a32384d3..e40d9b9fc4a9 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/scan.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/scan.c @@ -871,7 +871,7 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif) /* use bcast addr, will not be transmitted but must be valid */ cmd_len = iwl_fill_probe_req( (struct ieee80211_mgmt *)scan->data, - iwl_bcast_addr, NULL, 0, + ether_broadcast_addr, NULL, 0, NULL, 0, scan_cmd_size - sizeof(*scan)); break; diff --git a/drivers/net/wireless/intel/iwlwifi/dvm/sta.c b/drivers/net/wireless/intel/iwlwifi/dvm/sta.c index de6ec9b7ace4..177a366f7ad3 100644 --- a/drivers/net/wireless/intel/iwlwifi/dvm/sta.c +++ b/drivers/net/wireless/intel/iwlwifi/dvm/sta.c @@ -32,8 +32,6 @@ #include "dev.h" #include "agn.h" -const u8 iwl_bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }; - static int iwl_sta_ucode_activate(struct iwl_priv *priv, u8 sta_id) { lockdep_assert_held(&priv->sta_lock); @@ -1287,7 +1285,7 @@ int iwlagn_alloc_bcast_station(struct iwl_priv *priv, u8 sta_id; spin_lock_bh(&priv->sta_lock); - sta_id = iwl_prep_station(priv, ctx, iwl_bcast_addr, false, NULL); + sta_id = iwl_prep_station(priv, ctx, ether_broadcast_addr, false, NULL); if (sta_id == IWL_INVALID_STATION) { IWL_ERR(priv, "Unable to prepare broadcast station\n"); spin_unlock_bh(&priv->sta_lock); -- 2.15.0