Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2705356pxf; Sun, 4 Apr 2021 11:07:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9r4TfQKvopIAvEqz40vJ1PkNinsZaUktJnaH77NKSUl/fmaLXz+sOCdjwkKk8WjxZqXUW X-Received: by 2002:a17:907:110f:: with SMTP id qu15mr2986688ejb.336.1617559620305; Sun, 04 Apr 2021 11:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617559620; cv=none; d=google.com; s=arc-20160816; b=QTNpIp8K9HpryWzWWglODFG0mfSW5MHHqEYAQKgCbhG604zdahvZgRGbvPZpEoUfq1 q8RRfi2p6W6udYl9Y0VuWMt/haG8s7jLYXHtMqwt4EeHbC95J2zYIMA+4qkeTfJ/KFca UvG6jOX2CmY+ZHJvlidYZcdR50WtyACEEhzbXJcfApz5tSGGZLj8EZXpgz0JE0gpEJlh Vbqx21ZcP397Ylnx7SemTlmrVb7X7VcP8mPk1HQ1VR6n1VIWaPfD591t4WV4icduMrhK vOdpGzNlOwClEtol/oDXhYqj4j4gjR8yj6Nrjxp4yYcUjZonDodkIL3hp5pnabWA3mF8 F0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject; bh=+Y1iXNXoYSSrhZlazvubCkBq7wgiws5qsYfeWtd9OUo=; b=i2kTBDca8xQBcRVjU04kPwWVXVb0r2peVQHLTwDDtQLSmoD5kuD0WxEFcuCIeGhszE C6iK3sW+EikmEpOMfticxCbmAmlnQJZ8MumwgnTFKsq+O346J92rqMRjYV1GT0ed0sHl O2YmomkYQhrdnQNtCUtiPr7SRSvClNb/gfvnLaeX8901h0jfHQoq9cTjp1IuQg5JOnfv e1r9PyzKhRAUpQte54uQnYQEOjJJ8V6OEp2YjflfGSCsX65ek6cCmBp+bVkBz1U5iIi1 +WMjIgNpAAVLz0J4FyDZYjA0mPej5J+aEsIw3vku70+RyVfBWvLxZSLM5SALMRxH4fK2 BAZg== ARC-Authentication-Results: i=1; mx.google.com; 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 e1si10974056edr.103.2021.04.04.11.06.33; Sun, 04 Apr 2021 11:07:00 -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; 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 S231284AbhDDSGf (ORCPT + 99 others); Sun, 4 Apr 2021 14:06:35 -0400 Received: from vps-vb.mhejs.net ([37.28.154.113]:54356 "EHLO vps-vb.mhejs.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbhDDSGe (ORCPT ); Sun, 4 Apr 2021 14:06:34 -0400 Received: from MUA by vps-vb.mhejs.net with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.93.0.4) (envelope-from ) id 1lT78W-0003qW-Qq; Sun, 04 Apr 2021 20:06:12 +0200 Subject: Re: rtlwifi/rtl8192cu AP mode broken with PS STA From: "Maciej S. Szmigiero" To: Ping-Ke Shih Cc: Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kalle Valo , Larry Finger References: Message-ID: <846f6166-c570-01fc-6bbc-3e3b44e51327@maciej.szmigiero.name> Date: Sun, 4 Apr 2021 20:06:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 29.03.2021 00:54, Maciej S. Szmigiero wrote: > Hi, > > It looks like rtlwifi/rtl8192cu AP mode is broken when a STA is using PS, > since the driver does not update its beacon to account for TIM changes, > so a station that is sleeping will never learn that it has packets > buffered at the AP. > > Looking at the code, the rtl8192cu driver implements neither the set_tim() > callback, nor does it explicitly update beacon data periodically, so it > has no way to learn that it had changed. > > This results in the AP mode being virtually unusable with STAs that do > PS and don't allow for it to be disabled (IoT devices, mobile phones, > etc.). > > I think the easiest fix here would be to implement set_tim() for example > the way rt2x00 driver does: queue a work or schedule a tasklet to update > the beacon data on the device. Are there any plans to fix this? The driver is listed as maintained by Ping-Ke. Thanks, Maciej