Date: Mon, 25 Jul 2011 14:39:37 +0200 From: Monthadar Al Jaberi <monthadar@gmail.com> To: freebsd-net@freebsd.org Subject: Clarification request about mesh_parse_meshpeering_action() Message-ID: <CA%2BsBSoLCwQz%2B3seb8m=Nd-6YNd5MTxCYpJGjLJuzGScPR2vscg@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I hope someone can explain to me the following: in ieee80211_mesh.c in function mesh_parse_meshpeering_action(). The last argument uint8_t subtype is supposed to tell the type of Mesh Peer Managment Action frame. The weird thing is that inside the function subtype is checked if it is equal to IEEE80211_MESH_PEER_LINK_CLOSE and a bit lower in the code it is checked if it is not equal to IEEE80211_ACTION_MESHPEERING_CLOSE. These two enums represent two different things. One is an InformationElement while the other is an Action Frame that contains Information elements. How come? br, //Monthadar Al Jaberi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSoLCwQz%2B3seb8m=Nd-6YNd5MTxCYpJGjLJuzGScPR2vscg>