Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1764162ybh; Thu, 16 Jul 2020 23:50:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfo4b0sSqqm/0B9KIwezVauIkDaEPUviOjW5DofnRIMLj4Hs2ysBWAVCGOCQnMT04P7Dc8 X-Received: by 2002:a17:906:3fc7:: with SMTP id k7mr7647468ejj.332.1594968647064; Thu, 16 Jul 2020 23:50:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594968647; cv=none; d=google.com; s=arc-20160816; b=A7lzi1vDwGMrQVLiWJP79hsoxlfOfU+727N1uPMotOewG7knuNjlI7bnk90wA2zAZ3 nujNwlKVnJorty8aGDqyMGYaOzq/8XBuzBKgVTsPyXOW3oUdKRXbVINAQ4e6rlFm9+7F 5IGQWtH3VkSalr70hFgS+V4ZmQqvRyGiXzfPaB65F0TC5KOA50rYUaaiwhgr1Ffm8aZj ZRn7ptQz0qrDWk2UlSMPwpPY0jXNkbiuWhUmHk7ueLbIHmKUrMPRLNqnmNyxBcDX1QBy GfhghiqGSNaBqSeDAcYBMq/J6xdI9+sgSgo9qoTLehweFHGDpefN0K6rV8Sdmgf7FAQI ReZQ== 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=r7oX6hAnHVItfIfBEOADPpVRwHYyj8c7RtzDLU2vffY=; b=hg3hd6C05lPeqNy3mxKDjH96PYoCRJnpE4pvrrCcnd+crVJE4MV6oV0uwliPtRI4uK ZNeG1C0Po+LFsl/hsIbhCjPtxaBXqTgQXl4srTJLiUOefwJ95ECCYxkd+mMEjfJzAIU4 b6BzcKrkKfYvVZc0beBUq623qXCPl4Qpqxvr4lawahhVu5NxfwV02578ab9A2Nhhqedk kIo/gXJumdKKedorgwo7LmO7GYsJreubIps6fdDR8F3VO6Br2fRO2ggfhrMR6/ybcoxu +WKKr1cz4rqU3yCC4L8vD/a2jzI0GMUiRBfKzXwuN60ydgzOnqYbOR2Gsa1jxXG1Bk1s GrxA== ARC-Authentication-Results: i=1; mx.google.com; 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 bu19si4615999edb.468.2020.07.16.23.50.12; Thu, 16 Jul 2020 23:50:46 -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; 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 S1726932AbgGQGuG (ORCPT + 99 others); Fri, 17 Jul 2020 02:50:06 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:55018 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726665AbgGQGuF (ORCPT ); Fri, 17 Jul 2020 02:50:05 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.69 with qID 06H6o0Mt9028960, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexmb06.realtek.com.tw[172.21.6.99]) by rtits2.realtek.com.tw (8.15.2/2.66/5.86) with ESMTPS id 06H6o0Mt9028960 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 17 Jul 2020 14:50:00 +0800 Received: from RTEXMB04.realtek.com.tw (172.21.6.97) by RTEXMB06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Jul 2020 14:49:59 +0800 Received: from localhost.localdomain (172.21.68.128) by RTEXMB04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Fri, 17 Jul 2020 14:49:59 +0800 From: To: CC: Subject: [PATCH 1/7] rtw88: fix LDPC field for RA info Date: Fri, 17 Jul 2020 14:49:31 +0800 Message-ID: <20200717064937.27966-2-yhchuang@realtek.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717064937.27966-1-yhchuang@realtek.com> References: <20200717064937.27966-1-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.21.68.128] X-ClientProxiedBy: RTEXMB02.realtek.com.tw (172.21.6.95) To RTEXMB04.realtek.com.tw (172.21.6.97) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Tsang-Shian Lin Convert the type of LDPC field to boolen because LDPC field of RA info H2C command to firmware is only one bit. Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") Signed-off-by: Tsang-Shian Lin Signed-off-by: Yan-Hsuan Chuang --- drivers/net/wireless/realtek/rtw88/fw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/fw.c b/drivers/net/wireless/realtek/rtw88/fw.c index 6478fd7a78f6..13e79482f6d5 100644 --- a/drivers/net/wireless/realtek/rtw88/fw.c +++ b/drivers/net/wireless/realtek/rtw88/fw.c @@ -456,7 +456,7 @@ void rtw_fw_send_ra_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si) SET_RA_INFO_INIT_RA_LVL(h2c_pkt, si->init_ra_lv); SET_RA_INFO_SGI_EN(h2c_pkt, si->sgi_enable); SET_RA_INFO_BW_MODE(h2c_pkt, si->bw_mode); - SET_RA_INFO_LDPC(h2c_pkt, si->ldpc_en); + SET_RA_INFO_LDPC(h2c_pkt, !!si->ldpc_en); SET_RA_INFO_NO_UPDATE(h2c_pkt, no_update); SET_RA_INFO_VHT_EN(h2c_pkt, si->vht_enable); SET_RA_INFO_DIS_PT(h2c_pkt, disable_pt); -- 2.17.1