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)
commit6c6fa49649dc826b7ef81314324fe55cf1d0d954
treeab068067daf2b32b9ae47bf7fc4f42adc49819af
parent3918edb0e6a8b16c2866f4657d9fed41f9da562d
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