Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1928327rwi; Tue, 1 Nov 2022 01:25:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM561Xc9DGu4lzQ54Qkqi1sXl5OeVrkmrOBsslMizMgEaTOmQ7Oe1A7bUbopoZR88CMvzMVy X-Received: by 2002:a17:906:da85:b0:741:40a7:d08d with SMTP id xh5-20020a170906da8500b0074140a7d08dmr18042524ejb.263.1667291124203; Tue, 01 Nov 2022 01:25:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667291124; cv=none; d=google.com; s=arc-20160816; b=yCUGBG8iA0d5r1fiyUAUoH0uro/EjKGFwME1zCroGAF1JuxXcdgW2aWIyJNF2iiuR8 lUmjKhpSdnkU9o27kpwVqWFaRmBYCuSt64gYSfA9lMQbGp8ZHjzPOYjJCq3efoofU46l dzm1HJ9+/d/j8Sq4Vd5apg5JvzFdNT/Jj0JLHGsDXkU0BDI9hfTI5mKujcaP3bIbbJhx BYiuPcV/62LSsIZk14qt/9jB9iVGINk001RaPznQPIujH1oTxQJ5KS6DbnSqSyX+wMDU 1aw06YO9VVkivcGUMvxkE7yFbe3lsxYs/Obo4j18qJriJeRC2Ew2700o8IUP+PpKnKDB bhDw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:dkim-signature:message-id; bh=+2Ns2TX1sRXVZjVl4IJiGB1fQL1c8WeTMwuhPpFatXU=; b=ltB2IZLmOHeFF5RnAmOQymcr2Sh0rstApjQew+yD9JTiibHM0wXM/ifAWzatjJdqLG qBU+OCA2pMdpsHNe/EeiAG3p9RuSBHL+WnzEV/H+S+vUMBsC9wDLW6uMKY4YmcY9OwJI kSHtIQdbfgIybl3jBykf58vPlpHxmVGCJQ7wM1bgqA2prGkax7Cgo4r9HYRh+tXolqmn 6HP6WuLDQ1x30f8gzh7kzllH8hAruVP/M1ce0RKBjdYX6WyuqA6wzm3Iwuy++yn/d9Qc htvGOzrDuTRV6M3Rmjqvo750VyMl4ubPwaAa1IvFMJ4GMN7n12PSpqmWPt6XFlCBGBCI sprw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=B61cwVqt; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu14-20020a170906eece00b0073ced0e9bb1si8690080ejb.189.2022.11.01.01.25.03; Tue, 01 Nov 2022 01:25:24 -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=pass header.i=@wetzel-home.de header.s=wetzel-home header.b=B61cwVqt; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wetzel-home.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229756AbiKAISL (ORCPT + 66 others); Tue, 1 Nov 2022 04:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbiKAISK (ORCPT ); Tue, 1 Nov 2022 04:18:10 -0400 Received: from ns2.wdyn.eu (ns2.wdyn.eu [5.252.227.236]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3CC3D1261A for ; Tue, 1 Nov 2022 01:18:09 -0700 (PDT) Message-ID: <02494022-6f02-22ba-eb9e-f57384c9238d@wetzel-home.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wetzel-home.de; s=wetzel-home; t=1667290687; bh=edpnasYMHywX6fAPpEGPNxXBbHuGDe/LkdkZ2Y7RmDA=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=B61cwVqtpKiMqJ18ekIaLUoQ/DsFIS8rOrKAR8ZiO5XKKLuzyPRvc3rJRTeKDnN9N 2OBFZIEID1Mhx0QLPG/LBIj9DpTSaN/Mu7wSg42npTNJhewnFMEmpj88WvWNHB9m5d QkESh0NrCevJ/paVa7HVpXEvk2hTHey5zAr1Byj8= Date: Tue, 1 Nov 2022 09:18:05 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] wifi: mac80211: convert PS buffering into iTXQ To: linux-wireless@vger.kernel.org Cc: Johannes Berg References: <20221031211815.6666-1-alexander@wetzel-home.de> Content-Language: en-US From: Alexander Wetzel In-Reply-To: <20221031211815.6666-1-alexander@wetzel-home.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 > @@ -3773,6 +3577,13 @@ struct sk_buff *ieee80211_tx_dequeue(struct ieee80211_hw *hw, > ieee80211_free_txskb(&local->hw, skb); > goto begin; > } > + } else if (vif->txq == txq && > + vif->type == NL80211_IFTYPE_AP && > + atomic_read(&tx.sdata->bss->ps.num_sta_ps)) { > + info->flags |= IEEE80211_TX_CTL_SEND_AFTER_DTIM; > + > + if (ieee80211_hw_check(&tx.local->hw, QUEUE_CONTROL)) > + info->hw_queue = tx.sdata->vif.cab_queue; I forgot to drop the two lines above. vif.cab_queue is also set in ieee80211_get_txq(), making these lines redundant. (As standalone they would be wrong and not always setting the flag when needed.) Since I'm sure there will be more issues I won't submit a new patch immediately. Alexander