Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp439982yba; Fri, 3 May 2019 04:55:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWmyGOH38fh+mVCuOwuyZb2b9ocS0E7xMrTuDA0veWVS7KDBEzA6sZH7Wh+NrD54z2QWi5 X-Received: by 2002:a63:7d0a:: with SMTP id y10mr9631581pgc.292.1556884531192; Fri, 03 May 2019 04:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556884531; cv=none; d=google.com; s=arc-20160816; b=VdCQ2DWWnQwBhNOgvpvljGRiZtkKiru+s1Qc72uq0Zupz7txBl4DjHdTW5jVdPK2XE 0E8f6EpMqXkl0XdCEty4kxLXdBXd3/Xct9lZ2I8MHTRemcXtTsckv+nJK8A7uAoPlGAP 7nXYD+qtxLh6To12RxyebELvrZEAgYYa78k2tHaLF+tOZ0pp3WGdruTDQGWDjLa2naV7 lfZsa/fBhh6tSQgc99tGbVB/75R5Hj3ImEnHyXD2So3b3YCGyg3W1+qHV/swvviyOUVA 1D83047NFhYar91LW0WCVc194ZTucN1OTv9jjN27BHiHC/wv/F0pMtup54tu7noUXelg W5KQ== 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=0OwhS2ZdeHO83e2aoi5p/INqV+ekm6j9ftbn6HWUqbtSGsO/mH83/RQi6QqnsXAsPj c5AYar064NQCTSXCULM8NF480XMykp5ho+LUu2esU+wj3FoN3mjM0gqeDo8JQNUDgab9 bd2vrCaAVEEn0E/rnd6RIOywJfedRwhzqW7HCn8W5CDKSGZRqAPpj+N4fgy1aGukqYBZ VsGfddJiZ/klZOZnhzB9g8KmMS6OxjeumuIhDP6SNMuDx0DCDTswvC8h1k4EAdbkjJ45 MCDKp6sfcJAJ77U/UkC8OsBrZFjhO8dIwQXnKSo0nXTOhELRsjXLn8YN+pYGLzHBCSAz kVfg== 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 q81si1950049pfa.207.2019.05.03.04.55.16; Fri, 03 May 2019 04:55:31 -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 S1727722AbfECLxu (ORCPT + 99 others); Fri, 3 May 2019 07:53:50 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:58247 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727631AbfECLxp (ORCPT ); Fri, 3 May 2019 07:53:45 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x43Bre3g000720, 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 x43Bre3g000720 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NOT); Fri, 3 May 2019 19:53:40 +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 19:53:40 +0800 From: To: CC: Subject: [PATCH v2 2/5] rtw88: pci: use ieee80211_ac_numbers instead of 0-3 Date: Fri, 3 May 2019 19:53:32 +0800 Message-ID: <1556884415-23474-3-git-send-email-yhchuang@realtek.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556884415-23474-1-git-send-email-yhchuang@realtek.com> References: <1556884415-23474-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