Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4266573pxf; Tue, 6 Apr 2021 11:56:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQ4kaiHdFDosP9WwPXG5UsR1dM9XjXL+Sgy+BCmSN28J8FQSyN7Lpa2nAwJddkCakJI0dq X-Received: by 2002:a02:ccd9:: with SMTP id k25mr30067834jaq.43.1617735367192; Tue, 06 Apr 2021 11:56:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617735367; cv=none; d=google.com; s=arc-20160816; b=JBeh9qbV5XOwq0wg69ozkmi8PPUtDh+SyTo3dgklEXG7fk5K7X9Hpisd/TjTVf1Uz3 MhkfokjH1TpCPkaKyVNVp0lSli6JKA2E4TMB8Dx8QNgI2LnU4P6pKygrMqPJccMTb7hF +3vOfc9wonHWc2aqO6i4rpIRRuic0v01kSCMeBzaMXBB+zWGQzJFJt+INQZ2iyipNPtZ bVh5fS9zMiP5RzIBQmIKIYXmqPFOc3voAzzM2atS1WnPfr4nqa/mCFXlxLOqwQXnVSRt uuOl0PcZF3yDjzza4dPepvdKLAgeYxQVpuwWQYN1UEZO45vfFHP+3so/sXbTmLUiE6B7 ygHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=AxkI4O0vgqQfFbvB7SnO+C+rk9AJjNc9XgX9InDdib0=; b=xYC6rfEk6M1v31pUP+IhfNMlltzow0f6elL3e4OOCrtB4wi/2XejRhA/Xp9r6r+k6c rAix/Mt5E6CKKTX8HiKgZhgF/+vcJaujxVv0hHX/LdgU9agv7AsoB+kWI1PDwbXXqvKn oTdGV0FXcp5jJjhunRBDxHzYC+6540Q7i+rl8NxIrWFBNtH/CwEuNLORFowKZCiH02BN kLDd/E0obRTZ3hzx+KAb/rW1sdAgoKkgaotGo1UeAmnkpGSIeV7GkAO7i5+kz14F/1bv HrQeAP6YpBUtLcJDRvXsCBt4z/ZjDrsN1U1dGzFqerpgvvqUzcC4rSD02i6Sw0NoisdY h8Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DF3D+CLx; 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 n5si17766004iob.85.2021.04.06.11.55.47; Tue, 06 Apr 2021 11:56:07 -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; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=DF3D+CLx; 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 S241262AbhDFKCt (ORCPT + 99 others); Tue, 6 Apr 2021 06:02:49 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:60275 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232372AbhDFKCs (ORCPT ); Tue, 6 Apr 2021 06:02:48 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1617703361; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=AxkI4O0vgqQfFbvB7SnO+C+rk9AJjNc9XgX9InDdib0=; b=DF3D+CLxqNx6ZHwQB5FxvwOIIHifNF4h0A7uI0Sbzyw8cbI+VdbgqHc1VgMIRLR8DOjiUEDs ZDSvN4/J61qGyEp5/Z/JKW1W/KNCZTkq/oPBx+o/rxLcY+b6uKjpuckRzhrB60FqkYI+6BMv yFa4eFh8c36vON86DLhckZeW4hE= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-west-2.postgun.com with SMTP id 606c31478807bcde1d1b3a68 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 06 Apr 2021 10:00:39 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 19C47C43462; Tue, 6 Apr 2021 10:00:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id ED0D3C43461; Tue, 6 Apr 2021 10:00:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org ED0D3C43461 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: "Maciej S. Szmigiero" Cc: Ping-Ke Shih , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Larry Finger Subject: Re: rtlwifi/rtl8192cu AP mode broken with PS STA References: <846f6166-c570-01fc-6bbc-3e3b44e51327@maciej.szmigiero.name> Date: Tue, 06 Apr 2021 13:00:33 +0300 In-Reply-To: <846f6166-c570-01fc-6bbc-3e3b44e51327@maciej.szmigiero.name> (Maciej S. Szmigiero's message of "Sun, 4 Apr 2021 20:06:06 +0200") Message-ID: <87r1jnohq6.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org "Maciej S. Szmigiero" writes: > 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. Yeah, power save is hard and I'm not surprised that there are drivers with broken power save mode support. If there's no fix available we should stop supporting AP mode in the driver. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches