From nobody Mon Apr 6 21:47:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22749C38145 for ; Fri, 2 Sep 2022 09:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235950AbiIBJxg (ORCPT ); Fri, 2 Sep 2022 05:53:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233014AbiIBJwo (ORCPT ); Fri, 2 Sep 2022 05:52:44 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D15B83CBF4 for ; Fri, 2 Sep 2022 02:52:42 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id t5so1922243edc.11 for ; Fri, 02 Sep 2022 02:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=B/LkNIri/1WQtL+Q7NWsRVHWzRnp/SVBkeL4p3lzvpc=; b=UmGoUW84f46bOOkqLOrVsz1cuIelpw1AyuKVUsSLOuGDx49DKX2HTCfP9L3NRQfAtw nWG0XzxJysDol1nrBVzg11l8wvAsKib0aopEWwPNEvFS+L7bNykbDBdbqcoyACogYaaR 5Z8+AkYIgYRjGpKDfW7FNOBNoSPhvl6FSyYiY/8bZmVtZDGc7Onnk+YCyqLGNTUIuMNs 4q2bqwgIz8vXZt+C9m4aa8IQIvpIRbDamSqp+1YzTg0fsfQsw+0cJlTHzMkqNkm5+OvH j6zfwlRhigMXrNSgFHON5TrRBgkUEV4KZ7Df0se4QhFJT7s+SCfpi8B6B+dnvn3Pbsi+ FenQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=B/LkNIri/1WQtL+Q7NWsRVHWzRnp/SVBkeL4p3lzvpc=; b=XxmaqTK7FWhKvZhrZgiv7ZIvI8uVqeFaGDNfGUY5rsUgrWcS0T35Ayv/qU5uhnPTKl AphXNb0J3oy7qGDBb6dJ6K9qHPYIMy0ucrlHcByetu5dzTRiFNTDjgiPRonmZCYphPH2 LufTz6v1+UweJryCWHONpNY65kYN9xv1+SNRzt4/6JL72vVJXfoC4nq6vW46Jojoxs5n mfXq76ob3udrt0gydBwSBx6Ft+sAKrz4lWvt3f+95sVQXlECDoJPTyjDRZKsEFdeDq3Q BohpuiioGLAl6WjXSMIzJ8KeatpuzKR1OBCEuDPi7SVM2N6mDXMDrcs/+eIOu3Thba/H jSuQ== X-Gm-Message-State: ACgBeo2t9Farwdyqt94EeWBuiX8NC20K1izCSth6rUUU4d44lkKdhNEs Ud6FN/5dbRe2YFf4amrB9ZhSQx15jus5WA== X-Google-Smtp-Source: AA6agR40Enx2VtA1BLjCCmzHZy2HEipEPMqS4wC6H84sCs4J8CSggN68CqgbJCTcJcSaTw52twxEIQ== X-Received: by 2002:a05:6402:f1d:b0:44a:ec16:df56 with SMTP id i29-20020a0564020f1d00b0044aec16df56mr5793191eda.74.1662112361386; Fri, 02 Sep 2022 02:52:41 -0700 (PDT) Received: from localhost.localdomain (ip-217-105-46-83.ip.prioritytelecom.net. [217.105.46.83]) by smtp.gmail.com with ESMTPSA id h6-20020a170906828600b0073d6234ceebsm959601ejx.160.2022.09.02.02.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Sep 2022 02:52:41 -0700 (PDT) From: Nam Cao To: Larry.Finger@lwfinger.net, gregkh@linuxfoundation.org, hdegoede@redhat.com Cc: namcaov@gmail.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 10/10] staging: rtl8723bs: remove rtw_is_wps_ie Date: Fri, 2 Sep 2022 11:52:00 +0200 Message-Id: <69f128559008c94e29eab511a92964810688288e.1662111799.git.namcaov@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove function rtw_is_wps_ie because it is not used. Signed-off-by: Nam Cao --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 17 ----------------- drivers/staging/rtl8723bs/include/ieee80211.h | 1 - 2 files changed, 18 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/stagi= ng/rtl8723bs/core/rtw_ieee80211.c index 68e41d99679d..3d8a64f69448 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c @@ -634,23 +634,6 @@ void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie= , u16 *rsn_len, u8 *wpa_ie } } =20 -u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen) -{ - u8 match =3D false; - u8 eid, wps_oui[4] =3D {0x0, 0x50, 0xf2, 0x04}; - - if (!ie_ptr) - return match; - - eid =3D ie_ptr[0]; - - if ((eid =3D=3D WLAN_EID_VENDOR_SPECIFIC) && (!memcmp(&ie_ptr[2], wps_oui= , 4))) { - *wps_ielen =3D ie_ptr[1]+2; - match =3D true; - } - return match; -} - /** * rtw_get_wps_ie - Search WPS IE from a series of IEs * @in_ie: Address of IEs to search diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/stagin= g/rtl8723bs/include/ieee80211.h index 1e627dc0044d..9041d8dc5fb1 100644 --- a/drivers/staging/rtl8723bs/include/ieee80211.h +++ b/drivers/staging/rtl8723bs/include/ieee80211.h @@ -746,7 +746,6 @@ int rtw_parse_wpa2_ie(u8 *wpa_ie, int wpa_ie_len, int *= group_cipher, int *pairwi =20 void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *= wpa_ie, u16 *wpa_len); =20 -u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen); u8 *rtw_get_wps_ie(u8 *in_ie, uint in_len, u8 *wps_ie, uint *wps_ielen); u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *b= uf_attr, u32 *len_attr); u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_i= d, u8 *buf_content, uint *len_content); --=20 2.25.1