Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp709565pxv; Thu, 15 Jul 2021 14:06:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFVyoSwxK5I6LBG1GOw6kOpwgY3yWTS/72NAjarOPCWltlXBeeHWejxv4MiJ197SXbfRzV X-Received: by 2002:a05:6402:1a57:: with SMTP id bf23mr9771989edb.312.1626383195603; Thu, 15 Jul 2021 14:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383195; cv=none; d=google.com; s=arc-20160816; b=vlnYfgv9OqSVAnHY2y36BNulaDeER03+FXwgzsRWXigy1sH6cVaBE84PJN+zeRktLK 5RMv/ZQgvxm31IXDs4bT9XH0t6BAcykCLR1g8DoI7bBYyW/lkYusE+DnnathxgC1ru6J j3tEX95dTGR+jsF5MoqKJv1zMDrwAYlq/NLOkMg9NptvmkFZRA0nxhSBs9D/A2GZc9r0 wuKjNCe+YmNozjwHx4005dorhegjQ9XJAABMsGiijiVB47FrDwSvCzqFQFNxroQoAXzl GLVtibbWndI3p9+K1OH9nRvF6aRIUhaVUzU8iw6QxumqjSBx7wduFcBDCip0OEZ1aSg6 IarA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=h6nh/nEHZg0EoQydqyBkH2c1b6a7uhXqRl0px8AlNY8=; b=YNNhdRpOD+RmF0trdKwe7uaaPTTLbPdjts+8NVyKZznB9cutbOhp/vPg/Z4bLVkWcY kwUccnEuZGojf4YzHpdHKulyHVoeUkOLpjk+/sK46QHdDqtPvdg+ZV/EXQtZEzP/XhSE +kCNdc+wT3HVF7JE466KDUQvwtNuVzqV0KGNOTDk/Gfke9Fy2I39V+FYzZjLSSFuzk7s xLhQxTNG6oWYEvFPhDP4oLl1MlIgecOGKCq2uC9T1VC9oqzqUWQfv8LFd8BDQqWPRtUs kM0/H68hW6i92bC5tt9Wm1d0FY9Lt9blFjxcqDUtlGTZ10V2xsKI/7OCofvqx1J6jVG0 s6DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2sdkKWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si9672754edb.495.2021.07.15.14.06.12; Thu, 15 Jul 2021 14:06:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t2sdkKWC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243291AbhGOTRz (ORCPT + 99 others); Thu, 15 Jul 2021 15:17:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:39760 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243418AbhGOTEX (ORCPT ); Thu, 15 Jul 2021 15:04:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CED2A613D0; Thu, 15 Jul 2021 19:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375612; bh=r8kwZdWEjeJQgavL3sZHDfFvoV3qOI6K31qBnTF5WkQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t2sdkKWCIpGOOSnt3CNIhOggP/Pbo7J8RB5hw8qjeNpC6DUTX7SquRpc1g/U2i1+u HzLN/P6mmxOJOcueCe0uTlxw4CeYxzkrb/yvfMkahS8Dl/lSAtwXw1wzhPFT0IqNXY AoL9lTDBsDCB+ECZG571cD3nVEvtQu4wtb8AXTWU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shaul Triebitz , Luca Coelho , Sasha Levin Subject: [PATCH 5.12 118/242] iwlwifi: mvm: fix error print when session protection ends Date: Thu, 15 Jul 2021 20:38:00 +0200 Message-Id: <20210715182613.890885891@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Shaul Triebitz [ Upstream commit 976ac0af7ba2c5424bc305b926c0807d96fdcc83 ] When the session protection ends and the Driver is not associated or a beacon was not heard, the Driver prints "No beacons heard...". That's confusing for the case where not associated. Change the print when not associated to "Not associated...". Signed-off-by: Shaul Triebitz Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20210617100544.41a5a5a894fa.I9eabb76e7a3a7f4abbed8f2ef918f1df8e825726@changeid Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/time-event.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c b/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c index 0b012f8c9eb2..9a4a1b363254 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c @@ -289,6 +289,8 @@ static void iwl_mvm_te_handle_notif(struct iwl_mvm *mvm, * and know the dtim period. */ iwl_mvm_te_check_disconnect(mvm, te_data->vif, + !te_data->vif->bss_conf.assoc ? + "Not associated and the time event is over already..." : "No beacon heard and the time event is over already..."); break; default: @@ -787,6 +789,8 @@ void iwl_mvm_rx_session_protect_notif(struct iwl_mvm *mvm, * and know the dtim period. */ iwl_mvm_te_check_disconnect(mvm, vif, + !vif->bss_conf.assoc ? + "Not associated and the session protection is over already..." : "No beacon heard and the session protection is over already..."); spin_lock_bh(&mvm->time_event_lock); iwl_mvm_te_clear_data(mvm, te_data); -- 2.30.2