Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1344386pxb; Fri, 24 Sep 2021 02:22:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaRkOTXs5lH3iNbvpvRKIMUsVAHt+L6qEKYqaRhDmF01Q34u3rLsNQy+DoFOoXSIyE3XVL X-Received: by 2002:a05:6e02:20e8:: with SMTP id q8mr6992915ilv.202.1632475358879; Fri, 24 Sep 2021 02:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632475358; cv=none; d=google.com; s=arc-20160816; b=RSA1b8o+z8c60KVzYxAw8RMIcjmL/qUWlc9AsTUY4zs+uUs0uB1cabni2St9mzszDP 4bajtt01KCthyiIOkjLhJzfRnIayx3eYTyO5ZMY/H6UCZ24d/ar8Dga1W3qYgtpMjF9e 4jBKBbnqyGOC3+MoHoVwaktc372v3RlDb/Km6bhnqy16NHgEvsH1kbpbCbQI/TdDgcAi uWg7YHJBqWgWRy0nPMVJeM/rD3Z7jDIWyj9EpX5+M6wosd5XrszVhhb9qbRhqoqvthls yLGxfQN2l3yH2qI5sD74WtY370h5G+CQ9B1+G7fqewcRA/xHIlRMfGVonrtuDV9TSSgp Ms/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version :sender:dkim-signature; bh=8s7VVl139a3i809ATKepHde+IYqg4+OOS/K41mjPwTY=; b=yayOXVuP/hUvCPkSA1qWijiN6evNdWEidUUEUwKmhwGWS9l5jflES/U5jeBj54ATsB ayvqVIooCuOKNsrHR79PBqoaz2kmi7Z02cG9NLlEb2vouBMqGscs53axqXtfBoCW8BXl YB7/Ay5u++Bg2bqnPlVmJfLah6j1WFKTIagJD80sKsb+8Kwfa2ifvrHmRBnH3B6mmR2R szoBC6rfZON2Of5nBlavrKmpSQJ94LDdAbyvNeq3O+c8YDPQIZPdYriIBlk/8doH+lDf 8jjfHsFbBBOIXLIHXVBMG3/MyS7QoErD3tKr3yNG8mjpHpuoUFWlljZIMHvcE5Dv9xTm CuAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=CzHRiTZs; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r1si9517053ilg.125.2021.09.24.02.22.28; Fri, 24 Sep 2021 02:22:38 -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=@mg.codeaurora.org header.s=smtp header.b=CzHRiTZs; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244859AbhIXJQM (ORCPT + 78 others); Fri, 24 Sep 2021 05:16:12 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:22818 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244422AbhIXJQM (ORCPT ); Fri, 24 Sep 2021 05:16:12 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1632474879; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=8s7VVl139a3i809ATKepHde+IYqg4+OOS/K41mjPwTY=; b=CzHRiTZs+tEUFjESy6c/iHgprPiYQbI9eLoOTNIfN7l3J6GFUgXJAUveKBX0P9W94B4kbkgx XPPXcUGT12tEyUsudd7uihPNc+iS0406/O/+hH5t5ONPPG8siRfGNrsRAQhl25rNs47D9DzW DkmIO+TLDGXDzgfu6W/UQjuBgVU= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n02.prod.us-west-2.postgun.com with SMTP id 614d96c644830700e1b5ee29 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 24 Sep 2021 09:13:42 GMT Sender: youghand=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B6A5CC43617; Fri, 24 Sep 2021 09:13:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: youghand) by smtp.codeaurora.org (Postfix) with ESMTPSA id 248A1C4338F; Fri, 24 Sep 2021 09:13:42 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Fri, 24 Sep 2021 14:43:42 +0530 From: Youghandhar Chintala To: Johannes Berg Cc: Abhishek Kumar , Felix Fietkau , "David S. Miller" , Jakub Kicinski , linux-wireless , netdev , LKML , Douglas Anderson , Brian Norris , Rakesh Pillai , Manikanta Pubbisetty Subject: Re: [PATCH 2/3] mac80211: Add support to trigger sta disconnect on hardware restart In-Reply-To: <5826123db4731bde01594212101ed5dbbea4d54f.camel@sipsolutions.net> References: <20201215172352.5311-1-youghand@codeaurora.org> (sfid-20210205_225202_513086_43C9BBC9) <66ba0f836dba111b8c7692f78da3f079@codeaurora.org> <5826123db4731bde01594212101ed5dbbea4d54f.camel@sipsolutions.net> Message-ID: <30fa98673ad816ec849f34853c9e1257@codeaurora.org> X-Sender: youghand@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes 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. The other peer say an AP, it does not know anything about the SSR on the peer device. It expects the next TX PN to be current PN + 1. Since TX PN starts from zero after SSR, PN check at AP will fail and it will silently drop all the packets. Regards, Youghandhar On 2021-09-24 13:09, Johannes Berg wrote: > On Fri, 2021-09-24 at 13:07 +0530, Youghandhar Chintala wrote: >> Hi Johannes and felix, >> >> We have tested with DELBA experiment during post SSR, DUT packet seq >> number and tx pn is resetting to 0 as expected but AP(Netgear R8000) >> is >> not honoring the tx pn from DUT. >> Whereas when we tested with DELBA experiment by making Linux android >> device as SAP and DUT as STA with which we don’t see any issue. Ping >> got >> resumed post SSR without disconnect. > > Hm. That's a lot of data, and not a lot of explanation :) > > I don't understand how DelBA and PN are related? > > johannes Regards, Youghandhar -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation