Date: Sun, 19 Aug 2012 18:14:24 +0200 From: Bernhard Schmidt <bschmidt@freebsd.org> To: =?utf-8?q?=E4=B9=94=E6=A5=9A?= <honestqiao@gmail.com> Cc: freebsd-wireless <freebsd-wireless@freebsd.org> Subject: Re: iwn0/wlan0 scan WPA2-PSK/AES as WEP on freebsd9 Message-ID: <201208191814.24880.bschmidt@freebsd.org> In-Reply-To: <CAMAY4VioeFC4ybHnfiYzroHBjcos4eSbknwt7yTRmaVuTb069w@mail.gmail.com> References: <201207300139326668335@gmail.com> <CAJ-VmonS=k9B1xDLk1f4W4Vws9bVj%2BgqpPzqBGe2%2Bn-RLz6zow@mail.gmail.com> <CAMAY4VioeFC4ybHnfiYzroHBjcos4eSbknwt7yTRmaVuTb069w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tuesday 14 August 2012 17:17:43 乔楚 wrote:
> /8/14 Adrian Chadd <adrian@freebsd.org>:
> > why is meshid reading from the HTINFO field
I doesn't, it tries to interpret the "AP channel Report" and
"Neighbor Repoort" elements as Mesh elements due to outdated
defines.
> I am also confused.
> How can we further debug?
Can you try attached diff? This change is in head and an MFC
should fix the issue.
--
Bernhard
[-- Attachment #2 --]
Index: sys/net80211/ieee80211.h
===================================================================
--- sys/net80211/ieee80211.h (revision 231186)
+++ sys/net80211/ieee80211.h (revision 231187)
@@ -709,27 +709,32 @@ enum {
IEEE80211_ELEMID_VENDOR = 221, /* vendor private */
/*
- * 802.11s IEs based on D3.03 spec and were not assigned by
- * ANA. Beware changing them because some of them are being
- * kept compatible with Linux.
+ * 802.11s IEs
+ * NB: On vanilla Linux still IEEE80211_ELEMID_MESHPEER = 55,
+ * but they defined a new with id 117 called PEER_MGMT.
+ * NB: complies with open80211
*/
- IEEE80211_ELEMID_MESHCONF = 51,
- IEEE80211_ELEMID_MESHID = 52,
- IEEE80211_ELEMID_MESHLINK = 35,
- IEEE80211_ELEMID_MESHCNGST = 36,
- IEEE80211_ELEMID_MESHPEER = 55,
- IEEE80211_ELEMID_MESHCSA = 38,
- IEEE80211_ELEMID_MESHTIM = 39,
- IEEE80211_ELEMID_MESHAWAKEW = 40,
- IEEE80211_ELEMID_MESHBEACONT = 41,
- IEEE80211_ELEMID_MESHPANN = 48,
- IEEE80211_ELEMID_MESHRANN = 49,
- IEEE80211_ELEMID_MESHPREQ = 68,
- IEEE80211_ELEMID_MESHPREP = 69,
- IEEE80211_ELEMID_MESHPERR = 70,
- IEEE80211_ELEMID_MESHPXU = 53,
- IEEE80211_ELEMID_MESHPXUC = 54,
- IEEE80211_ELEMID_MESHAH = 60, /* Abbreviated Handshake */
+ IEEE80211_ELEMID_MESHCONF = 113,
+ IEEE80211_ELEMID_MESHID = 114,
+ IEEE80211_ELEMID_MESHLINK = 115,
+ IEEE80211_ELEMID_MESHCNGST = 116,
+ IEEE80211_ELEMID_MESHPEER = 117,
+ IEEE80211_ELEMID_MESHCSA = 118,
+ IEEE80211_ELEMID_MESHTIM = 39, /* XXX: remove */
+ IEEE80211_ELEMID_MESHAWAKEW = 119,
+ IEEE80211_ELEMID_MESHBEACONT = 120,
+ /* 121-124 MMCAOP not implemented yet */
+ IEEE80211_ELEMID_MESHPANN = 125, /* XXX: is GANN now, not used */
+ IEEE80211_ELEMID_MESHRANN = 126,
+ /* 127 Extended Capabilities */
+ /* 128-129 reserved */
+ IEEE80211_ELEMID_MESHPREQ = 130,
+ IEEE80211_ELEMID_MESHPREP = 131,
+ IEEE80211_ELEMID_MESHPERR = 132,
+ /* 133-136 reserved */
+ IEEE80211_ELEMID_MESHPXU = 137,
+ IEEE80211_ELEMID_MESHPXUC = 138,
+ IEEE80211_ELEMID_MESHAH = 60, /* XXX: remove */
};
struct ieee80211_tim_ie {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208191814.24880.bschmidt>
