Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp912830iob; Wed, 4 May 2022 10:29:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyg2dGLzunqP/Ak3lnf+OJomvWtfKm+HzG8C1W7kXCMSH3f3O4BvWslij8UEYguSAjZ/pc X-Received: by 2002:a65:4848:0:b0:39c:c393:688c with SMTP id i8-20020a654848000000b0039cc393688cmr18275494pgs.376.1651685392537; Wed, 04 May 2022 10:29:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651685392; cv=none; d=google.com; s=arc-20160816; b=tjMNWTSmv7rIMSy8GKYq7Jq4Iiegs1hjmBZt4+oxhjHvcmr1MO6SIg+DGSt8mZ6LPu 4DsWeuZID7YLkASS0b0PS8MN1NDut1L2yzRdsH9IBbCg5qKzwTiRogU9+ia8kmYjm8q+ PyyyAo4YXlACyOmfAdjuXiGtgbiCXXn61thJcIhPEFg9ixPBz76iH6StmlSYdpyjBqNq WJLmW9UQtq7+4CAciKb3ZzbMqe3RgvZmQZ8LwUoTaaZXZ/xrQkaz7ffYTGCkNyRVLUfL 563KQW6HVBUh6PE4ihENddXcXItUx3d1jvX/Bx/1scY4sREdHh9XGPBPR8+5yKeW29mo 30vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BLQzsQAQEulbk5ygn5S9q0gNQ6kr1O2cVXrga4s4po8=; b=n9AYfUhvyXrBAENJmxKmN2CKQou1gfmN+3kRlfFLbHHJb2R9afSvJaYw+OfpRx5IsF cdRWSoFWgr+CbE5G12h8697z/gVLVFDXGOIT6bglmhqaODTrQoOEFaeaJy6OSaPa8zyQ 2b5rmqymLDBFlSLwQTG852RO2xpwsv+qTU4rj2L0NIuWlovLxnl1mN3dSS+hxpxalIdO q8u0RqD70jIt0JL/ozGB7/3i3gdSFio0PMgu9zeEIblsTerncv5/tRwV8cNqEx7lVp1x 466/mWHmEfiJhRXJT1MHx+SWDJNafm2BDu9b3ajfMdNmtcmTuU0U6Kila29ToiSaROId yy3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=gKXUm0di; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a63ef44000000b0039db9cfb7bdsi19503190pgk.735.2022.05.04.10.29.42; Wed, 04 May 2022 10:29:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=gKXUm0di; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238093AbiECPVc (ORCPT + 68 others); Tue, 3 May 2022 11:21:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238084AbiECPVa (ORCPT ); Tue, 3 May 2022 11:21:30 -0400 Received: from alexa-out-sd-01.qualcomm.com (alexa-out-sd-01.qualcomm.com [199.106.114.38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B95BE3A5F6 for ; Tue, 3 May 2022 08:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1651591077; x=1683127077; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=BLQzsQAQEulbk5ygn5S9q0gNQ6kr1O2cVXrga4s4po8=; b=gKXUm0diKV0YyY4lv49hUaB6E7fPq/kUGDIBgkaZO/9+c/f+PImsPn2+ 0aMeQ+7FZ2s3dqyn6byA+dciuff/fQX6/We/s6bqAprzg5tbjwvu5pnPI JIdReSMm4COQZx7Ed3hIHaZJWUGUKBxbaKQ1fUKuMUeg/7QkntrZRbOrH 8=; Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-01.qualcomm.com with ESMTP; 03 May 2022 08:17:57 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg01-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 May 2022 08:17:57 -0700 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 3 May 2022 08:17:57 -0700 Received: from [10.110.89.220] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.22; Tue, 3 May 2022 08:17:56 -0700 Message-ID: Date: Tue, 3 May 2022 08:17:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 1/2] ath11k: mac: fix too long line Content-Language: en-US To: Kalle Valo , CC: References: <20220503060415.24499-1-kvalo@kernel.org> From: Jeff Johnson In-Reply-To: <20220503060415.24499-1-kvalo@kernel.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-wireless@vger.kernel.org On 5/2/2022 11:04 PM, Kalle Valo wrote: > From: Kalle Valo > > checkpatch warns: > > drivers/net/wireless/ath/ath11k/mac.c:7760: line length of 91 exceeds 90 columns > > This was introduced by commit 046d2e7c50e3 ("mac80211: prepare sta handling for > MLO support"). > > Compile tested only. > > Signed-off-by: Kalle Valo > --- > drivers/net/wireless/ath/ath11k/mac.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) > > diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c > index c76cac5d6849..32fb0142124d 100644 > --- a/drivers/net/wireless/ath/ath11k/mac.c > +++ b/drivers/net/wireless/ath/ath11k/mac.c > @@ -7735,6 +7735,7 @@ ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_b > bool he_fixed_rate = false, vht_fixed_rate = false; > struct ath11k_peer *peer, *tmp; > const u16 *vht_mcs_mask, *he_mcs_mask; > + struct ieee80211_link_sta *deflink; > u8 vht_nss, he_nss; > bool ret = true; > > @@ -7757,13 +7758,16 @@ ath11k_mac_validate_vht_he_fixed_rate_settings(struct ath11k *ar, enum nl80211_b > spin_lock_bh(&ar->ab->base_lock); > list_for_each_entry_safe(peer, tmp, &ar->ab->peers, list) { > if (peer->sta) { > - if (vht_fixed_rate && (!peer->sta->deflink.vht_cap.vht_supported || > - peer->sta->deflink.rx_nss < vht_nss)) { > + deflink = &peer->sta->deflink; is there a reason to not declare deflink here? then its scope of definition would equal the scope of usage > + > + if (vht_fixed_rate && (!deflink->vht_cap.vht_supported || > + deflink->rx_nss < vht_nss)) { > ret = false; > goto out; > } > - if (he_fixed_rate && (!peer->sta->deflink.he_cap.has_he || > - peer->sta->deflink.rx_nss < he_nss)) { > + > + if (he_fixed_rate && (!deflink->he_cap.has_he || > + deflink->rx_nss < he_nss)) { > ret = false; > goto out; > } > > base-commit: f39af96d352dd4f36a4a43601ea90561e17e5ca6