Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp97004iof; Sun, 5 Jun 2022 22:16:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRnz8HAs3xUedKP/BWFDvtwQSZ0tRmTnEcWULt9lVd4QbEl90J7+w3E8fjkb4Pw1PJMGdE X-Received: by 2002:a17:90a:2e11:b0:1e3:3bb:8443 with SMTP id q17-20020a17090a2e1100b001e303bb8443mr24488437pjd.209.1654492560976; Sun, 05 Jun 2022 22:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654492560; cv=none; d=google.com; s=arc-20160816; b=xuMOIVGUV0FAT0pPRGtNZaxjVDpqexEHoCMl3KmVjsCid8pFuZQoJa15SIGG4Lm3Wr hhHtnF3vv+3JNoXkluGHpHCwOX6L6Stggxg4lDoO73kqc+RUgkS9eB8ftGdk5PIQ5UNe 438A+AzbcFlBqN4T0xtDSqvFaZs0MsSzMaTsMIhZDvFkdGZF0Y+ZANQu+D03FQ7RzP5I iftpQ7BcO7cV/H0loiJDVE6uj6c9bJ65SdIFNr/3aBr7nMEUCTyNf+dnrbH9FVB6ztMN zght6vjOKKth0UzoK2g24OOs9x2B8F6Qo9tcMR++BBZVYlHwP7EE6UpMbrEHIWvbZjCG cMlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=i2uhb3tpPROlwKx05MeFKL2Aw6gwNu1ckZRFmwrdF/s=; b=lmb1HArg8Rchyy0/8NTNeuWlrCqNqMvvyXsn9jD1+Cjy2W053Fh0cQBjBvwzoh5oAh PgXz/gyAhcot4sYsSgWvIVCtWtPc1Kh/GEPQb//fcxylrtkv9oNsg0PBdNFreOW1Wr/q i+yEQhDbSS27DnU8h8VLw4RNL8H3LvpwtwZ69Lq+jBcQc8Hv7UFU/RloF4Z4ku7AA3lK Fe2BZ9gMHmbry/PUvA6/sVtw3Nn7nQwRWpnvU/1WXztyvxb8eCS6Oi+Ak5IXosMZCU9F NvMoSjrzazZejYPvDNfl8AuA7SrqXXxaFSXJl7STw28XKH+FUo+uFxKVa8YdekB5ivDp A/uA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 1-20020a170902c24100b001637d6bac7csi8184165plg.93.2022.06.05.22.16.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F60C16BE28; Sun, 5 Jun 2022 21:21:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238947AbiFBTsa (ORCPT + 99 others); Thu, 2 Jun 2022 15:48:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238889AbiFBTsV (ORCPT ); Thu, 2 Jun 2022 15:48:21 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE8D8E5A for ; Thu, 2 Jun 2022 12:48:20 -0700 (PDT) Received: from ipservice-092-217-081-045.092.217.pools.vodafone-ip.de ([92.217.81.45] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1nwqno-000400-Fn; Thu, 02 Jun 2022 21:48:16 +0200 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , Pavel Skripkin , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/3] staging: r8188eu: use ieee80211 defines for back action codes Date: Thu, 2 Jun 2022 21:48:05 +0200 Message-Id: <20220602194807.281115-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220602194807.281115-1-martin@kaiser.cx> References: <20220602194807.281115-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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-kernel@vger.kernel.org Replace the driver-specific defines for back action codes with the defines from ieee80211.h. Signed-off-by: Martin Kaiser --- drivers/staging/r8188eu/core/rtw_mlme_ext.c | 6 +++--- drivers/staging/r8188eu/include/ieee80211.h | 7 ------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 1c1598c71b78..87bf37f33606 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -5606,7 +5606,7 @@ unsigned int send_delba(struct adapter *padapter, u8 initiator, u8 *addr) if (initiator == 0) { /* recipient */ for (tid = 0; tid < MAXTID; tid++) { if (psta->recvreorder_ctrl[tid].enable) { - issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid << 1) | initiator) & 0x1F)); + issue_action_BA(padapter, addr, WLAN_ACTION_DELBA, (((tid << 1) | initiator) & 0x1F)); psta->recvreorder_ctrl[tid].enable = false; psta->recvreorder_ctrl[tid].indicate_seq = 0xffff; } @@ -5614,7 +5614,7 @@ unsigned int send_delba(struct adapter *padapter, u8 initiator, u8 *addr) } else if (initiator == 1) { /* originator */ for (tid = 0; tid < MAXTID; tid++) { if (psta->htpriv.agg_enable_bitmap & BIT(tid)) { - issue_action_BA(padapter, addr, RTW_WLAN_ACTION_DELBA, (((tid << 1) | initiator) & 0x1F)); + issue_action_BA(padapter, addr, WLAN_ACTION_DELBA, (((tid << 1) | initiator) & 0x1F)); psta->htpriv.agg_enable_bitmap &= ~BIT(tid); psta->htpriv.candidate_tid_bitmap &= ~BIT(tid); } @@ -7458,7 +7458,7 @@ u8 add_ba_hdl(struct adapter *padapter, unsigned char *pbuf) if (((pmlmeinfo->state & WIFI_FW_ASSOC_SUCCESS) && (pmlmeinfo->HT_enable)) || ((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE)) { - issue_action_BA(padapter, pparm->addr, RTW_WLAN_ACTION_ADDBA_REQ, (u16)pparm->tid); + issue_action_BA(padapter, pparm->addr, WLAN_ACTION_ADDBA_REQ, (u16)pparm->tid); _set_timer(&psta->addba_retry_timer, ADDBA_TO); } else { psta->htpriv.candidate_tid_bitmap &= ~BIT(pparm->tid); diff --git a/drivers/staging/r8188eu/include/ieee80211.h b/drivers/staging/r8188eu/include/ieee80211.h index 15636a808f52..e7a4f8af497a 100644 --- a/drivers/staging/r8188eu/include/ieee80211.h +++ b/drivers/staging/r8188eu/include/ieee80211.h @@ -624,13 +624,6 @@ enum _PUBLIC_ACTION { ACT_PUBLIC_MAX }; -/* BACK action code */ -enum rtw_ieee80211_back_actioncode { - RTW_WLAN_ACTION_ADDBA_REQ = 0, - RTW_WLAN_ACTION_ADDBA_RESP = 1, - RTW_WLAN_ACTION_DELBA = 2, -}; - #define OUI_MICROSOFT 0x0050f2 /* Microsoft (also used in Wi-Fi specs) * 00:50:F2 */ #define WME_OUI_TYPE 2 -- 2.30.2