Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1201697lqo; Fri, 17 May 2024 14:13:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcJjB6NFv9nSPDUuPKREH0m2CpsyuCd7MpV0OGXiTAxpVHe7sQr2Kw4TSTtKRhK1UEGoE75vHaCCc95j4yRY64eIrd9Y9lFpVqJdegpQ== X-Google-Smtp-Source: AGHT+IFWK4ZiiI2xi/3YgSGfM+P7qeHyCujYFXwVv6NbJC9JiFaVWFg9yd5kW16MJTJwLz0qIA4x X-Received: by 2002:a50:99c9:0:b0:575:95b:5109 with SMTP id 4fb4d7f45d1cf-5752b44a326mr177080a12.6.1715980412273; Fri, 17 May 2024 14:13:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715980412; cv=pass; d=google.com; s=arc-20160816; b=JyJeag0WYzugOdUNXmp04RIYVlpaO0uGAfSuDwC771ypdP8yuckGsGWC8l9tNQ4SzW yqpvuTPt5X66AfEnXgJS4IJdma8wGHnVxcvgboq7fnHOdH/+50s7Q1zpmF2n1oXSnWON af7izR3rn4pcP65DFgN+HaXimvb/A70czs94hKqo50urjPOVRir32aPVYgu2ZpOOYM3U 2/g6bNHavG0xXCbQhB+Xvlw4UkSMbLx0CbNHvJE72XT23c2YDBqFeebTiaxmGotGyh7f rhyRA27iIMYUHB5etJsuXL+PfJswUxbZQK0zRM07AjFvm5kKk2d2+cnblB0CmBZ9xcGb D/YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id:dkim-signature; bh=sSQM7yHvKoTTPzrfnVjgG0A/cuOCRDJx77UhnfWZKrs=; fh=GVnelbfE/v+aJ1A3hiU26TlnzEfbdVxjje3TgjMIPHs=; b=rEquyXC0k3ropHtUOM3JYYWLun/Ke0ZSYiLPDaaeEXl+mh4MMiHEqVWPENWdQu0jQT mwJNefZdN4acmFD+SRBeZOLiSRsZ7MvPJ8DJowmEXeL3wctAEP8V4PgiJyPtbLS5zjIi Z79DwvV1QHRMW4kik93/lIC/X0FKQAHfNPW+8uC9Q8p51PzYtkXj46kYE0g8bOTRCXxr ulQOU3uKgNdaZR71zlNR5z1chGZUPSLK2nr0EFG35gEkYNq4Lwf/yvR+AbXG+Q3tfvpz iYES/IdyDikAZinqOdwvvTKLXqB5IRzZOOBwwCJhDZYIeycp4B6F70a6YROVzqm5+N0R Zh1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lqVCnvHz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-7801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3275b8si10390334a12.405.2024.05.17.14.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 14:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lqVCnvHz; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-wireless+bounces-7801-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7801-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id D705A1F22928 for ; Fri, 17 May 2024 21:13:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 45E7238DE0; Fri, 17 May 2024 21:13:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lqVCnvHz" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79CA93C489 for ; Fri, 17 May 2024 21:13:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715980408; cv=none; b=WMOU5pyLabITi4JlCV4baiEBEz6W1oSk26CQaSABSgLdcFhJxrYV8YkhTvME4xZle6NJgfVfJ0QE7qP9VEnnGpyf45Yvyrhk9FMMrISMAoe8g/tc8Ie24luO3AxqqNAdn80XcqwlzKh+Q70reQxbd9Qd8jM03EhzvIzDPL3oNJs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715980408; c=relaxed/simple; bh=npBOyCyuMmPfiDK3L+Pcd830VaJH8VfWFTiHcW6ZcMw=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:Content-Type; b=FumefLOR4VMv2u66gHWT7A5hzb4uR47GpI+2GH22UI6Etr4lCVeIFyHxbC6U9Nge7vwsMEhd7uz6HPxtii6T4EkRPlRLtaZN0K9v0TexSDvZagllZ5UFWDoMFuzlVKoOhGGGQirVcUTLC+/tYErUzJJcP77KOOgYBtKm6tiFBu8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lqVCnvHz; arc=none smtp.client-ip=209.85.221.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-34e0d8b737eso316555f8f.1 for ; Fri, 17 May 2024 14:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715980405; x=1716585205; darn=vger.kernel.org; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=sSQM7yHvKoTTPzrfnVjgG0A/cuOCRDJx77UhnfWZKrs=; b=lqVCnvHzTTtmseFrO+6Ex449lGpzwXaOP9fXch27g5tewuOVr+xFQomi8XylkGlS4s 511sBgtqezkz2zJE0AdOXR4YaR87vg1WA6s2UFta8XB9qwlg9wMVkbabQWR8HAzfM6gn aUwf5KGnflD5pzjOnCGwi2lu8hJ9nlpr3w1bZxOog+PZDF/3QfhtiY3xEc8MQDCrWC9E LKR/13E6kIUpPYpB4THADQA6BBOHJi+s7DIt8O1sU1ptknVSsWEhN3oBptd24kXnMb1o b0r2KuF/1nBgJ9uw5U89Kn0MTOC6MdyAdAK6JItSo6FqcU8x8PYicFQSbTXqcpRYDARI SFOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715980405; x=1716585205; h=content-transfer-encoding:content-language:cc:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sSQM7yHvKoTTPzrfnVjgG0A/cuOCRDJx77UhnfWZKrs=; b=OCwrFwXhjsCj2AIiJRY2JlQoN5la03w54pxj9Y9MOrQNrQWO4hYYd36EsmNwdCNk85 3KmjJgZhUZFDATW0oA9XIRWGNGFzMlUEpR6Hog7cBnO+5YCFt5aLEoPPqspVioLvOE74 omaS59vKoVPniMYuhpelqMDtwlBSQhSUMTuOK4JmFSneapo9nnzpoS13dQia9bztU/yg UtAMKLilM+uM3yOEGUSWfyvwWfqjw/LO+rfRt45RVcu4jSAnI8kx9BCatfjrrUl+Ipki 5kDSbsYne89Jz14QZlGSI7pUOtmQRjuElvnhuX4MZA7VvXJO7/ZW9LWSgkU+PhHaTHSZ MnsA== X-Gm-Message-State: AOJu0YwmhHGUaiSr0ykd7OdWX4QR2AqjT4blNdlAn3V67Dp1locQSa05 dtQHIsxpH+bidYyfvkYMX3lon7vvDpQJOT4e1/V/cibfoB5fvr4ohywLw/s3 X-Received: by 2002:adf:a18c:0:b0:34c:cae0:c989 with SMTP id ffacd0b85a97d-354b8e38ec8mr173115f8f.33.1715980404538; Fri, 17 May 2024 14:13:24 -0700 (PDT) Received: from [192.168.1.50] ([79.113.154.240]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-354b89d27b6sm230697f8f.96.2024.05.17.14.13.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 May 2024 14:13:23 -0700 (PDT) Message-ID: <0c22c048-c372-4596-b2c6-612c6ec7ab77@gmail.com> Date: Sat, 18 May 2024 00:13:22 +0300 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Bitterblue Smith Subject: [PATCH v6 00/11] wifi: rtlwifi: Add new rtl8192du driver To: "linux-wireless@vger.kernel.org" Cc: Ping-Ke Shih , Larry Finger , Stefan Lippers-Hollmann , Christian Hewitt Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit These patches add a driver for the RTL8192DU chip. Power saving is disabled by default because it's not working. Dual MAC chips are not tested. Until Ping-Ke Shih will add the firmware to the linux-firmware repository, the driver can be tested with the firmware from Larry Finger's repository: https://github.com/lwfinger/rtl8192du/blob/master/rtl8192dufw.bin v4 of the series also included the creation of the rtl8192d-common module, but it was becoming too long. rtl8192d-common was sent separately and it's merged already. v6: - Avoid "allyesconfig" build errors. - Update the copyright year. - A little cleanup. - More details about the changes can be found in each patch. v5: - Call it 802.11n instead of 802.11an in the module description and Kconfig. - Patch 2 is new. Bitterblue Smith (11): wifi: rtlwifi: Add rtl8192du/table.{c,h} wifi: rtlwifi: Add new members to struct rtl_priv for RTL8192DU wifi: rtlwifi: Add rtl8192du/hw.{c,h} wifi: rtlwifi: Add rtl8192du/phy.{c,h} wifi: rtlwifi: Add rtl8192du/trx.{c,h} wifi: rtlwifi: Add rtl8192du/rf.{c,h} wifi: rtlwifi: Add rtl8192du/fw.{c,h} and rtl8192du/led.{c,h} wifi: rtlwifi: Add rtl8192du/dm.{c,h} wifi: rtlwifi: Constify rtl_hal_cfg.{ops,usb_interface_cfg} and rtl_priv.cfg wifi: rtlwifi: Add rtl8192du/sw.c wifi: rtlwifi: Enable the new rtl8192du driver drivers/net/wireless/realtek/rtlwifi/Kconfig | 12 + drivers/net/wireless/realtek/rtlwifi/Makefile | 1 + drivers/net/wireless/realtek/rtlwifi/base.c | 2 +- .../wireless/realtek/rtlwifi/rtl8192cu/sw.c | 3 +- .../realtek/rtlwifi/rtl8192du/Makefile | 13 + .../wireless/realtek/rtlwifi/rtl8192du/dm.c | 120 + .../wireless/realtek/rtlwifi/rtl8192du/dm.h | 10 + .../wireless/realtek/rtlwifi/rtl8192du/fw.c | 63 + .../wireless/realtek/rtlwifi/rtl8192du/fw.h | 9 + .../wireless/realtek/rtlwifi/rtl8192du/hw.c | 1212 +++++++ .../wireless/realtek/rtlwifi/rtl8192du/hw.h | 22 + .../wireless/realtek/rtlwifi/rtl8192du/led.c | 10 + .../wireless/realtek/rtlwifi/rtl8192du/led.h | 9 + .../wireless/realtek/rtlwifi/rtl8192du/phy.c | 3128 +++++++++++++++++ .../wireless/realtek/rtlwifi/rtl8192du/phy.h | 32 + .../wireless/realtek/rtlwifi/rtl8192du/rf.c | 240 ++ .../wireless/realtek/rtlwifi/rtl8192du/rf.h | 11 + .../wireless/realtek/rtlwifi/rtl8192du/sw.c | 395 +++ .../realtek/rtlwifi/rtl8192du/table.c | 1675 +++++++++ .../realtek/rtlwifi/rtl8192du/table.h | 29 + .../wireless/realtek/rtlwifi/rtl8192du/trx.c | 372 ++ .../wireless/realtek/rtlwifi/rtl8192du/trx.h | 60 + drivers/net/wireless/realtek/rtlwifi/usb.c | 2 +- drivers/net/wireless/realtek/rtlwifi/usb.h | 2 +- drivers/net/wireless/realtek/rtlwifi/wifi.h | 12 +- 25 files changed, 7436 insertions(+), 8 deletions(-) create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/Makefile create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/dm.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/dm.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/fw.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/fw.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/hw.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/hw.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/led.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/led.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/phy.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/phy.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/rf.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/rf.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/sw.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/table.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/table.h create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.c create mode 100644 drivers/net/wireless/realtek/rtlwifi/rtl8192du/trx.h -- 2.44.0