Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp918712ybi; Wed, 3 Jul 2019 06:39:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3G5EMmLTw6xrTf3fd1PcS7dgprgODSJtSCgifSPq5wFYeOsCCyyDXVVhgc+z0fNvz81tg X-Received: by 2002:a17:90a:4f0e:: with SMTP id p14mr12512795pjh.40.1562161156720; Wed, 03 Jul 2019 06:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562161156; cv=none; d=google.com; s=arc-20160816; b=ntlimQLuNgJYZyeN4eR/JSxLgCbPhyMDg0e+1Vrr+Cu7bxsfEfvfBa4w5I6PXTipgQ 7kqENqMGVdWxki5IoB2cuJrtn2o8at0D/AGs+2nlqE5dk4TjW3vOmPo/YCBDJvHbVGBe 2seg1Jq4qT6rLJC2O0NVdb2Jhfu/HIFIMrppvHQpw2PH9dND/qgHXWFqDkpLXQgCmJ6G rrfJCQDOvysEVb3vMMxqmvTZcrD7U6uCAjzmDROqi48P7s4tNryYNkN0iLztUgIpGPOo FNAcwGUmx+Knufr3duCI9ViqkHpjAZ0E7Uf0Tn9aKT3DzsOUKuQtafz6eSHeXFUj1rWs K+tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=fuBpJoctFO9jhMjdNcsBzsiMQRAybywc+tEoJqD3Uao=; b=L6a2MvlFGdEv8IR8Ih6QDF7vQwloOAwVFRMoaRI5lrnoOtb13uLIHuUSvQ57laz+3L Wz1tPha1uHlPec9dU4zNWekdMx3YbMRpOpUSAX7vXnlDjHk6MsZxH8bjJO+S2XfmWFye qvV76avCcAocrdgCSG/bWnOe7LqFaYn5zQdPOclZdaMUKPp4l+h8/nqAi0s5yBBj5rBJ z0scSuU81vUSaA/Wui90PCSAn68VXz8Ii47abdhhaP0cusBbwc6IrrIsIPm1s+eKLSvC h3pP+NGLEzOITfoG60qOUPoL8+rY89hSfCmcIHVm/SrmvGDFpxZP8/PfoDW2zfsQzPNZ ALWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 l19si2323349pgb.204.2019.07.03.06.39.02; Wed, 03 Jul 2019 06:39:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726550AbfGCNib (ORCPT + 99 others); Wed, 3 Jul 2019 09:38:31 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:38370 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725847AbfGCNib (ORCPT ); Wed, 3 Jul 2019 09:38:31 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hifSu-0000Uu-Kh; Wed, 03 Jul 2019 15:38:28 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 1/3] cfg80211: clean up cfg80211_inform_single_bss_frame_data() Date: Wed, 3 Jul 2019 15:38:21 +0200 Message-Id: <20190703133823.10530-1-johannes@sipsolutions.net> X-Mailer: git-send-email 2.17.2 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg cfg80211_inform_single_bss_frame_data() doesn't need the non_tx_data data argument since it's always NULL. Signed-off-by: Johannes Berg --- net/wireless/scan.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/net/wireless/scan.c b/net/wireless/scan.c index d66e6d4b7555..70d061ed9cb6 100644 --- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -1776,7 +1776,6 @@ static struct cfg80211_bss * cfg80211_inform_single_bss_frame_data(struct wiphy *wiphy, struct cfg80211_inform_bss *data, struct ieee80211_mgmt *mgmt, size_t len, - struct cfg80211_non_tx_bss *non_tx_data, gfp_t gfp) { struct cfg80211_internal_bss tmp = {}, *res; @@ -1835,11 +1834,6 @@ cfg80211_inform_single_bss_frame_data(struct wiphy *wiphy, tmp.pub.chains = data->chains; memcpy(tmp.pub.chain_signal, data->chain_signal, IEEE80211_MAX_CHAINS); ether_addr_copy(tmp.parent_bssid, data->parent_bssid); - if (non_tx_data) { - tmp.pub.transmitted_bss = non_tx_data->tx_bss; - tmp.pub.bssid_index = non_tx_data->bssid_index; - tmp.pub.max_bssid_indicator = non_tx_data->max_bssid_indicator; - } signal_valid = abs(data->chan->center_freq - channel->center_freq) <= wiphy->max_adj_channel_rssi_comp; @@ -1877,7 +1871,7 @@ cfg80211_inform_bss_frame_data(struct wiphy *wiphy, struct cfg80211_non_tx_bss non_tx_data; res = cfg80211_inform_single_bss_frame_data(wiphy, data, mgmt, - len, NULL, gfp); + len, gfp); if (!res || !wiphy->support_mbssid || !cfg80211_find_ie(WLAN_EID_MULTIPLE_BSSID, ie, ielen)) return res; -- 2.17.2