Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2998538imm; Sun, 24 Jun 2018 09:05:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKooicBVWbJBmZai3MYCONwbsXuHCEo4CrJmJNDQLFbwGu2dKGcxdpjMQrklHdDhqkf6PSc X-Received: by 2002:a62:8552:: with SMTP id u79-v6mr9736033pfd.201.1529856337438; Sun, 24 Jun 2018 09:05:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529856337; cv=none; d=google.com; s=arc-20160816; b=jncvjXdVv+IN5lb8O1mmcoQYWX5+uualPwiD2OHcem0ceiHVHiHVlaE2RFBB6swZbB T3jP+6WnLmXHF3dJEhdUM58RXMLnOTxHqTMzoCJZ6qLR6i3ylzd0MfR2qHVPYEMGUMW+ S47Ff52+c5FDUNDo0h+eHs1GWy+fqDuTsa31TNmwktRutwxcr+qLyZ2RoY8hvQLDpD8G GjcqmiDBOKffcqSOhxm227/pXA7giqDn9pH6ESTsr94WeFDvsbpXHz/uQDl53QH5ZM9T OV0GbwezZTacpGmaCnehDpgM5c39ODtihPc17Z27+4Ba5FCBIUTDvFtUnlGphlr1J33U yIFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Xb7TZcr+J0XM29GonoJE0qrDKg0CbFQF66WLl1bB2jY=; b=kj6Ul9mRTppJuhQ1DtpsoTFp+v9iv0ew/IdwhbwV3QfIc8xUXY7XwlSPL6sbdyF/Bp Pct9HRiqVhDy4ERaWpWxd7MrrJoKSWJ/wx1YYURi+JhXQgG1anoLiPUMIyDfH2C+umIM 9Fl0BxlJLwzg7rl+fBVJ9TkAMIl4pNe2I9qdkhsgFtfdXsh2RlIrpU927ojZco1jdIuV tuLh5FjvuVyUihPp7wLhHo44D6abCDQrWjnU3WwCu+LOuEwgPHPofE8L1Tj+ESohbhQv dcgwdV1c9iq5s9ESZltfxSbgv8aI2ti9QooHCKBXUTO7AwrqQZHlj4wrBMGpL7mkOrtB rgLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YTopoZX1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v66-v6si9761614pgv.57.2018.06.24.09.05.23; Sun, 24 Jun 2018 09:05:37 -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=@gmail.com header.s=20161025 header.b=YTopoZX1; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755417AbeFXQEs (ORCPT + 99 others); Sun, 24 Jun 2018 12:04:48 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40096 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755691AbeFXPk7 (ORCPT ); Sun, 24 Jun 2018 11:40:59 -0400 Received: by mail-wm0-f66.google.com with SMTP id z13-v6so1163287wma.5 for ; Sun, 24 Jun 2018 08:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xb7TZcr+J0XM29GonoJE0qrDKg0CbFQF66WLl1bB2jY=; b=YTopoZX14AhEb1pzN9OHUDfBsQH5Qw9WJfdKGhF1EJ9MlKhC7mkwmDmxKSJt7IQltW mPUQbPZz3KMgtjBMxbTZ1avS4Kd5PijgjlCDCh23BCMr+S98al6Xq5VIDqiV1f4WoAIP v9Obw8IScWJWFdbHSBqTGJ/hEYjhM7tDCGfZ413ffRDPkHl2s8GdKrk7ZbHHCMDuK4qH zx8zL7oYzXYlVAaIKJJ4aH80gvQBMP31LptFtkKtZKMQm8IiszOI7rcPv1w+8FAXqx2v L9zmttf0E6tgvH2pqkUhnsnCY2jGpLrOIbvqwTJx/rJiAsr5jN1Oi76Uvz8vPYmCZRBX fnZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Xb7TZcr+J0XM29GonoJE0qrDKg0CbFQF66WLl1bB2jY=; b=LmXgYqPcRjZ6INARnMnz5oqUNEbXQr3IqPKTfpK3VkoxSi2IcZXH4izMFydBf7QhSc rsz+dEXbQ8KYQzrG2ZjE9XfAShLJ0JBN1LXWRPxxDH+tOOV0TiFGVlIA3sFZs5XmQGt2 b25uFSBuHM7y0rtAyTaj0dqiuhNXydQP5eD2GCmKoCtAiAf0s5iVLjIdajlxsrkPEJiv X1NLY8Tx0OWhZ6DQ80xMNpc68IIk2E2Qb23CSHYsBdNpRnQnw3hCOJndMXM+Gil/X4ux n7yzFpHeExsBdPG0kR7MIiEJXO5jtxuhaO1kkRmk2w+CFCRiQFHkC1gX2TSZauo9Q7Rb Jovw== X-Gm-Message-State: APt69E2pvhCru5U8LoriDPmlgXYcnPRTp0s2A2boj2OXUuIzX2EN4NzJ T2t8ClFKfKhp6J3qrnmicwUhAy6I X-Received: by 2002:a1c:8a4b:: with SMTP id m72-v6mr7293865wmd.2.1529854858159; Sun, 24 Jun 2018 08:40:58 -0700 (PDT) Received: from localhost.localdomain (host86-190-130-185.range86-190.btcentralplus.com. [86.190.130.185]) by smtp.gmail.com with ESMTPSA id w12-v6sm2782920wrp.69.2018.06.24.08.40.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Jun 2018 08:40:57 -0700 (PDT) From: John Whitmore To: linux-kernel@vger.kernel.org Cc: devel@driverdev.osuosl.org, gregkh@linuxfoundation.org, John Whitmore Subject: [PATCH v3 4/8] staging: rtl8192u: Truncate block comments to 80 character length - Style Date: Sun, 24 Jun 2018 16:40:23 +0100 Message-Id: <20180624154027.27654-5-johnfwhitmore@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180624154027.27654-1-johnfwhitmore@gmail.com> References: <20180624154027.27654-1-johnfwhitmore@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Where possible truncation of block comments to the 80 character length preferred by the coding style. In a previous version of this commit some of the comments were contentious so those have not been touched in this version. Signed-off-by: John Whitmore --- .../rtl8192u/ieee80211/rtl819x_HTProc.c | 106 +++++++++++------- 1 file changed, 63 insertions(+), 43 deletions(-) diff --git a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c index ccb7bdf5ad5d..0bd41ded87c9 100644 --- a/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c +++ b/drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c @@ -1,6 +1,9 @@ // SPDX-License-Identifier: GPL-2.0 -//As this function is mainly ported from Windows driver, so leave the name little changed. If any confusion caused, tell me. Created by WB. 2008.05.08 +/* + * As this function is mainly ported from Windows driver, so leave the name + * little changed. If any confusion caused, tell me. Created by WB. 2008.05.08 + */ #include "ieee80211.h" #include "rtl819x_HT.h" u8 MCS_FILTER_ALL[16] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; @@ -42,8 +45,8 @@ static u8 AIRLINK_RALINK[3] = {0x00, 0x18, 0x02}; //static u8 DLINK_ATHEROS[3] = {0x00, 0x1c, 0xf0}; static u8 CISCO_BROADCOM[3] = {0x00, 0x17, 0x94}; /* - * 2008/04/01 MH For Cisco G mode RX TP We need to change FW duration. Should we put the - * code in other place?? + * 2008/04/01 MH For Cisco G mode RX TP We need to change FW duration. Should we + * put the code in other place?? * static u8 WIFI_CISCO_G_AP[3] = {0x00, 0x40, 0x96}; */ /* @@ -117,7 +120,8 @@ void HTUpdateDefaultSetting(struct ieee80211_device *ieee) } /* - *function: This function print out each field on HT capability IE mainly from (Beacon/ProbeRsp/AssocReq) + *function: This function print out each field on HT capability + * IE mainly from (Beacon/ProbeRsp/AssocReq) * input: u8* CapIE //Capability IE to be printed out * u8* TitleString //mainly print out caller function * output: none @@ -151,7 +155,8 @@ void HTDebugHTCapability(u8 *CapIE, u8 *TitleString) } /* - *function: This function print out each field on HT Information IE mainly from (Beacon/ProbeRsp) + *function: This function print out each field on HT Information + * IE mainly from (Beacon/ProbeRsp) * input: u8* InfoIE //Capability IE to be printed out * u8* TitleString //mainly print out caller function * output: none @@ -387,8 +392,9 @@ static void HTIOTPeerDetermine(struct ieee80211_device *ieee) } /* - *function: Check whether driver should declare received rate up to MCS13 only since some chipset is not good - * at receiving MCS14~15 frame from some AP. + *function: Check whether driver should declare received rate up to MCS13 + * only since some chipset is not good at receiving MCS14~15 frame + * from some AP. * input: struct ieee80211_device* ieee * u8 * PeerMacAddr * output: none @@ -402,7 +408,8 @@ static u8 HTIOTActIsDisableMCS14(struct ieee80211_device *ieee, u8 *PeerMacAddr) /* * Function: HTIOTActIsDisableMCS15 * - * Overview: Check whether driver should declare capability of receiving MCS15 + * Overview: Check whether driver should declare capability of receiving + * MCS15 * * Input: * PADAPTER Adapter, @@ -439,7 +446,8 @@ static bool HTIOTActIsDisableMCS15(struct ieee80211_device *ieee) /* * Function: HTIOTActIsDisableMCSTwoSpatialStream * - * Overview: Check whether driver should declare capability of receiving All 2 ss packets + * Overview: Check whether driver should declare capability of receiving + * All 2 ss packets * * Input: * PADAPTER Adapter, @@ -462,7 +470,8 @@ static bool HTIOTActIsDisableMCSTwoSpatialStream(struct ieee80211_device *ieee, * input: struct ieee80211_device* ieee * u8* PeerMacAddr * output: none - * return: return 1 if driver should disable EDCA turbo mode(otherwise return 0) + * return: return 1 if driver should disable EDCA turbo mode + * (otherwise return 0) */ static u8 HTIOTActIsDisableEDCATurbo(struct ieee80211_device *ieee, u8 *PeerMacAddr) @@ -471,7 +480,8 @@ static u8 HTIOTActIsDisableEDCATurbo(struct ieee80211_device *ieee, } /* - *function: Check whether we need to use OFDM to sned MGNT frame for broadcom AP + *function: Check whether we need to use OFDM to sned MGNT frame for + * broadcom AP * input: struct ieee80211_network *network //current network we live * output: none * return: return 1 if true @@ -510,9 +520,9 @@ void HTResetIOTSetting(PRT_HIGH_THROUGHPUT pHTInfo) /* *function: Construct Capablility Element in Beacon... if HTEnable is turned on * input: struct ieee80211_device* ieee - * u8* posHTCap //pointer to store Capability Ele - * u8* len //store length of CE - * u8 IsEncrypt //whether encrypt, needed further + * u8* posHTCap //pointer to store Capability Ele + * u8* len //store length of CE + * u8 IsEncrypt //whether encrypt, needed further * output: none * return: none * notice: posHTCap can't be null and should be initialized before. @@ -551,7 +561,7 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u pCapELE->ShortGI20Mhz = 1; // We can receive Short GI!! pCapELE->ShortGI40Mhz = 1; // We can receive Short GI!! //DbgPrint("TX HT cap/info ele BW=%d SG20=%d SG40=%d\n\r", - //pCapELE->ChlWidth, pCapELE->ShortGI20Mhz, pCapELE->ShortGI40Mhz); + //pCapELE->ChlWidth, pCapELE->ShortGI20Mhz, pCapELE->ShortGI40Mhz); pCapELE->TxSTBC = 1; pCapELE->RxSTBC = 0; pCapELE->DelayBA = 0; // Do not support now!! @@ -612,19 +622,23 @@ void HTConstructCapabilityElement(struct ieee80211_device *ieee, u8 *posHTCap, u // IEEE80211_DEBUG_DATA(IEEE80211_DL_DATA | IEEE80211_DL_HT, posHTCap, *len -2); - //Print each field in detail. Driver should not print out this message by default + /* + * Print each field in detail. Driver should not print out this message + * by default + */ // HTDebugHTCapability(posHTCap, (u8*)"HTConstructCapability()"); } /* - *function: Construct Information Element in Beacon... if HTEnable is turned on + *function: Construct Information Element in Beacon... if HTEnable is turned on * input: struct ieee80211_device* ieee - * u8* posHTCap //pointer to store Information Ele - * u8* len //store len of - * u8 IsEncrypt //whether encrypt, needed further + * u8* posHTCap //pointer to store Information Ele + * u8* len //store len of + * u8 IsEncrypt //whether encrypt, needed further * output: none * return: none - * notice: posHTCap can't be null and be initialized before. only AP and IBSS sta should do this + * notice: posHTCap can't be null and be initialized before. + * Only AP and IBSS sta should do this */ void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *len, u8 IsEncrypt) { @@ -666,16 +680,17 @@ void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *le } /* - * According to experiment, Realtek AP to STA (based on rtl8190) may achieve best performance - * if both STA and AP set limitation of aggregation size to 32K, that is, set AMPDU density to 2 - * (Ref: IEEE 11n specification). However, if Realtek STA associates to other AP, STA should set - * limitation of aggregation size to 8K, otherwise, performance of traffic stream from STA to AP - * will be much less than the traffic stream from AP to STA if both of the stream runs concurrently - * at the same time. + * According to experiment, Realtek AP to STA (based on rtl8190) may achieve + * best performance if both STA and AP set limitation of aggregation size to + * 32K, that is, set AMPDU density to 2 (Ref: IEEE 11n specification). + * However, if Realtek STA associates to other AP, STA should set limitation of + * aggregation size to 8K, otherwise, performance of traffic stream from STA to + * AP will be much less than the traffic stream from AP to STA if both of the + * stream runs concurrently at the same time. * * Frame Format - * Element ID Length OUI Type1 Reserved - * 1 byte 1 byte 3 bytes 1 byte 1 byte + * Element ID Length OUI Type1 Reserved + * 1 byte 1 byte 3 bytes 1 byte 1 byte * * OUI = 0x00, 0xe0, 0x4c, * Type = 0x02 @@ -686,8 +701,8 @@ void HTConstructInfoElement(struct ieee80211_device *ieee, u8 *posHTInfo, u8 *le /* *function: Construct Information Element in Beacon... in RT2RT condition * input: struct ieee80211_device* ieee - * u8* posRT2RTAgg //pointer to store Information Ele - * u8* len //store len + * u8* posRT2RTAgg //pointer to store Information Ele + * u8* len //store len * output: none * return: none * notice: @@ -736,7 +751,7 @@ void HTConstructRT2RTAggElement(struct ieee80211_device *ieee, u8 *posRT2RTAgg, /* *function: Pick the right Rate Adaptive table to use * input: struct ieee80211_device* ieee - * u8* pOperateMCS //A pointer to MCS rate bitmap + * u8* pOperateMCS //A pointer to MCS rate bitmap * return: always we return true * notice: */ @@ -853,8 +868,9 @@ static u8 HTFilterMCSRate(struct ieee80211_device *ieee, u8 *pSupportMCS, // TODO: adjust our operational rate set according to our channel bandwidth, STBC and Antenna number /* - * TODO: fill suggested rate adaptive rate index and give firmware info using Tx command packet - * we also shall suggested the first start rate set according to our singal strength + * TODO: fill suggested rate adaptive rate index and give firmware info + * using Tx command packet we also shall suggested the first start rate + * set according to our singal strength */ HT_PickMCSRate(ieee, pOperateMCS); @@ -1013,7 +1029,8 @@ void HTOnAssocRsp(struct ieee80211_device *ieee) /* * Filter out unsupported HT rate for this AP * Update RATR table - * This is only for 8190 ,8192 or later product which using firmware to handle rate adaptive mechanism. + * This is only for 8190 ,8192 or later product which using firmware to + * handle rate adaptive mechanism. */ /* @@ -1050,7 +1067,9 @@ void HTSetConnectBwModeCallback(struct ieee80211_device *ieee); * input: struct ieee80211_device* ieee * output: none * return: none - * notice: This function is called when * (1) MPInitialization Phase * (2) Receiving of Deauthentication from AP + * notice: This function is called when + * * (1) MPInitialization Phase + * * (2) Receiving of Deauthentication from AP */ // TODO: Should this funciton be called when receiving of Disassociation? void HTInitializeHTInfo(struct ieee80211_device *ieee) @@ -1075,8 +1094,8 @@ void HTInitializeHTInfo(struct ieee80211_device *ieee) /* * CCK rate support * This flag is set to true to support CCK rate by default. - * It will be affected by "pHTInfo->bRegSuppCCK" and AP capabilities only when associate to - * 11N BSS. + * It will be affected by "pHTInfo->bRegSuppCCK" and AP capabilities + * only when associate to 11N BSS. */ pHTInfo->bCurSuppCCK = true; @@ -1140,7 +1159,8 @@ void HTInitializeBssDesc(PBSS_HT pBssHT) /* *function: initialize Bss HT structure(struct PBSS_HT) * input: struct ieee80211_device *ieee - * struct ieee80211_network *pNetwork //usually current network we are live in + * struct ieee80211_network *pNetwork //usually current network + * we are live in * output: none * return: none * notice: This function should ONLY be called before association @@ -1300,10 +1320,10 @@ void HTSetConnectBwMode(struct ieee80211_device *ieee, HT_CHANNEL_WIDTH Bandwidt pHTInfo->bSwBwInProgress = true; /* - * TODO: 2007.7.13 by Emily Wait 2000ms in order to guarantee that switching - * bandwidth is executed after scan is finished. It is a temporal solution - * because software should ganrantee the last operation of switching bandwidth - * is executed properlly. + * TODO: 2007.7.13 by Emily Wait 2000ms in order to guarantee that + * switching bandwidth is executed after scan is finished. It is a + * temporal solution because software should ganrantee the last + * operation of switching bandwidth is executed properlly. */ HTSetConnectBwModeCallback(ieee); -- 2.17.1