]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Apr 2020 07:54:26 +0000 (09:54 +0200)
commit53a2ceab24efa905d29a1ddee5c35c848d95c549
tree9d742c8b081a3ffef0f6239204b381aaabe833ec
parentee3bb3b0b17a5a8d1733e8631a62eb1d1f348ec1
mac80211: fix channel switch trigger from unknown mesh peer

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>
net/mac80211/mesh.c