Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp376958yba; Fri, 3 May 2019 03:39:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwGEP8ea5k2YGrFtd2VBuhgfLPN49AKGvsztOHzEEOj3jkKQxvSWDURPdiF/OPScQ3h6FGt X-Received: by 2002:a62:e117:: with SMTP id q23mr9885280pfh.60.1556879976540; Fri, 03 May 2019 03:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556879976; cv=none; d=google.com; s=arc-20160816; b=lLEH2tuug/aB3YnU/LG+/H2+/DG5s6ZwPBypAso/TcgrdDZ1jl+3JFsqALt5F+dg3T yumPJbmYFtR5J0f9QR+kyUSu+RRcT5azGUCNCmwjvd31odomJ3AoWUtAPG9waE6TRxij 12mUTiEd4t1R8zcYFPE/dMdYNSpOOP4TQKbw9n6N5MSULQnljFHzXZpGBC7GUgxkhXj9 PRXVFioAoT2EsUoDLilAdptadaSVmlYsOWaH4EXXqqmZbrdyb8BkZoNziCZGCSxYPiGh pk0QtluiaTxuVH7r9uKOz12PNsiTJnDLzQ3aKkFaedvpaIAeZW2v8WnAwXRy3BHJ0orX 7Ebw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:authenticated-by; bh=JBBcpq0bO5KpISYRokVa6pf9tdXN6HkXfRTUr1EXSYI=; b=Xg+J8nsPrbvj8+Vsl88WQiG1/+EWf4lp9lX02aRsrVjb9qNYUWRB9feOF+udAMfD0m 7Np4L/itO1+6fNwSppMieGBt0u3PgJwG7VhwfGH88h3a7Lp4QeWcIVmFmIKEovfc2sIt TQU/ths+h53EPVPXsomOlk0Au7WRNFwx3gIrjrcKpjuSt16xK9F1Ey1AvdVPzC5yjHDq 0l3JQ4RVTHur2FiJTd1KtVH+ykNamv7+XLteevIOsm6JOYdjTxMZzhcy3lFOpj8io/Dy 3zfilrVQgmpAJnEqq/EP0tdMrEZQdhVI3w4H0wuaRsJ8TOoOvrTF3cR369FIHMmb0osV iVPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si1811447pgh.531.2019.05.03.03.39.21; Fri, 03 May 2019 03:39:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfECKcV (ORCPT + 99 others); Fri, 3 May 2019 06:32:21 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:48819 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727323AbfECKcV (ORCPT ); Fri, 3 May 2019 06:32:21 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x43AWE89012112, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtitcasv01.realtek.com.tw[172.21.6.18]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x43AWE89012112 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NOT); Fri, 3 May 2019 18:32:14 +0800 Received: from localhost.localdomain (172.21.68.126) by RTITCASV01.realtek.com.tw (172.21.6.18) with Microsoft SMTP Server id 14.3.408.0; Fri, 3 May 2019 18:32:13 +0800 From: To: CC: Subject: [PATCH 2/6] rtw88: pci: use ieee80211_ac_numbers instead of 0-3 Date: Fri, 3 May 2019 18:31:38 +0800 Message-ID: <1556879502-16211-3-git-send-email-yhchuang@realtek.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556879502-16211-1-git-send-email-yhchuang@realtek.com> References: <1556879502-16211-1-git-send-email-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.126] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Yan-Hsuan Chuang AC numbers are defined as enum in mac80211, use them instead of bare 0-3 indexing. Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/pci.c b/drivers/net/wireless/realtek/rtw88/pci.c index cfe05ba..87bfcb3 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.c +++ b/drivers/net/wireless/realtek/rtw88/pci.c @@ -487,10 +487,10 @@ static void rtw_pci_stop(struct rtw_dev *rtwdev) } static u8 ac_to_hwq[] = { - [0] = RTW_TX_QUEUE_VO, - [1] = RTW_TX_QUEUE_VI, - [2] = RTW_TX_QUEUE_BE, - [3] = RTW_TX_QUEUE_BK, + [IEEE80211_AC_VO] = RTW_TX_QUEUE_VO, + [IEEE80211_AC_VI] = RTW_TX_QUEUE_VI, + [IEEE80211_AC_BE] = RTW_TX_QUEUE_BE, + [IEEE80211_AC_BK] = RTW_TX_QUEUE_BK, }; static u8 rtw_hw_queue_mapping(struct sk_buff *skb) -- 2.7.4