Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2060799iob; Thu, 5 May 2022 14:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxX1rJE7IBLV0n5wRHkitNbYHu76CtC/Law4LIPIKBqcgBds0F9sMTbVyFXDx3+VOc9U6/r X-Received: by 2002:a17:907:62aa:b0:6e0:f208:b869 with SMTP id nd42-20020a17090762aa00b006e0f208b869mr198202ejc.270.1651786948791; Thu, 05 May 2022 14:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651786948; cv=none; d=google.com; s=arc-20160816; b=kKoZx1ize9ye133I6HZ7jmXRCE1ehbb07p7oT1PoxyczFEYx2hwR03hsxbzV7iC/GL axeLePNQjaZByh/hAAn6R003Fhg1gz7ztPs2meGtUXX9E9hFfJbk3R+Ll3oy5gbriR2v F1WrybjnJGELqeNK1MzaoWrwgoL0bx/xk83EUfI4Z+ceqNWfBAlpo7L7WARGEvxhC16c ZS9sKlbSgV3QcOZd62eKolpaCoOTYmnqV3s6JJEgjy54jrqD8PjgCUIW1DhTl7REAXz6 5yrkLktiXumqsgVSaWYsmhLsskdaSt7lqh6STcAZ3ntxtd3JJ7vVvX5KKwKwvjknsS7g i9eQ== 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=l9mYgL4Ih0Yrkw4dha3tbuPVN2YYKfqSw+M0+XnKe/c=; b=dC4U5m6CzXPIdkNI1RHQ25FGLZO/Ws+AaeXDFXbZ0Roz2Duz2hDZ52iOE+J3PWluG/ yeZtZzOO+3tDqk9AW+emmqhIvFiVKRxdpgLl6wN/yYIrYGFFZ6kESnEVnOsWKcez/XBs whGXudecqzo+brutyb3hmfp0MpaF5FFyxOStNHkLvoa9myCJelJxeGpKgbSUBZtnluUw zZrIpNWgRX/LH/cqsSYipG08wCl2JnEbc7aiUI9RTp1anw5bZHjwZl+H3WZNv1LZjXpn AzRn+rd/oz9L6XJpgRc8swTs7/Jf1RPL1/4ZqGCS0A7OvRlG25rPB54aro1dfxK/stLG f+1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Y6ttzwXg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170906785100b006df7808f11fsi3128290ejm.913.2022.05.05.14.42.03; Thu, 05 May 2022 14:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=Y6ttzwXg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355478AbiEEMcK (ORCPT + 68 others); Thu, 5 May 2022 08:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237718AbiEEMcJ (ORCPT ); Thu, 5 May 2022 08:32:09 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BAA34E3B1 for ; Thu, 5 May 2022 05:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=l9mYgL4Ih0Yrkw4dha3tbuPVN2YYKfqSw+M0+XnKe/c=; b=Y6ttzwXghX0dur3EIohKOXTOcl Cf91TuaDvT8o+R2KUlGxL+2JpWgietScqpJ2O/A3479E8gPG5X3IVQEmaAwL391QNB2Hv1J5bf87q 9P5ztXIHKVBL+hsNpUIoatAouqd55hfbuJjDKkC6ierJ34JpsUy4St3bUqquLw+ysqh8=; Received: from p200300daa70ef200412f484bca3869cd.dip0.t-ipconnect.de ([2003:da:a70e:f200:412f:484b:ca38:69cd] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nmaan-0001Ds-UU; Thu, 05 May 2022 14:28:25 +0200 Message-ID: Date: Thu, 5 May 2022 14:28:25 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH 4/4] mt76: mt7915: limit minimum twt duration Content-Language: en-US To: Lorenzo Bianconi , Peter Chiu Cc: Ryder Lee , Evelyn Tsai , Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: <20220505082554.16656-1-chui-hao.chiu@mediatek.com> <20220505082554.16656-4-chui-hao.chiu@mediatek.com> From: Felix Fietkau In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 05.05.22 14:23, Lorenzo Bianconi wrote: >> The minimum twt duration supported by mt7915 is 64 according to hardware >> design. Reply station with TWT_SETUP_CMD_DICTATE if min_twt_dur smaller >> than 64. >> >> Signed-off-by: Peter Chiu >> --- >> drivers/net/wireless/mediatek/mt76/mt7915/mac.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c >> index ff60a3d2d26d..e912ecacb578 100644 >> --- a/drivers/net/wireless/mediatek/mt76/mt7915/mac.c >> +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mac.c >> @@ -2633,6 +2633,7 @@ void mt7915_mac_add_twt_setup(struct ieee80211_hw *hw, >> struct ieee80211_sta *sta, >> struct ieee80211_twt_setup *twt) >> { >> +#define MT7915_MIN_TWT_DUR 64 > > nit: can you please move MT7915_MIN_TWT_DUR in mt7915.h since we have other twt > defs there? Fixed in my tree. - Felix