Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F420C43381 for ; Mon, 18 Mar 2019 09:54:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EDED92075C for ; Mon, 18 Mar 2019 09:54:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727368AbfCRJyw (ORCPT ); Mon, 18 Mar 2019 05:54:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54318 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbfCRJyw (ORCPT ); Mon, 18 Mar 2019 05:54:52 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1D97089C38; Mon, 18 Mar 2019 09:54:52 +0000 (UTC) Received: from localhost (unknown [10.43.2.106]) by smtp.corp.redhat.com (Postfix) with ESMTP id C1AAC1001DE7; Mon, 18 Mar 2019 09:54:49 +0000 (UTC) Date: Mon, 18 Mar 2019 10:50:15 +0100 From: Stanislaw Gruszka To: Felix Fietkau Cc: linux-wireless@vger.kernel.org, Lorenzo Bianconi Subject: Re: [PATCH 08/11] mt76x02u: implement pre TBTT work for USB Message-ID: <20190318095014.GA3323@redhat.com> References: <1551692896-7062-1-git-send-email-sgruszka@redhat.com> <1551692896-7062-9-git-send-email-sgruszka@redhat.com> <5844c0b8-3db9-d985-da75-a11318df37c5@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5844c0b8-3db9-d985-da75-a11318df37c5@nbd.name> User-Agent: Mutt/1.5.20 (2009-12-10) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Mon, 18 Mar 2019 09:54:52 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Sat, Mar 16, 2019 at 08:44:21PM +0100, Felix Fietkau wrote: > On 2019-03-04 10:48, Stanislaw Gruszka wrote: > > Program beacons data and PS buffered frames on TBTT work for USB. > > We do not have MT_TXQ_PSD queue available via USB endpoints. The way > > we can send PS broadcast frames in timely manner before PS stations go > > sleep again is program them in beacon data area. Hardware do not modify > > those frames since TXWI is properly configured. mt76x02_mac_set_beacon() > > already handle this and free no longer used frames. > > > > Signed-off-by: Stanislaw Gruszka > I think it's a nice idea, but there is one problem with that approach: > beacon slots only have 1024 bytes for TXWI + data. > I think to support this properly, you probably need to adjust beacon > offsets for USB dynamically and limit the number of frames to what you > can fit in SRAM. That would be good since we could sent more buffered frames (ARP frames are small), but for now I would prefer simpler solution to enable AP support for USB: increase slot size to 1600 and make only 5 slots available. I assume we can not increase beacon SRAM area to more than 8kB. Stanislaw