Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4694457iob; Sun, 8 May 2022 22:16:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvcTfyUizk12yosozdYfa6XtRtpD/zmWZT5VrTrss/1FdkC6NK79Eqwtq1meMKDggRmojw X-Received: by 2002:a17:902:d547:b0:15e:c404:5a3b with SMTP id z7-20020a170902d54700b0015ec4045a3bmr14452043plf.110.1652073401452; Sun, 08 May 2022 22:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652073401; cv=none; d=google.com; s=arc-20160816; b=lQZx0C1VGVrhyN9MEMHFAKONVub1bAOlulBTQJ+3Aok3sbFwjQmv/WglEblwRJ3H0C XOzD7PABFTNAnMp8KTt0Hftef+PhXEhAjd+6JT4JoZ/1YF2xI8BNvd4+zQrIYR6aGnFV d6ak998Yumqcy5PIUKE97k2nF7VfMzNYY7536VPO5E5nIsHQBNorFYO3BZw6DAgR9E+D Mc5wl5fX1Wvr4MjptHw6L9pBFTrLYN2BtLkOqYLpmAJeBI1nGlTndEALoF12qgPol0Ax xQfeu/HmAC7Zr/ngq+upAAONRVsb4I5/t87tsK1NzlNUCVEOLPjwrC7RLV02++edH4Nw Pnbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=cii21deJ1sHe+d2ofzjVw0a1GqBD8b0nDHlZCPjX5F8=; b=jRpWvYPhpnQzIr3Ej6UdslrVf0rXb8A8L6q0OQTQ50bZxaqdj2HiJH90WYEoyjRlMU yxjwA9jL75um/tbweu1d6PNuVk2fEIud/0KUdg6UDXoYKRYDZAUeJKbGQOC1jwOfzVAf f3pmELKNJ80LpVteVzRKLRVUHOzajfPHvTgCNiOkIvZ1oopzZk0biMPETv87AcenrCVd YHoLq2UR4t0MVlfp9U4mSN/bwEdjuQRmUXCBWbeQI32K6uxX+cbtoNX6fFnoe3Hm2M4B efYogD6vPXnIl3TzGA41rT6afwkFQbZD3wBphtN25vkRbiJwhUYaQkfet1KSIG1RHD1R RPgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="aNiBAZ/K"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t11-20020a170902bc4b00b001587db93e4asi8920283plz.160.2022.05.08.22.16.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 22:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b="aNiBAZ/K"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 653EB142818; Sun, 8 May 2022 22:12:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384808AbiEETIF (ORCPT + 68 others); Thu, 5 May 2022 15:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384818AbiEETID (ORCPT ); Thu, 5 May 2022 15:08:03 -0400 Received: from alexa-out-sd-02.qualcomm.com (alexa-out-sd-02.qualcomm.com [199.106.114.39]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE9A54ECF9 for ; Thu, 5 May 2022 12:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651777463; x=1683313463; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=cii21deJ1sHe+d2ofzjVw0a1GqBD8b0nDHlZCPjX5F8=; b=aNiBAZ/KULUvtMEfWEfBPH7GHUy1XAY3TOzfuxL7af077MtcPYzTF/4/ MxegEQbbNCg3bMcC9hVAlrZhxpfVz1CeuH319hqwRF8VTS3lmoG2r3WgR 1TO79KVOgorSoK6M3W/V0hqC96y4ZvISqz35pz99EIynkE7R/bSa3tgT/ 0=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 05 May 2022 12:04:23 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2022 12:04:23 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 5 May 2022 12:04:22 -0700 Received: from [10.110.125.2] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Thu, 5 May 2022 12:04:22 -0700 Message-ID: Date: Thu, 5 May 2022 12:04:21 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] ath11k: Handle keepalive during wowlan suspend and resume Content-Language: en-US To: Baochen Qiang , CC: References: <20220505014657.1549947-1-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20220505014657.1549947-1-quic_bqiang@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/4/2022 6:46 PM, Baochen Qiang wrote: > With wowlan enabled and after sleeping for a rather long time, nit: s/wowlan/WoWLAN/ to conform to common usage (also in subject) > we are seeing that with some APs, it is not able to wake up > the STA though the correct wake up pattern has been configured. > This is because the host doesn't send keepalive command to > firmware, thus firmware will not send any packet to the AP and > after a specific time the AP kicks out the DUT. > > Fix this issue by enabling keepalive before going to suspend > and disabling it after resume back. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-01720.1-QCAHSPSWPL_V1_V2_SILICONZ_LITE-1 > > Signed-off-by: Baochen Qiang > --- [...] > + > +enum wmi_sta_keepalive_method { > + WMI_STA_KEEPALIVE_METHOD_NULL_FRAME = 1, /* 802.11 NULL frame */ > + WMI_STA_KEEPALIVE_METHOD_UNSOLICITED_ARP_RESPONSE = 2, /* ARP response */ > + WMI_STA_KEEPALIVE_METHOD_ETHERNET_LOOPBACK = 3, /*ETHERNET LOOPBACK*/ > + WMI_STA_KEEPALIVE_METHOD_GRATUITOUS_ARP_REQUEST = 4, /* gratuitous ARP req*/ nit: for the two above consistently have space separating comment from /* and */ > + WMI_STA_KEEPALIVE_METHOD_MGMT_VENDOR_ACTION = 5, /* vendor action frame */ > +}; [...]