Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp92460ybl; Tue, 20 Aug 2019 16:14:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhJUdEEZ00AInA6FUnbjysjGNJd+2VGSvY66zJJHGRjdIJUOFvHrV1pa9Zx727sfZmkyqB X-Received: by 2002:a17:902:bc49:: with SMTP id t9mr30903056plz.277.1566342853124; Tue, 20 Aug 2019 16:14:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1566342853; cv=pass; d=google.com; s=arc-20160816; b=mh9U5Id7J1MYl9TnsujtgC6iMkhGS7Se8E+MoKhUrMIyafxQnYhRyT9faGIhcIKYCk rdpAKrOpc/JoFrt8bPrJVweDaAe+b4gNMuzJH1gJzkeorW8qxYEmyTURCHCsmcSKpL4Y nwlx+iBJc/9WrEw+iL5J8vnT0VbFPC+u5klQ5k/jUyTYda62S2GQ+9DRVx1xGbT3Iqh2 6MBxI+lYLjIg7jp7WelkbcbAnsPx5nd9bUN6cHbWxyfUw21n4sp0bLkxkSoKXHuGb5+Q gbmedRCOi/2v5IsYXCWPQ/NrzZy51zD1Ns12pj7tYmP9IdSVKUKjKXn4GeqTOzB8jwWN bLVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=MVfCmf1E8Hdpayw4jYLiIBv+0JHwD8pI24yNsGdyYMM=; b=PSMNXhDyDhPsvPTR9QxOGhz4f9QVQ18h8EwuvNund7CqYb8LJxxW9SgN3q/xD8jrw4 p8rNfccklSqwnNIckuomLlLLauC8BJ38PByPUguCGJIL+jNe6RIfUQkOpkTzm1fgIXHt TCS0TnxpFjdVHPj8uuxQklGuAOAst144vL3nl+Hb1CdH3o1KZj+L4JgmGfKwbo6St9AW CZ1SGQUcS/S9RKZYLtuU+/EGHc0AZUdte+7tBpPM4n/knfVuWTCtgaPww/LBkyEfkMj7 usMkUo3J4p0dPy0KPvkwfqBLm00tDo6AI78k53DO09a8JJBfYzEjozAY2mufaim324E6 QEOA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=SFkS2eXS; arc=pass (i=1 spf=pass spfdomain=brennan.io dkim=pass dkdomain=brennan.io dmarc=pass fromdomain=brennan.io>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n12si13203597pgi.550.2019.08.20.16.13.58; Tue, 20 Aug 2019 16:14:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=SFkS2eXS; arc=pass (i=1 spf=pass spfdomain=brennan.io dkim=pass dkdomain=brennan.io dmarc=pass fromdomain=brennan.io>); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfHTXMw (ORCPT + 99 others); Tue, 20 Aug 2019 19:12:52 -0400 Received: from sender4-of-o55.zoho.com ([136.143.188.55]:21556 "EHLO sender4-of-o55.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726128AbfHTXMw (ORCPT ); Tue, 20 Aug 2019 19:12:52 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1566342759; cv=none; d=zoho.com; s=zohoarc; b=hXSN+Gj/RhKd/0hqwChapBO8ePfFrjCwZu1vU7NO3Ff2VuxjRlPf0YQc7ylU6QsqrSqx7tEDGaRbrry8dJbgQfXu/8B2UHxpj1PoPBMYRY2eCIO/k2OQWZcnT9jMv0zMWbgxOr45NwC7J1VrKgKfHOcYBfcOoj76NPVnWMeyUFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566342759; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=MVfCmf1E8Hdpayw4jYLiIBv+0JHwD8pI24yNsGdyYMM=; b=UaoXVdIoP3lXH6dzKInqtziN2NRrv8AWJviOlnWesN4HeCAkH6VTHuXzmeL9tyJc+/BGAD8s+6qXIwv0gcJ7PilBm+fsMiyij34wKG67VIZwd44T8h09Mw8JDyMuYVuyDv+5qZD8sfRrliFtvQ93s/16MhRqW4d7OTieBpzsn2s= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=brennan.io; spf=pass smtp.mailfrom=stephen@brennan.io; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1566342759; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; l=3987; bh=MVfCmf1E8Hdpayw4jYLiIBv+0JHwD8pI24yNsGdyYMM=; b=SFkS2eXS1qG/EXPlKz4KAYxVyzxyL6bEzAaK2FXc/JbZWEPVbcZ/j5rP6i7+2pjM rZHJofOm9aU6nh2vD1s4DZsjDpjrvKIAIk+dpvfUusayoXX6NKDBKAbZ62aMBRW9VGc JIpQbZdaZSbrAvDpNGSUlOFmQFoLDZAVpWTFoMMs= Received: from localhost (wsip-184-188-36-2.sd.sd.cox.net [184.188.36.2]) by mx.zohomail.com with SMTPS id 1566342757463723.5175446328193; Tue, 20 Aug 2019 16:12:37 -0700 (PDT) From: Stephen Brennan To: Greg Kroah-Hartman Cc: Stephen Brennan , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, "Tobin C . Harding" Message-ID: <20190820231156.30031-3-stephen@brennan.io> Subject: [PATCH 2/3] staging: rtl8192u: fix macro alignment in ieee80211 Date: Tue, 20 Aug 2019 16:11:55 -0700 X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190820231156.30031-1-stephen@brennan.io> References: <20190820231156.30031-1-stephen@brennan.io> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Stephen Brennan --- .../staging/rtl8192u/ieee80211/ieee80211.h | 35 ++++++++++--------- .../staging/rtl8192u/ieee80211/rtl819x_HT.h | 8 ++--- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/stagi= ng/rtl8192u/ieee80211/ieee80211.h index 129dcb5a0f2e..6b7828a9e71d 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h @@ -169,9 +169,9 @@ struct cb_desc { #define MGN_MCS14 0x8e #define MGN_MCS15 0x8f =20 -#define aSifsTime ((priv->ieee80211->current_network.mode =3D=3D IEEE_A ||= \ +#define aSifsTime ((priv->ieee80211->current_network.mode =3D=3D IEEE_A ||= \ =09=09 priv->ieee80211->current_network.mode =3D=3D IEEE_N_24G || \ -=09=09 priv->ieee80211->current_network.mode =3D=3D IEEE_N_5G) ? \ +=09=09 priv->ieee80211->current_network.mode =3D=3D IEEE_N_5G) ? \ =09=09 16 : 10) =20 #define MGMT_QUEUE_NUM 5 @@ -387,7 +387,7 @@ struct ieee_param { #define IEEE80211_STYPE_ACK=09=090x00D0 #define IEEE80211_STYPE_CFEND=09=090x00E0 #define IEEE80211_STYPE_CFENDACK=090x00F0 -#define IEEE80211_STYPE_BLOCKACK 0x0094 +#define IEEE80211_STYPE_BLOCKACK=090x0094 =20 /* data */ #define IEEE80211_STYPE_DATA=09=090x0000 @@ -452,18 +452,19 @@ do { if (ieee80211_debug_level & (level)) \ printk(KERN_DEBUG "ieee80211: " fmt, ## args); } while (0) //wb added to debug out data buf //if you want print DATA buffer related BA, please set ieee80211_debug_lev= el to DATA|BA -#define IEEE80211_DEBUG_DATA(level, data, datalen)=09\ -=09do { if ((ieee80211_debug_level & (level)) =3D=3D (level))=09\ -=09=09{=09\ -=09=09=09int i;=09=09=09=09=09\ -=09=09=09u8 *pdata =3D (u8 *) data;=09=09=09\ -=09=09=09printk(KERN_DEBUG "ieee80211: %s()\n", __func__);=09\ -=09=09=09for (i =3D 0; i < (int)(datalen); i++) {=09=09\ -=09=09=09=09printk("%2x ", pdata[i]);=09=09\ -=09=09=09=09if ((i + 1) % 16 =3D=3D 0) printk("\n");=09\ -=09=09=09}=09=09=09=09\ -=09=09=09printk("\n");=09=09=09\ -=09=09}=09=09=09=09=09\ +#define IEEE80211_DEBUG_DATA(level, data, datalen) = \ +=09do { if ((ieee80211_debug_level & (level)) =3D=3D (level)) = \ +=09=09{ \ +=09=09=09int i; \ +=09=09=09u8 *pdata =3D (u8 *) data; \ +=09=09=09printk(KERN_DEBUG "ieee80211: %s()\n", __func__); \ +=09=09=09for (i =3D 0; i < (int)(datalen); i++) { \ +=09=09=09=09printk("%2x ", pdata[i]); \ +=09=09=09=09if ((i + 1) % 16 =3D=3D 0) \ +=09=09=09=09=09printk("\n"); \ +=09=09=09} \ +=09=09=09printk("\n"); \ +=09=09} \ =09} while (0) #else #define IEEE80211_DEBUG (level, fmt, args...) do {} while (0) @@ -2014,8 +2015,8 @@ struct ieee80211_device { #define IEEE_A (1<<0) #define IEEE_B (1<<1) #define IEEE_G (1<<2) -#define IEEE_N_24G=09=09 (1<<4) -#define=09IEEE_N_5G=09=09 (1<<5) +#define IEEE_N_24G (1<<4) +#define IEEE_N_5G (1<<5) #define IEEE_MODE_MASK (IEEE_A | IEEE_B | IEEE_G) =20 /* Generate a 802.11 header */ diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h b/drivers/stag= ing/rtl8192u/ieee80211/rtl819x_HT.h index 3fca0d3a1d05..586d93720e37 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HT.h @@ -253,10 +253,10 @@ extern u8 MCS_FILTER_1SS[16]; /* 2007/07/12 MH We only define legacy and HT wireless mode now. */ #define=09LEGACY_WIRELESS_MODE=09IEEE_MODE_MASK =20 -#define CURRENT_RATE(WirelessMode, LegacyRate, HTRate)=09\ -=09=09=09=09=09((WirelessMode & (LEGACY_WIRELESS_MODE)) !=3D 0) ?\ -=09=09=09=09=09=09(LegacyRate) :\ -=09=09=09=09=09=09(PICK_RATE(LegacyRate, HTRate)) +#define CURRENT_RATE(WirelessMode, LegacyRate, HTRate) \ +=09=09((WirelessMode & (LEGACY_WIRELESS_MODE)) !=3D 0) ? \ +=09=09=09(LegacyRate) : \ +=09=09=09(PICK_RATE(LegacyRate, HTRate)) =20 // MCS Bw 40 {1~7, 12~15,32} #define=09RATE_ADPT_1SS_MASK=09=090xFF --=20 2.22.0