OSDN Git Service

mac80211: mesh: fix HWMP sequence numbering to follow standard
authorYuan-Chi Pang <fu3mo6goo@gmail.com>
Wed, 29 Aug 2018 01:30:08 +0000 (09:30 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:52:10 +0000 (08:52 +0200)
commitdd23c326d63a4383dfe0668781830f3353a3a9b9
tree9dc5ef6302910bceb1c1f788fb7d148cd88f467b
parent880b5a109a50a8a15ff355de2f64e91bc9d8710c
mac80211: mesh: fix HWMP sequence numbering to follow standard

[ Upstream commit 1f631c3201fe5491808df143d8fcba81b3197ffd ]

IEEE 802.11-2016 14.10.8.3 HWMP sequence numbering says:
If it is a target mesh STA, it shall update its own HWMP SN to
maximum (current HWMP SN, target HWMP SN in the PREQ element) + 1
immediately before it generates a PREP element in response to a
PREQ element.

Signed-off-by: Yuan-Chi Pang <fu3mo6goo@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mesh_hwmp.c