Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1551501ybb; Thu, 26 Mar 2020 02:59:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtpLK1imJoprsLZQwaZ51lThRrVSDJYf8n7/aAMUyNYjpnUNIgdmW/IMrcaqcIb0u5rreTY X-Received: by 2002:a05:6830:19ee:: with SMTP id t14mr5969432ott.287.1585216776861; Thu, 26 Mar 2020 02:59:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585216776; cv=none; d=google.com; s=arc-20160816; b=CTUAibGUIcSXPxwILkWGVqUq8DxQC2RnP4N2gS24sKSys0q5bg9//jOEIZMRJj36fD L5yP+/mFZyyNJp6OCyTMaqiK8XXCNxJ64UBpPkABkTo4CwLIzY1gvff2LWyXxPJZE5pK L0kWEmdbTo1Lj6plyewzmpwJTBMCQn8FIIoCuO+ulLVEeQIEWbsdQ6rPRmiXxdhh+k2I L3XDg341neS/00s33DNvvigh3xgJYgzVFDq9jkNS94om0d2SU+byloaOJ5VxLKQitKdo mIAyVobjy6UFgFeBcBggLxMPqusV1yeIAsRlxvaZin7qJAzuqmTJGk1HL8kUHaM56+mT wNzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:user-agent:cc:to :references:in-reply-to:from:subject:content-transfer-encoding :mime-version:dmarc-filter:dkim-signature; bh=QzM855rs5LMFz/JxZbe1l1lDacKdVQUuIt7ztjoVwIA=; b=m02WkpWOYr5Rc2urHMy3x3SprClCTlwOskfqrRol//E0Zoh1fVnDFfdet7xrpgNCDB mbB9tPsXOIOnGWvL9LRwgWzal31Ed/O5rYLW3C3/bC/0khvmUphXdP5ScySn3AM9ThGH 0ex8+yiwYJZK7qgY3LcG4P4lZS5q74vDkXgvlbxba9sUNo4fk3Mv7X43FlBsDx808cEm A371e9PiEHDa96z6zsQSbXTcQYi+OC264xho36BUUuO1zdrWKa71TWKRMQSzfgNzOkg6 h9+U3QPlx8rcnp7aWtYu37F984DMZCYdco3eYJ2JW1L3Kj0y83AyGTnZZtmxNEcrIkAn kb1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OenWvSOz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 f18si870814ooj.15.2020.03.26.02.59.24; Thu, 26 Mar 2020 02:59:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OenWvSOz; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbgCZJ7S (ORCPT + 99 others); Thu, 26 Mar 2020 05:59:18 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:26382 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727697AbgCZJ7R (ORCPT ); Thu, 26 Mar 2020 05:59:17 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1585216756; h=Date: Message-Id: Cc: To: References: In-Reply-To: From: Subject: Content-Transfer-Encoding: MIME-Version: Content-Type: Sender; bh=QzM855rs5LMFz/JxZbe1l1lDacKdVQUuIt7ztjoVwIA=; b=OenWvSOzfJD3PNicz71E8lSgCFGSd501XwuUclWNevaplUUfRKjT4rxV/c4r8jbjZ9xoC8/U 9ZmkZRrFziJ+s3AWyZigN3wHjfQ9WffRqSqwVwc1Dlsea+zWMfPUQLwAgV8qqNp+g5lKi089 fNu0t5n1C2lpU4pxIiGA0vq8Tjc= X-Mailgun-Sending-Ip: 104.130.122.27 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e7c7ceb.7fb70ee2fc38-smtp-out-n01; Thu, 26 Mar 2020 09:59:07 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id ACE80C43637; Thu, 26 Mar 2020 09:59:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.5 required=2.0 tests=ALL_TRUSTED,MISSING_DATE, MISSING_MID,SPF_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 13B82C433F2; Thu, 26 Mar 2020 09:59:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 13B82C433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] ath10k: enable VHT160 and VHT80+80 modes From: Kalle Valo In-Reply-To: <1585148169-2320-1-git-send-email-ssreeela@codeaurora.org> References: <1585148169-2320-1-git-send-email-ssreeela@codeaurora.org> To: Sowmiya Sree Elavalagan Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Lei Wang , Sebastian Gottschall , Rick Wu , Sowmiya Sree Elavalagan User-Agent: pwcli/0.0.0-git (https://github.com/kvalo/pwcli/) Python/2.7.12 Message-Id: <20200326095907.ACE80C43637@smtp.codeaurora.org> Date: Thu, 26 Mar 2020 09:59:07 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sowmiya Sree Elavalagan wrote: > From: Lei Wang > > Set right channel frequencies in VHT160 mode according to the VHT160 > interoperability workaround added as part of IEEE Std 802.11™-2016 in > "Table 9-252—VHT Operation Information subfields", band_center_freq2 > corresponds to CCFS1 in Table 9-253. Previous implementation > (band_center_freq2 = 0 for VHT160) is only deprecated. > > Enable VHT80+80 mode and set the proper peer RX nss value for VHT160 and > VHT80+80 mode. > > Based on patches by Sebastian Gottschall: > > https://lkml.kernel.org/r/20180704095444.662-1-s.gottschall@dd-wrt.com > > https://lkml.kernel.org/r/20180704120519.6479-1-s.gottschall@dd-wrt.com > > Tested: qca9984 with firmware ver 10.4-3.10-00047 > > Co-developed-by: Sebastian Gottschall > Signed-off-by: Sebastian Gottschall > Co-developed-by: Rick Wu > Signed-off-by: Rick Wu > Signed-off-by: Lei Wang > Signed-off-by: Sowmiya Sree Elavalagan Fails to build on GCC 8.1. Did you test this? In file included from ./include/asm-generic/bug.h:5, from ./arch/x86/include/asm/bug.h:83, from ./include/linux/bug.h:5, from ./include/net/mac80211.h:16, from drivers/net/wireless/ath/ath10k/mac.h:10, from drivers/net/wireless/ath/ath10k/mac.c:8: In function 'ath10k_peer_assoc_h_vht', inlined from 'ath10k_peer_assoc_prepare' at drivers/net/wireless/ath/ath10k/mac.c:2790:2: ./include/linux/compiler.h:350:38: error: call to '__compiletime_assert_2631' declared with attribute error: BUILD_BUG_ON failed: ((((((~(((0UL)))) - ((((1UL))) << (3)) + 1) & (~(((0UL))) >> (64 - 1 - (5))))) + (1ULL << (__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (3)) + 1) & (~(((0UL))) >> (64 - 1 - (5))))) - 1))) & ((((((~(((0UL)))) - ((((1UL))) << (3)) + 1) & (~(((0UL))) >> (64 - 1 - (5))))) + (1ULL << (__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (3)) + 1) & (~(((0UL))) >> (64 - 1 - (5))))) - 1))) - 1)) != 0 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ ./include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert' prefix ## suffix(); \ ^~~~~~ ./include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ ./include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^~~~~~~~~~~~~~~~ ./include/linux/bitfield.h:81:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath10k/mac.c:2631:4: note: in expansion of macro 'FIELD_PREP' FIELD_PREP(WMI_PEER_NSS_80_80MHZ_MASK, (rx_nss - 1)); ^~~~~~~~~~ ./include/linux/compiler.h:350:38: error: call to '__compiletime_assert_2627' declared with attribute error: BUILD_BUG_ON failed: ((((((~(((0UL)))) - ((((1UL))) << (0)) + 1) & (~(((0UL))) >> (64 - 1 - (2))))) + (1ULL << (__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (0)) + 1) & (~(((0UL))) >> (64 - 1 - (2))))) - 1))) & ((((((~(((0UL)))) - ((((1UL))) << (0)) + 1) & (~(((0UL))) >> (64 - 1 - (2))))) + (1ULL << (__builtin_ffsll((((~(((0UL)))) - ((((1UL))) << (0)) + 1) & (~(((0UL))) >> (64 - 1 - (2))))) - 1))) - 1)) != 0 _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^ ./include/linux/compiler.h:331:4: note: in definition of macro '__compiletime_assert' prefix ## suffix(); \ ^~~~~~ ./include/linux/compiler.h:350:2: note: in expansion of macro '_compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __LINE__) ^~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^~~~~~~~~~~~~~~~~~ ./include/linux/bitfield.h:49:3: note: in expansion of macro 'BUILD_BUG_ON_MSG' BUILD_BUG_ON_MSG(__builtin_constant_p(_val) ? \ ^~~~~~~~~~~~~~~~ ./include/linux/bitfield.h:81:3: note: in expansion of macro '__BF_FIELD_CHECK' __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ ^~~~~~~~~~~~~~~~ drivers/net/wireless/ath/ath10k/mac.c:2627:4: note: in expansion of macro 'FIELD_PREP' FIELD_PREP(WMI_PEER_NSS_160MHZ_MASK, (rx_nss - 1)); ^~~~~~~~~~ make[5]: *** [drivers/net/wireless/ath/ath10k/mac.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [drivers/net/wireless/ath/ath10k] Error 2 make[3]: *** [drivers/net/wireless/ath] Error 2 make[2]: *** [drivers/net/wireless] Error 2 make[1]: *** [drivers/net] Error 2 make: *** [drivers] Error 2 Patch set to Changes Requested. -- https://patchwork.kernel.org/patch/11458023/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches