From owner-freebsd-current@freebsd.org Fri Apr 2 03:45:44 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2FBD45C07AF; Fri, 2 Apr 2021 03:45:44 +0000 (UTC) (envelope-from 1051244836@qq.com) Received: from qq.com (out203-205-221-173.mail.qq.com [203.205.221.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FBQtp1JZDz3klW; Fri, 2 Apr 2021 03:45:37 +0000 (UTC) (envelope-from 1051244836@qq.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1617335130; bh=B+SbxIPHVeTguoO4z/NDIRBDVVYVYR5A8xyZEktGG7I=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=o9RfVSF2Kg3xu12jRIZzsfMqUeLxs2BvKdHLxtZEj+jAeTugYWzuu3ABHmyTEKGzY hgDCkhWUEGd81gLBXrUyHQiYIa2bCwiOoETMAB3dV127mfil6kau63K87soHtP8Mew K+Az0lcQu/tO+H5pQJ03MDKao8ZkmGwDzsegLBJA= Received: from [192.168.3.157] ([116.199.115.143]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id B5D34AF6; Fri, 02 Apr 2021 11:45:29 +0800 X-QQ-mid: xmsmtpt1617335129t8fjy9d1o Message-ID: X-QQ-XMAILINFO: Nzo3x+YytyEuYH/cX939GIwLohx37z9Yq244UlNKqiVbT186NXxvfomS9CMk+j WCQRnl/C3X3u6yWpLrVacTA/yb0mBRxhFggUv3q+Dq1v5yIm3B0Vd4OmUP2AQA5OvPkqbXed9a8U RWsI6Odpxyhd2u/xRiUcbu/qfVC1N46NPKijgzgj4OxloD+5ZGouh4xG+ZDIB8yHhQjvHN0C2gqa a+cZqXyvreTeqt5NY5aS74IGoMqtu2gWefOsI2ebDdi4W/HNY8ql3JHPS688kYXM+GaB7UrPrqlk Seeh8rpa9/eNPr/B6eIELaqu28PV0pFdq/h7vGcyP69WZ/9Mjk/UzhoPD/UfOQ4LMUHnIMV7iIen TibSEaqC0aC5626EdVyTiND4ixLKFWnK/a3uHaCo6DvqEEnP3poMSma7F2VIGBdUjQEQ9FBl7VZG pAnTLv6EAI0pwbOKI+P8dmf/fiMBw3HFZ2SQVEvayfxuEK0hlwr4L5E3vRMzFuJR1z8ClNPdvnsk OD5BlzUNfD9Ry/nf++a5TpvFyQzDlBmsu/9ZwIKTNXoSgbMQnbamFfq4ZE7y5bQpZWFIwbdaQuww UO81zgkncBAUIhdVxHeIOLeoyEHUOv6GBMTZQCj7sHptWMPU43IsNKp34G6XxBWr5QudpIOGkzt1 AKhPW0TfQunKkg2tgvmI30rrA1V0YUamv0wgtgR15zQ6KU1c3RN8mvNC6GjphRzT5xt28fLU25Wm iHpt7RRzD5NvhUuPqIm5VI5O1fHjYD5LUyn49Mo9QWAzc= Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Correct net80211 channel flag. From: qcwap <1051244836@qq.com> In-Reply-To: Date: Fri, 2 Apr 2021 11:44:57 +0800 Cc: freebsd-wireless , freebsd-current Content-Transfer-Encoding: quoted-printable X-OQ-MSGID: References: To: Adrian Chadd X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4FBQtp1JZDz3klW X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=qq.com header.s=s201512 header.b=o9RfVSF2; dmarc=pass (policy=none) header.from=qq.com; spf=pass (mx1.freebsd.org: domain of 1051244836@qq.com designates 203.205.221.173 as permitted sender) smtp.mailfrom=1051244836@qq.com X-Spamd-Result: default: False [-6.50 / 15.00]; FREEMAIL_FROM(0.00)[qq.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:203.205.221.0/24]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[qq.com:+]; DMARC_POLICY_ALLOW(-0.50)[qq.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[qq.com]; ASN(0.00)[asn:132203, ipnet:203.205.220.0/23, country:CN]; RBL_DBL_DONT_QUERY_IPS(0.00)[203.205.221.173:from]; DWL_DNSWL_NONE(0.00)[qq.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[qq.com:s=s201512]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[203.205.221.173:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[203.205.221.173:from]; WHITELIST_SPF_DKIM(-3.00)[qq.com:d:+,qq.com:s:+]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-wireless,freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Apr 2021 03:45:44 -0000 Well, I see. I am newly to freebsd, thanks for your answering.=20 I had tried using this section of code and found these flags are not = satisfied, after changing them, I can negotiate VHT80, VHT160 fine with = iwm, so I pointed out this problem. I am also wondering what's the badly = wrong of you said in draft VHT implementation? thanks zxystd > 2021=E5=B9=B43=E6=9C=8830=E6=97=A5 =E4=B8=8A=E5=8D=881:26=EF=BC=8CAdrian= Chadd =E5=86=99=E9=81=93=EF=BC=9A >=20 > hm! >=20 > On Mon, 29 Mar 2021 at 08:02, qcwap <1051244836@qq.com> wrote: >>=20 >> This patch corrects ieee80211_vht_get_vhtcap_ie for 160/80P80 channel = width recognition. >>=20 >> diff --git a/sys/net80211/ieee80211.h b/sys/net80211/ieee80211.h >> index 86ab1459cca..76c43629b33 100644 >> --- a/sys/net80211/ieee80211.h >> +++ b/sys/net80211/ieee80211.h >> @@ -811,9 +811,9 @@ struct ieee80211_ie_vht_operation { >> #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK 0x0000000C >> #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK_S 2 >> #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_NONE 0 >> -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160MHZ 1 >> -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160_80P80MHZ 2 >> -#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_RESERVED 3 >> +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160MHZ 4 >> +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_160_80P80MHZ 8 >> +#define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_RESERVED 16 >>=20 >> #define IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_IS_160MHZ(_vhtcaps) = \ >> (_IEEE80211_MASKSHIFT(_vhtcaps, = IEEE80211_VHTCAP_SUPP_CHAN_WIDTH_MASK) >=3D \ >=20 >=20 > This is the flag change from the draft 11ac spec to the released 11ac > spec, right? >=20 > I remember they needed to change the flags because existing draft > implementations got the 80+80/160MHz negotiation really badly wrong in > some interop places... >=20 >=20 > -adrian >=20 >>=20 >> _______________________________________________ >> freebsd-current@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to = "freebsd-current-unsubscribe@freebsd.org" >=20