]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211: fix OBSS PD min and max offset validation
authorRajkumar Manoharan <rmanohar@codeaurora.org>
Mon, 28 Sep 2020 07:28:10 +0000 (00:28 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Sep 2020 13:05:46 +0000 (15:05 +0200)
commit99a3fcc693aeb464892c6e3e9791386d86cac0d4
treede41e20bde632dc70fb37263b953de2091859076
parent3f0a67152a02b183a45cdcb29729f477f7c5ba97
nl80211: fix OBSS PD min and max offset validation

The SRG min and max offset won't present when SRG Information Present of
SR control field of Spatial Reuse Parameter Set element set to 0. Per
spec. IEEE802.11ax D7.0, SRG OBSS PD Min Offset ≤ SRG OBSS PD Max
Offset. Hence fix the constrain check to allow same values in both
offset and also call appropriate nla_get function to read the values.

Fixes: 8582d7f37d2d ("cfg80211: add support for parsing OBBS_PD attributes")
Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
Link: https://lore.kernel.org/r/1601278091-20313-1-git-send-email-rmanohar@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c