Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1415667pxb; Fri, 24 Sep 2021 04:09:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztWGPLFMWwHm7W52PTokg4borFrR+EyUrCW40HUbo85bed3xxvzlL4olhFyvFF2NZ58Sxo X-Received: by 2002:aa7:c998:: with SMTP id c24mr4221009edt.158.1632481769627; Fri, 24 Sep 2021 04:09:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632481769; cv=none; d=google.com; s=arc-20160816; b=s5uG+fSq2fT67qMVEZDBAjegtNt/KQtx8T6wg2Erw11ZX/mwsAXoIwdFUwvEwILe1O TCPBRYDngOeJ0HWuspmpelipno9wHt84Qz66Wdts8YxVHnnXNLVaOVDRNdP2ExDLYmFA F5D9ujjSb2LAozTQ8RPR4ETtgzeA913KyVpNsRtjq8jxQ5AFUBujt5o3HMMZJvQ/2+eF lohkxigzJPNEtbm229dsv6le+FBXKhhZBdm9R+AmrxKpYE1EB5o88cnPg62gF6NDiYXL aR6FBJl9qetQYeSFlbt4RGiN73R8Qz2rhfmw3otFgojs9Mp9WjjbXapyAl8sYcfbeJXD lKNg== 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:date:cc:to:from:subject :message-id:dkim-signature; bh=9GxW7f1PM4tlFV8GS6ENNCIsOWiZB1CGSgf0VxPfSxU=; b=CUm42gBV+K4d0ZtVFJGa0jWIclNXHjdhnE3HU+dZehC3svZHEC4RDR3uxC7aKJefaK tKFLQuXBIIR+kr+1wzgzrFncdOLDqplUciUHXhCHQSEv/I88uUuh17zqkodrfIPIFrSV V50zuIW/aXFfZJYwo65k23oxDVnwfvZM36K94+jB6FiAWWUUtvMa3qatvmNXCBKkgjQg 2n8HkU+m/Kj72YPujJmnqWNL6ZwWzPwC/cHhjBlWLZprcVCDfaOfApPaRskfsoFMyzy0 p7FqA4EvSIKXffkNuT6WCqfI4XvlBWYYghuKdwokPYBAIVZNZqnbIHU5HNtGbrf7kcUB hyRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=e078anP+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si8826761ejr.250.2021.09.24.04.08.55; Fri, 24 Sep 2021 04:09:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@sipsolutions.net header.s=mail header.b=e078anP+; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244931AbhIXJWe (ORCPT + 78 others); Fri, 24 Sep 2021 05:22:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244555AbhIXJWa (ORCPT ); Fri, 24 Sep 2021 05:22:30 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC362C061574; Fri, 24 Sep 2021 02:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=9GxW7f1PM4tlFV8GS6ENNCIsOWiZB1CGSgf0VxPfSxU=; t=1632475257; x=1633684857; b=e078anP+jhgULPe4U63PVvoM+GFz5UJ/yXuNrvCEeTgl1ga Ja6lV/8V6UseMEQw4SAG37s+gs3yiLDHjT6bDnliqT1SFEahJww/geeUmymE4OIDExNJ2HZx4Sihr RYrWmN6vbsHJ5WtDd76kEgRXdiS2dudvqnpWDhxq08JkLXd3ogLZU1dgsR5UB69jm3wWuyqP/0nx5 iZz4/mP8crhWpX3T1Zr9f+ODm3Sm4p4yXgvlIrNSdz2qlmMcPBTccYQsSB0BRqpCsQRt9Kt2V9HT5 p152Wj+qHTckYXwQizwPX3JE59KKGfJ1xV5JCFHNF5hVOxTo/NsGuCUPetNQTAUw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.95-RC2) (envelope-from ) id 1mThNz-00B89x-JN; Fri, 24 Sep 2021 11:20:51 +0200 Message-ID: <90d3c3c8cedcf5f8baa77b3b6e94b18656fcd0be.camel@sipsolutions.net> Subject: Re: [PATCH 2/3] mac80211: Add support to trigger sta disconnect on hardware restart From: Johannes Berg To: Youghandhar Chintala Cc: Abhishek Kumar , Felix Fietkau , "David S. Miller" , Jakub Kicinski , linux-wireless , netdev , LKML , Douglas Anderson , Brian Norris , Rakesh Pillai , Manikanta Pubbisetty Date: Fri, 24 Sep 2021 11:20:50 +0200 In-Reply-To: <30fa98673ad816ec849f34853c9e1257@codeaurora.org> References: <20201215172352.5311-1-youghand@codeaurora.org> (sfid-20210205_225202_513086_43C9BBC9) <66ba0f836dba111b8c7692f78da3f079@codeaurora.org> <5826123db4731bde01594212101ed5dbbea4d54f.camel@sipsolutions.net> <30fa98673ad816ec849f34853c9e1257@codeaurora.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi, > We thought sending the delba would solve the problem as earlier thought > but the actual problem is with TX PN in a secure mode. > It is not because of delba that the Seq number and TX PN are reset to > zero. > It’s because of the HW restart, these parameters are reset to zero. > Since FW/HW is the one which decides the TX PN, when it goes through > SSR, all these parameters are reset. Right, we solved this problem too - in a sense the driver reads the database (not just TX PN btw, also RX replay counters) when the firmware crashes, and sending it back after the restart. mac80211 has some hooks for that. johannes