mac80211: fix channel switch trigger from unknown mesh peer
authorTamizh chelvam <tamizhr@codeaurora.org>
Sat, 28 Mar 2020 13:53:24 +0000 (19:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 May 2020 06:48:58 +0000 (08:48 +0200)
commita719f7bf5c882db735f3c703dcf3230593bc072e
tree41f9b412bf8a68ad4683e03c50100367bfb26312
parent9178430df3f73976f5b9bab70d137e1da31aaad8
mac80211: fix channel switch trigger from unknown mesh peer

[ Upstream commit 93e2d04a1888668183f3fb48666e90b9b31d29e6 ]

Previously mesh channel switch happens if beacon contains
CSA IE without checking the mesh peer info. Due to that
channel switch happens even if the beacon is not from
its own mesh peer. Fixing that by checking if the CSA
originated from the same mesh network before proceeding
for channel switch.

Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
Link: https://lore.kernel.org/r/1585403604-29274-1-git-send-email-tamizhr@codeaurora.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh.c