Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp630838rwr; Wed, 26 Apr 2023 04:25:07 -0700 (PDT) X-Google-Smtp-Source: AKy350aEU7Ciiln6Rc2MeKGF3x1hhjWgoPG+4gMCQ3f8iCrGKRpcj09VKJlSL/HoEHDItL9Oz3I1 X-Received: by 2002:a17:90a:8005:b0:247:19c5:aa3d with SMTP id b5-20020a17090a800500b0024719c5aa3dmr20195274pjn.36.1682508307231; Wed, 26 Apr 2023 04:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682508307; cv=none; d=google.com; s=arc-20160816; b=b6G+dI+WRl2FI4/+Z14fHCge3JBnhiYJ36H+ZinRJPlY8rZdfmaDngYzNnuq0L1LRE bnne3M/tKf/gc75JwFUWuEnrPKhxMff2DwOKCthOesQ72bVZfp7LXY/qE+YX3MwIxC2X kKtwP/9EUkMSa/lt0RE13yUGFQ5QMIulyNuxD1USM0HvBV2jEXE+YHKJFyC4BdLJlbPh IABzwemtvby45xfGVfAhbEVDsXB/1f8FwadUAEFaeDtgfgALthL+VokgueGHNDESy5bM l6U5Oug0/cq0ffEEkhn8llIq3Vj69PmnYEv6mpTTmNN6cK0HapbWofJg3PEY6LvM0/t2 4gWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=qp3/kN2cqz2L75oT3NOK9ZGPPLkL+VEycubzlCW14Z8=; b=TbwfnnRaez0I3WO/iYLR0PzUuGQjalRWKMqk2uuhgMEnPsajGuZLGI85W+OzvdiigI yIb2J5NVwRzqe6Bh23EtT+M9PWM53qil9XNRdK66QJtxg6N18P6bpxHZU9tlV613Y6Qx TIdt1oLxQiHuXxfN10v5CtbkeOORX8xzAHxTDWiocwPFcuNgG+o2W4sp10Dm29PnJDGi n73i/mreQpv5JZfWPt5ynxtcbHGrPNZMN++ddeXiYUBIaBqLHoCWuCOnZ2v/7SZQg9tU 8KabR7001FWcwVRhW3HAXH4pofIdztSY6ay2A5UbKHCJTpjKmTNiBPBfgYIIJQVDyVRz cZVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cJCVLC4I; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u2-20020a17090a410200b0023adb22068csi15885904pjf.81.2023.04.26.04.24.54; Wed, 26 Apr 2023 04:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=cJCVLC4I; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240613AbjDZLFb (ORCPT + 62 others); Wed, 26 Apr 2023 07:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbjDZLFa (ORCPT ); Wed, 26 Apr 2023 07:05:30 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EDEA40F9 for ; Wed, 26 Apr 2023 04:05:24 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3f19b9d5358so46872685e9.1 for ; Wed, 26 Apr 2023 04:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682507123; x=1685099123; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=qp3/kN2cqz2L75oT3NOK9ZGPPLkL+VEycubzlCW14Z8=; b=cJCVLC4IMETLNJmoRAU8GCKcRyES8O2hgbWAta9v5jxyHWXTdJjLdHHXwRXgSCdDn8 rKD4g+EsRiSrJ5QBEcW4Vqli/Vmsm4Xip+lGrgIgS46iHTODhEOof7VxBqTwfoMa2yAu ieuM5gujzuoYfEYc7Yo296M+RZ6sBBWceAttaTASAO6zLNL43bj5l0ER3Frj/X6LBgeh u5uVqk6+zmpmKwQZ7s0ziFig68ErIbTEkQctPjLekOmrr/vCpdQyhDmroVBp70W/0VRA /dZpc9HIMp+6Vg3TDOON0pNG7/7KyFshdBeJ2GFy/5gfC2F78eQ6yZIAUXMaq1ouGZFv tueA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682507123; x=1685099123; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qp3/kN2cqz2L75oT3NOK9ZGPPLkL+VEycubzlCW14Z8=; b=P6jehxRoqRHSPTLDiUabeSrQk0ef14glZE1zGdmM3Cgs6JXMr7yVHZgBzR9KmgxJCb aIRMlOrx6wzgtJDp7LKrWqbdsTMfhd+ctWcVED+rC9NQqeCEKuc1valuemQsRwwJ1X9t AtFac5AoIs6PQXYzoqJMFDgehMsLAQNt/IRTSWQrX66F6v8pmR9k8+mOTekYX3ScFa+x UQbYbPfHYM2VSVyOZtXTsWD1F6UXWyd4zBVfNZJ3o3nCBCjVDAWLHaFMYs/ibQMviZk6 p7nXoRUn26r0FwxDSJkdzpRX1Y85oyXFPSh1uTS4Kuxnffl+2jDO3KYwc5rEZosqzJpL 6itQ== X-Gm-Message-State: AAQBX9efewvN90xBGUnTCa9QkDCa03SEQnXcPa1M1Gd0uJCvw+yUt8Ob HmkiOdqEQOTREHWahfezcfM= X-Received: by 2002:a1c:4c09:0:b0:3f0:49b5:f0ce with SMTP id z9-20020a1c4c09000000b003f049b5f0cemr12985548wmf.12.1682507122875; Wed, 26 Apr 2023 04:05:22 -0700 (PDT) Received: from [192.168.1.50] ([81.196.40.55]) by smtp.gmail.com with ESMTPSA id o10-20020a05600c510a00b003ee443bf0c7sm21152637wms.16.2023.04.26.04.05.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Apr 2023 04:05:22 -0700 (PDT) Message-ID: <54497806-ae10-e4dd-aa66-cda0505c0267@gmail.com> Date: Wed, 26 Apr 2023 14:05:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH] wifi: rtl8xxxu: Support new chip RTL8192FU To: Ping-Ke Shih , "linux-wireless@vger.kernel.org" Cc: Jes Sorensen References: <90102fa5-5065-9598-d21f-3624629a0cb5@gmail.com> <9430983b196d42ffa7f83859004ef856@realtek.com> Content-Language: en-US From: Bitterblue Smith In-Reply-To: <9430983b196d42ffa7f83859004ef856@realtek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 26/04/2023 09:44, Ping-Ke Shih wrote: > > >> -----Original Message----- >> From: Bitterblue Smith >> Sent: Wednesday, April 26, 2023 1:28 AM >> To: linux-wireless@vger.kernel.org >> Cc: Jes Sorensen ; Ping-Ke Shih >> Subject: [PATCH] wifi: rtl8xxxu: Support new chip RTL8192FU >> >> This is a newer chip, similar to the RTL8710BU in that it uses the same >> PHY status structs. >> >> Features: 2.4 GHz, b/g/n mode, 2T2R, 300 Mbps. >> >> It can allegedly have Bluetooth, but that's not implemented here. >> >> This chip can have many RFE (RF front end) types, of which type 5 is >> the only one tested. Many of the other types need different >> initialisation tables. They can be added if someone wants them. >> >> The vendor driver v5.8.6.2_35538.20191028_COEX20190910-0d02 from >> https://github.com/BrightX/rtl8192fu was used as reference. >> >> Signed-off-by: Bitterblue Smith >> --- >> drivers/net/wireless/realtek/rtl8xxxu/Kconfig | 3 +- > > It seems like you forget to add rtl8xxxu_8192f.o to Makefile. > Oops, yes, I forgot. >> .../net/wireless/realtek/rtl8xxxu/rtl8xxxu.h | 47 + >> .../realtek/rtl8xxxu/rtl8xxxu_8188f.c | 3 +- >> .../realtek/rtl8xxxu/rtl8xxxu_8192f.c | 2081 +++++++++++++++++ >> .../realtek/rtl8xxxu/rtl8xxxu_8710b.c | 1 + >> .../realtek/rtl8xxxu/rtl8xxxu_8723b.c | 1 + >> .../wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 104 +- >> .../wireless/realtek/rtl8xxxu/rtl8xxxu_regs.h | 15 + >> 8 files changed, 2225 insertions(+), 30 deletions(-) >> create mode 100644 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c >> > > smatch reports two warnings that can be fixed by giving initial values: > > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c:577 rtl8192fu_config_kfree() error: uninitialized symbol 'channel_idx'. > drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192f.c:2027 rtl8192fu_led_brightness_set() error: uninitialized symbol 'ledcfg'. > Fixed, thanks. > > I have not reviewed this patch entirely, and will continue in a few days. > Just let you know these problems ahead. > > Ping-Ke >