Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4132153rdh; Tue, 28 Nov 2023 12:44:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IENojlaYn0oEP0iOoiiWG5SgUMIWIJOx7k8z7bu4mL9LSX0GGwoLLVePQWuExsHyAx0764Q X-Received: by 2002:a05:6a20:54a7:b0:18b:92b3:7c80 with SMTP id i39-20020a056a2054a700b0018b92b37c80mr22920013pzk.22.1701204255376; Tue, 28 Nov 2023 12:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701204255; cv=none; d=google.com; s=arc-20160816; b=vP9nrRg0hmHtTw1qDEDwB2Ow30+nKLv1LWcr8vjEzpCKepvJEWEx3I60FwDGvfpEro uHeZG0qWI+IFf6FRX8KFliPGY9ef1sDsh1eofHYd/5ea5TuLyVUltcETb40vYon1Iiyy ad5JlTN6G+3nwkOcLUCnbsjM8n1EicjWeSuEHuOyZ1YPuA9MF5DFHPPGsnpjjQBJUAfw EvOwANX8MyxlVhT7dR9chLqZKeg+SgtZjRw63axJ+g+NSW8MQPsx31RJ/eivCHepZGde rpwsjMv3MFz8UdOGZGvG+zRAW/E3rjqELhz9UtnihYc/ke5kMgpKxJA8BUpJGoOJqu8+ olSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=V6Qf6Ds+xSBk1DuDIL8ubxSxi2PW7CPsIXUHtrOAG3o=; fh=Sw1rtAM+hKyOoOQVYiiLzcdjc4spg79Z/tN6UmWUAKs=; b=w8KuP0QTQapfOojxmjVVDd74XhkqXZ193rjyDydVWqn/RxVW4q85cf7H7M2WzWCAc5 nmXBOpB32WLOKS1aMeILnEXmLFW4EM9DyjSIOrGVetijVdM+7gonJ4JyXuswePbioBze wbld8Wv3UUn40qHvW682VFy46w8Pf14vekRR7N2kVmJtgIvIA0eha7mrsppYvkHZ0l34 hXk32rL2trTgdm1QhLxl+xUlI2/rIaE0WouhkFePCidICZQhIx5QLA1Tg3jIbchhrA6r 0iEzL4dQb4Krx4vEUk2wNZfH7aOUb468V/qKEORqCZDoCHo21GTOpFJU2hKS/qiYGheC +sCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JbOLAyXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id f27-20020a63101b000000b005b95f5f8976si12850539pgl.634.2023.11.28.12.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:44:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JbOLAyXy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 1FD0A8060CBD; Tue, 28 Nov 2023 12:44:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346198AbjK1Uno (ORCPT + 99 others); Tue, 28 Nov 2023 15:43:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234901AbjK1Ung (ORCPT ); Tue, 28 Nov 2023 15:43:36 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 680E019BA for ; Tue, 28 Nov 2023 12:43:41 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-40b3febbce3so4486025e9.1 for ; Tue, 28 Nov 2023 12:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701204220; x=1701809020; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=V6Qf6Ds+xSBk1DuDIL8ubxSxi2PW7CPsIXUHtrOAG3o=; b=JbOLAyXyXFCqPb956mV6UvVfb8f1u+z+brq14lps7EC3rCj+ZbAR4hNCZXT+AHIpga 9CLyII0xuE/XRZ6sm4XCv3upnHa6xUuO5Kpjcjt2oAZURsqLOcgSg0nBkH1mKuk1Bvel VflwKgfbcVMmqKM6IZMZThTeBRkqfeIHcm2pV27kmXAZ/a1mwXkWCE2wWVcimGbyr7DM ONAAKXxQs4K6qA8BZU5YfDM/qXHkdaTi7CCiBBLh08ky6+jVIRWP05RiS7NI3LSssdkq fdPn3DCi8gJBj7IxnwFu8j6OCkU7az6kyazHUII8CbN0R3ubc0zpSP8vsus4hKSSUCSB j1iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701204220; x=1701809020; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=V6Qf6Ds+xSBk1DuDIL8ubxSxi2PW7CPsIXUHtrOAG3o=; b=wNRlfIwg/pYjoqYdHWQ6vwCqNpx6DWldCMqSy4rZgbc0kK5uD2G27xyKVUeFABp19F 8xGGcRn3VuVMUQncrL0d/rb0P4mFRObQs/BmTMjamwoT0lCR+psOHOZA+zez1kuoh9wn IQasO86xIEGoPF5oJm6RfWMj+fBUQaayqI3yGo/3T+1RsH1Ugt/GqleR1AQhGtHOJSrR uYs1G7z5mR9tKL67SJ4l6y4orSjp9S0zpkN5elrI/ER3Je3UuNZW/4xQRCgjs+yvUkZM B6n6+LiwFbMxzyxT422h5GxcbpFtOYMibZV0HEhVPrGC4HMh51DnqtBH2vFlMvBziyMi +y+g== X-Gm-Message-State: AOJu0YyeWWeyXP2gtyRqssS0/jJQADMUoyl7K+YgTcMNFpYqR2pFCZjt sMqUwaMooMqhIF9NVxOMu4o= X-Received: by 2002:a05:600c:3b0c:b0:40b:2708:2a52 with SMTP id m12-20020a05600c3b0c00b0040b27082a52mr11322988wms.1.1701204219639; Tue, 28 Nov 2023 12:43:39 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p54a07fa0.dip0.t-ipconnect.de. [84.160.127.160]) by smtp.gmail.com with ESMTPSA id b5-20020a05600c4e0500b003feae747ff2sm19621595wmq.35.2023.11.28.12.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 12:43:39 -0800 (PST) Date: Tue, 28 Nov 2023 21:43:38 +0100 From: Philipp Hortmann To: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 5/6] staging: rtl8192e: Remove unused function rtllib_rx_ADDBARsp() Message-ID: <988974fbec7d28455bb575eb52cfe1b974ce8293.1701202700.git.philipp.g.hortmann@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 28 Nov 2023 12:44:12 -0800 (PST) Remove unused function rtllib_rx_ADDBARsp(). Signed-off-by: Philipp Hortmann --- drivers/staging/rtl8192e/rtl819x_BAProc.c | 99 ----------------------- drivers/staging/rtl8192e/rtllib.h | 1 - 2 files changed, 100 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_BAProc.c b/drivers/staging/rtl8192e/rtl819x_BAProc.c index fab7ced1b8c3..4dadeb43b9a2 100644 --- a/drivers/staging/rtl8192e/rtl819x_BAProc.c +++ b/drivers/staging/rtl8192e/rtl819x_BAProc.c @@ -199,105 +199,6 @@ static void rtllib_send_DELBA(struct rtllib_device *ieee, u8 *dst, netdev_dbg(ieee->dev, "Failed to generate DELBA packet.\n"); } -int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb) -{ - struct ieee80211_hdr_3addr *rsp = NULL; - struct ba_record *pending_ba, *admitted_ba; - struct tx_ts_record *ts = NULL; - u8 *dst = NULL, *dialog_token = NULL, *tag = NULL; - u16 *status_code = NULL, *ba_timeout_value = NULL; - union ba_param_set *ba_param_set = NULL; - u16 reason_code; - - if (skb->len < sizeof(struct ieee80211_hdr_3addr) + 9) { - netdev_warn(ieee->dev, "Invalid skb len in BARSP(%d / %d)\n", - (int)skb->len, - (int)(sizeof(struct ieee80211_hdr_3addr) + 9)); - return -1; - } - rsp = (struct ieee80211_hdr_3addr *)skb->data; - tag = (u8 *)rsp; - dst = (u8 *)(&rsp->addr2[0]); - tag += sizeof(struct ieee80211_hdr_3addr); - dialog_token = tag + 2; - status_code = (u16 *)(tag + 3); - ba_param_set = (union ba_param_set *)(tag + 5); - ba_timeout_value = (u16 *)(tag + 7); - - if (!ieee->current_network.qos_data.active || - !ieee->ht_info->current_ht_support || - !ieee->ht_info->current_ampdu_enable) { - netdev_warn(ieee->dev, - "reject to ADDBA_RSP as some capability is not ready(%d, %d, %d)\n", - ieee->current_network.qos_data.active, - ieee->ht_info->current_ht_support, - ieee->ht_info->current_ampdu_enable); - reason_code = DELBA_REASON_UNKNOWN_BA; - goto OnADDBARsp_Reject; - } - - if (!rtllib_get_ts(ieee, (struct ts_common_info **)&ts, dst, - (u8)(ba_param_set->field.tid), TX_DIR, false)) { - netdev_warn(ieee->dev, "%s(): can't get TS\n", __func__); - reason_code = DELBA_REASON_UNKNOWN_BA; - goto OnADDBARsp_Reject; - } - - ts->add_ba_req_in_progress = false; - pending_ba = &ts->tx_pending_ba_record; - admitted_ba = &ts->tx_admitted_ba_record; - - if (admitted_ba->b_valid) { - netdev_dbg(ieee->dev, "%s(): ADDBA response already admitted\n", - __func__); - return -1; - } else if (!pending_ba->b_valid || - (*dialog_token != pending_ba->dialog_token)) { - netdev_warn(ieee->dev, - "%s(): ADDBA Rsp. BA invalid, DELBA!\n", - __func__); - reason_code = DELBA_REASON_UNKNOWN_BA; - goto OnADDBARsp_Reject; - } else { - netdev_dbg(ieee->dev, - "%s(): Recv ADDBA Rsp. BA is admitted! Status code:%X\n", - __func__, *status_code); - deactivate_ba_entry(ieee, pending_ba); - } - - if (*status_code == ADDBA_STATUS_SUCCESS) { - if (ba_param_set->field.ba_policy == BA_POLICY_DELAYED) { - ts->add_ba_req_delayed = true; - deactivate_ba_entry(ieee, admitted_ba); - reason_code = DELBA_REASON_END_BA; - goto OnADDBARsp_Reject; - } - - admitted_ba->dialog_token = *dialog_token; - admitted_ba->ba_timeout_value = *ba_timeout_value; - admitted_ba->ba_start_seq_ctrl = pending_ba->ba_start_seq_ctrl; - admitted_ba->ba_param_set = *ba_param_set; - deactivate_ba_entry(ieee, admitted_ba); - activate_ba_entry(admitted_ba, *ba_timeout_value); - } else { - ts->add_ba_req_delayed = true; - ts->disable_add_ba = true; - reason_code = DELBA_REASON_END_BA; - goto OnADDBARsp_Reject; - } - - return 0; - -OnADDBARsp_Reject: - { - struct ba_record BA; - - BA.ba_param_set = *ba_param_set; - rtllib_send_DELBA(ieee, dst, &BA, TX_DIR, reason_code); - return 0; - } -} - int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb) { struct ieee80211_hdr_3addr *delba = NULL; diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index b9ac313e5f97..7d64855d835d 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -1776,7 +1776,6 @@ u8 HTCCheck(struct rtllib_device *ieee, u8 *pFrame); void HTResetIOTSetting(struct rt_hi_throughput *ht_info); bool is_ht_half_nmode_aps(struct rtllib_device *ieee); u16 tx_count_to_data_rate(struct rtllib_device *ieee, u8 nDataRate); -int rtllib_rx_ADDBARsp(struct rtllib_device *ieee, struct sk_buff *skb); int rtllib_rx_DELBA(struct rtllib_device *ieee, struct sk_buff *skb); void rtllib_ts_init_add_ba(struct rtllib_device *ieee, struct tx_ts_record *ts, u8 policy, u8 overwrite_pending); -- 2.42.0