From mboxrd@z Thu Jan 1 00:00:00 1970 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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 34CE1C43460 for ; Sun, 4 Apr 2021 18:06:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 02A62611C9 for ; Sun, 4 Apr 2021 18:06:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231351AbhDDSGg (ORCPT ); Sun, 4 Apr 2021 14:06:36 -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: netdev@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