Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2528352imu; Thu, 29 Nov 2018 06:27:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/X5gwRNW8ivFwTKyRmz5Jmn6mYmjEP9yB/fYDbMzP6pr0AUYqwoF11UKaLM1a7ax8Mjd5zJ X-Received: by 2002:a17:902:3181:: with SMTP id x1mr1678856plb.58.1543501621480; Thu, 29 Nov 2018 06:27:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543501621; cv=none; d=google.com; s=arc-20160816; b=uOlpk6Pc6q5PBOuTvz31AgsSUpxr7dmUr9gDAWMdIsh6uVqa7adCJ77yATD3Bc4jzo 7bK57g1zKFceHLAhbjzpUsWRp4CH4ayXwO6SxXGRCmXnt+xP6tkkZ6KO7M+olYiDmCEA U/UxouOBiS0V7jwF1//02CjkBHeIUsF5GFJ4vNYhKOGxYBJMPbzMOtqVDeNtqPJsgyls yGUBeKWJAlGCkhkIkMP2+KWDoAmXGYDkhWS6ufeoTD13N5ugyj+cymMRRoj74wjfu1+W tKmOPydYrTYSt7AcyMFYH2lQyM42UnAyjysRRagi7YDU8efXezcx7jhDy/FA8/Itpewv UK1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=HIJtMUePLTJB1113gxOQfeZKq9OmE99n0rcgIk7Cf4U=; b=Bd7fNBDGUy7ChL/9oKgwoIs4ydf5qxlakPHBJGD+DUVLKRIgVg9pnp9MTTAFV+WW2I Oj05hAYVGOiWbG6M/oXdybPulW9UczohCL5kZNoXWCzs01H0hkkl0IKOX1Z/b6YFQCJK gOfKQ51i/gb30yn899T+Bw7b5TJpyzvD38p+m/O1J3Zc0e7Ga9p5rLmynZtCLO1Vhxrh ZpD/+cWMQgk0VVyJuisi5EUjK6RDHJePfzdA5ilPFDwBDaY31/sRkWVnx8/QdJpHC+0C N4PrM1wI/124KBASmivQ5Qh2+080ybK/9BCAHCse7K/KPGTI6nicpEWDwEO6t9A977dN czqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oDtbBlY2; 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 37si1768270pgw.590.2018.11.29.06.26.46; Thu, 29 Nov 2018 06:27:01 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=oDtbBlY2; 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 S1733209AbeK3Bbn (ORCPT + 99 others); Thu, 29 Nov 2018 20:31:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:59376 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729984AbeK3Bbm (ORCPT ); Thu, 29 Nov 2018 20:31:42 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A54602133F; Thu, 29 Nov 2018 14:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543501570; bh=KMaxANTAClP+4/b8adJMH5v7zwixGljE+0vDj7DU29k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oDtbBlY2BO9Y9+zlC6c1HW9S5/hsNaP8CM7AvWxWoxH4buMv18AtQWp1cq0oqA3GT ZzFlyiUvMrFCk78SlbiE8jB6yILnHnHoxE/FshpgNeikxVYd+vbdco+/WALFrEaC1D sj14AxlYcTJleeBSQZHGO/PhiMPtezoVV3EsGTFw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Luca Coelho Subject: [PATCH 4.14 016/100] iwlwifi: mvm: support sta_statistics() even on older firmware Date: Thu, 29 Nov 2018 15:11:46 +0100 Message-Id: <20181129140100.290856000@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181129140058.768942700@linuxfoundation.org> References: <20181129140058.768942700@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Emmanuel Grumbach commit ec484d03ef0df8d34086b95710e355a259cbe1f2 upstream. The oldest firmware supported by iwlmvm do support getting the average beacon RSSI. Enable the sta_statistics() call from mac80211 even on older firmware versions. Fixes: 33cef9256342 ("iwlwifi: mvm: support beacon statistics for BSS client") Cc: stable@vger.kernel.org # 4.2+ Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 4 ---- 1 file changed, 4 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c @@ -4189,10 +4189,6 @@ static void iwl_mvm_mac_sta_statistics(s sinfo->filled |= BIT(NL80211_STA_INFO_SIGNAL_AVG); } - if (!fw_has_capa(&mvm->fw->ucode_capa, - IWL_UCODE_TLV_CAPA_RADIO_BEACON_STATS)) - return; - /* if beacon filtering isn't on mac80211 does it anyway */ if (!(vif->driver_flags & IEEE80211_VIF_BEACON_FILTER)) return;