Message ID | 20200401110405.80282-32-Jerome.Pouiller@silabs.com |
---|---|
State | Not Applicable |
Delegated to: | David Miller |
Headers | show
Return-Path: <netdev-owner@vger.kernel.org> X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=silabs.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=silabs.onmicrosoft.com header.i=@silabs.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-silabs-onmicrosoft-com header.b=U6GpXhF9; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 48sjzX1dYfz9sSb for <patchwork-incoming-netdev@ozlabs.org>; Wed, 1 Apr 2020 22:05:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732575AbgDALFf (ORCPT <rfc822;patchwork-incoming-netdev@ozlabs.org>); Wed, 1 Apr 2020 07:05:35 -0400 Received: from mail-bn7nam10on2084.outbound.protection.outlook.com ([40.107.92.84]:6083 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732539AbgDALFc (ORCPT <rfc822;netdev@vger.kernel.org>); Wed, 1 Apr 2020 07:05:32 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c+3iJzJaMuf6XoOiJqOndz+RMf0461SDJA9Qi81LMPmqtehqoE1uFDSGMYBZ3LDLzp5R040woI2PIAFttj+93IzTFt5UlsaGcyKqtnGS56CFnmA0ZkDb+/6B1RvA4ALOqwVkpQ0rFn+4Ime+3WKLNeV1FVJvV5/jet+PifRDIBW1Ba9LK4WUOJ0JUcxGI6hu9I7JWhmYgkkUZLILyOqR6PQG7SlqzdxucAgPfa5P3TZ/jjpMAqecr/mNmVW/VvtkQlUkpZI/m/xM46IICBTQx4b8xbOXFA03PaUhR3RiYKY2FYNIWPpg/WGlU5NUjOIigudcuIw99Mp3//9ertNvsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X1jqhwnOCvIDXeCRXQIhQJr9ISs6aDNmUCuvc/MDHFs=; b=drXvrgkHHQ7i4mp8ujsBA3Xm0ydDwVZslkj66oU2k1iyhjSChdwXBQ+wYO/9g3UsOfxTgrGft6zqpjx/X9iEV/8PVUVCepQH6pwTW/aDsO9oVWkQ2iv/BK0X4USCSfIqO5WfToEWd16JPadZMdwM8pUhreuHU6FhQ3rIualYk83qum0rX08n36ZTqijvv5Z5KpVeTSGLvUmV0iu3Ydb9qLm43wnsLeNHevgcstsccEExRvPYoWMvWU6BDQJd6zXxOeNRNfTuRmIfnYtvBwYNgUbiOhU4vDFOWOWhm8PakvWeFWvMbqeYof7aDKKV633SfThlVW6CMQ8mpjPZyTXBHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X1jqhwnOCvIDXeCRXQIhQJr9ISs6aDNmUCuvc/MDHFs=; b=U6GpXhF9WwAny3tBT8oH011KVBtUwsieLIQb5lLY4TboY+YHrWFdIITb6tQCVzOtzzod2UNnGGHfbzNikQvQ5w9Gh+PY8pfcRXue+LCiIx70/7WvTGvjB3r2JZRmKLw848duTe8t/6yrMpWBsH3DHF7XUScE15xr9bFCk6g4RJ4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerome.Pouiller@silabs.com; Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB4285.namprd11.prod.outlook.com (2603:10b6:208:191::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Wed, 1 Apr 2020 11:05:25 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::ade4:5702:1c8b:a2b3]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::ade4:5702:1c8b:a2b3%7]) with mapi id 15.20.2856.019; Wed, 1 Apr 2020 11:05:25 +0000 From: Jerome Pouiller <Jerome.Pouiller@silabs.com> To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Kalle Valo <kvalo@codeaurora.org>, "David S . Miller" <davem@davemloft.net>, =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= <jerome.pouiller@silabs.com> Subject: [PATCH 31/32] staging: wfx: fix case where AP stop with CAB traffic pending Date: Wed, 1 Apr 2020 13:04:04 +0200 Message-Id: <20200401110405.80282-32-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200401110405.80282-1-Jerome.Pouiller@silabs.com> References: <20200401110405.80282-1-Jerome.Pouiller@silabs.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-ClientProxiedBy: SN4PR0501CA0156.namprd05.prod.outlook.com (2603:10b6:803:2c::34) To MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from pc-42.silabs.com (2a01:e35:2435:66a0:1265:30ff:fefd:6e7f) by SN4PR0501CA0156.namprd05.prod.outlook.com (2603:10b6:803:2c::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2878.9 via Frontend Transport; Wed, 1 Apr 2020 11:05:23 +0000 X-Mailer: git-send-email 2.25.1 X-Originating-IP: [2a01:e35:2435:66a0:1265:30ff:fefd:6e7f] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f642917a-be3c-4d38-ff9c-08d7d62c9412 X-MS-TrafficTypeDiagnostic: MN2PR11MB4285: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <MN2PR11MB4285457793A3290031E0861593C90@MN2PR11MB4285.namprd11.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(136003)(366004)(346002)(376002)(39850400004)(396003)(7696005)(8676002)(1076003)(16526019)(186003)(6666004)(5660300002)(86362001)(4326008)(66574012)(52116002)(478600001)(66946007)(66476007)(54906003)(36756003)(8936002)(316002)(81156014)(6486002)(2906002)(66556008)(107886003)(81166006)(2616005); DIR:OUT; SFP:1101; Received-SPF: None (protection.outlook.com: silabs.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sANo9FWGYNxA1kQVyxYhKx0Ov885UhR3vPmFNEGlOy9V2x7yp9BPp7up2/XLhNYHhHH41wW8S/SCsDuvxcMfDvdRL9zR0G+KxEo0eowNPHFMBTa7CIfRgzCiZDDlcqTcvbeq5pSiZskbglRDbQjlFCKzkSx3LMELuZ2URsioss0CUSWl9aNAa3LuTKspUJe2K48bjapO7m5GMoYc9xZ1P+nwLvoerLmSYZGmMq2u9q61rmyny0f3GI0MOlN+KqT211CECBl4RNZWYXkXsAAr1OvSQIspqASwE5YSjtsjvdVPOOlgB7ehjLGxYT1GgAbUHiGfnMWnVI0TobnPApdHYvkR5SIiMKzI+FFjWPYOCbhKyOgeHTK3FtNPN2SmRWlImnUlpKrm8zeEiwEyePXoKmT8YbPCWJ8zA88C/g2Io9OF8pi9DkWEeElkXJHUy5hQ X-MS-Exchange-AntiSpam-MessageData: KB9ORJdqZFv4GLWzlwNPLxG4nb6ZH03Esv99EeEOH5/MawncESlH390QTP0tb8LWIV3GyeNZhkw3R6D7iy+qxnxM4ofuM+BpMV3kV21XeVqInmVBKERor9rmIaf+u/j92CNFdMNbwZipwDmKrumYb+t5xjmg1XWniTmDowk8psDMog+yVC3k+/oCSMCtGFixSyM9NSJvTBsaUrN85ONirQ== X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: f642917a-be3c-4d38-ff9c-08d7d62c9412 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Apr 2020 11:05:24.9411 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jMhziX8BpOw0/fXVzQLxZ1jHOGmEmlJ7H8ydEdWrLFOzHptIWuOlqTIXNkDp8RrczvpednKHaLP6gHmdCkJ3rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4285 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
staging: wfx: rework the Tx queue
|
expand
|
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index b1ee02d2f515..2e8d3f571c3e 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -686,6 +686,19 @@ static void wfx_join_finalize(struct wfx_vif *wvif, } } +void wfx_enable_beacon(struct wfx_vif *wvif, bool enable) +{ + // Driver has Content After DTIM Beacon in queue. Driver is waiting for + // a signal from the firmware. Since we are going to stop to send + // beacons, this signal will never happens. See also + // wfx_suspend_resume_mc() + if (!enable && wfx_tx_queues_has_cab(wvif)) { + wvif->after_dtim_tx_allowed = true; + wfx_bh_request_tx(wvif->wdev); + } + hif_beacon_transmit(wvif, enable); +} + void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ieee80211_bss_conf *info, @@ -724,7 +737,7 @@ void wfx_bss_info_changed(struct ieee80211_hw *hw, if (changed & BSS_CHANGED_BEACON_ENABLED && wvif->state != WFX_STATE_IBSS) - hif_beacon_transmit(wvif, info->enable_beacon); + wfx_enable_beacon(wvif, info->enable_beacon); if (changed & BSS_CHANGED_BEACON_INFO) hif_set_beacon_wakeup_period(wvif, info->dtim_period,