]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh_plink: handle confirm frames with new plid
authorBob Copeland <me@bobcopeland.com>
Sat, 28 Jun 2014 20:35:25 +0000 (16:35 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Aug 2014 09:12:55 +0000 (11:12 +0200)
commit7503bbd20f9c8d84289ab01b70d1b3d68d01e32f
treeab068067daf2b32b9ae47bf7fc4f42adc49819af
parent5d3ae660e5497d97f3579642501049538566b448
mac80211: mesh_plink: handle confirm frames with new plid

The 802.11 standard says when processing a plink confirm
frame:

"If the peerLinkID in the mesh peering instance has not been
set, the Local Link ID field of the Mesh Peering Confirm
request shall be copied into the peerLinkID in the mesh
peering instance."

We were only doing this when receiving an open peering frame,
but it could happen that the open frame gets lost and so we
should handle this case rather than rejecting the confirm and
failing the whole peering process.

Reported-by: Yu Niiro <yu.niiro@gmail.com>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c