Message ID | 1535109321-17126-13-git-send-email-sgruszka@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 688A0920 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 24 Aug 2018 16:42:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58A522CA10 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 24 Aug 2018 16:42:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CFA02CA12; Fri, 24 Aug 2018 16:42:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0A91D2CA10 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 24 Aug 2018 16:42:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lbbwRqZSlwsRSeaxS8rZIHBhfhMb23aN6wT7whzGW24=; b=nBUbjNDEsBKCDBfgKSBFWxXDNy dLRGHx4Twfai/TS4W0Y+VNX6Lpr3O4cUIhncbCu/JIZ9GMeQjCIT0kNZTdRkNsCfe13LqKEiUDc54 eJEJmENP6IWC5fYsmmwE8I+99GV/+XBYeotHvuPuDOzbRHTLZImD08roBf9rnIRdQpS/FuWeIgFoK 9SiymTcrw0XezQ/iDNQyZAtirlkJPF/iabC6aBcUTJF9wZrSR0mAnBkQ6WZc0gQnvl/VU4Ops9znQ bet4bWS3wVDxzAufIogkwNEpd8qi76VzI5Nesl1O/iCFSOMzYg7dFst8Mdw4vHykmkrrx1eIoEXGD usMi9lVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftFAP-0000HB-45 for patchwork-linux-mediatek@patchwork.kernel.org; Fri, 24 Aug 2018 16:42:33 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftEOl-0006zu-38 for linux-mediatek@bombadil.infradead.org; Fri, 24 Aug 2018 15:53:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lwZ/xjE1NCpr+iUeM3xh/slsxC89w9fsJ0SzcPka4bA=; b=ghlq+QzEIXd47nPfrwoBCpIc9 hvUcEExWzOPXdjVy+KErqi9Vl245TXlqS6mAXI9208MYnyPDsGF27m+9JCQ1vLXWV/IQBLvxymQSY 54KgunPZhGhL4eszLLponxEBO1V6A8flxkVbv+/A2p+hzuD6Ltis5Jdwi8+7s3yZK2j8y5Om3UlKx 4xgDGca31rGGDIXB0z7V3dH4sU9NFcWHHli6XSuT+yNh9MCT6jYmwHHr5z25X4dBjNgC1Po6COUBe Ke8+QENXHPxy36LEfQf2VddM6UYAotWkIvI2iOqeASWF7ZUyEbFtOLGfXIsgp+7e8QOdTWOtFg2Xl D1Q0SeQTA==; Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ftA6C-0000VR-C6 for linux-mediatek@lists.infradead.org; Fri, 24 Aug 2018 11:17:54 +0000 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6FDE140200B3; Fri, 24 Aug 2018 11:15:58 +0000 (UTC) Received: from localhost (unknown [10.43.2.180]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2776A1C66C; Fri, 24 Aug 2018 11:15:58 +0000 (UTC) From: Stanislaw Gruszka <sgruszka@redhat.com> To: linux-wireless@vger.kernel.org Subject: [PATCH 12/17] mt76x0: use mt76_wcid_free in mt76x0 Date: Fri, 24 Aug 2018 13:15:16 +0200 Message-Id: <1535109321-17126-13-git-send-email-sgruszka@redhat.com> In-Reply-To: <1535109321-17126-1-git-send-email-sgruszka@redhat.com> References: <1535109321-17126-1-git-send-email-sgruszka@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 24 Aug 2018 11:15:58 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 24 Aug 2018 11:15:58 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'sgruszka@redhat.com' RCPT:'' X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180824_071752_631682_B79C5AB3 X-CRM114-Status: GOOD ( 10.87 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: Stanislaw Gruszka <sgruszka@redhat.com>, Lorenzo Bianconi <lorenzo.bianconi@redhat.com>, linux-mediatek@lists.infradead.org, Felix Fietkau <nbd@nbd.name> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mt76 patches 2018-08-24
|
expand
|
diff --git a/drivers/net/wireless/mediatek/mt76/mt76x0/main.c b/drivers/net/wireless/mediatek/mt76/mt76x0/main.c index 29784f2f3797..79e236d814c1 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x0/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x0/main.c @@ -197,7 +197,7 @@ static int mt76x0_config(struct ieee80211_hw *hw, u32 changed) mutex_lock(&dev->mt76.mutex); rcu_assign_pointer(dev->wcid[idx], NULL); mt76xx_mac_wcid_set_drop(&dev->mt76, idx, true); - dev->wcid_mask[idx / BITS_PER_LONG] &= ~BIT(idx % BITS_PER_LONG); + mt76_wcid_free(dev->wcid_mask, idx); mt76xx_mac_wcid_setup(&dev->mt76, idx, 0, NULL); mt76x0_mac_set_ampdu_factor(dev); mutex_unlock(&dev->mt76.mutex);
Use helper from util instead of custom code. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> --- drivers/net/wireless/mediatek/mt76/mt76x0/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)