staging: r8188eu: exit if beacon is not from our bss
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Nov 2022 16:01:26 +0000 (17:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Dec 2022 12:28:59 +0000 (13:28 +0100)
commit32634359a9c3d70cbf01af0ae87b27d8c0e1ebe3
tree6b9ac7483d8ed0b638153d6e2c1f1dc11336471a
parent02b51d08ec3a0f476c8b1537faa46e35e87e5ce0
staging: r8188eu: exit if beacon is not from our bss

Do not process an incoming beacon message in the OnBeacon function if the
beacon was sent by a base station other than the one to which we're
connected.

This patch does not modify the behaviour of the code. It reverts the if
condition and returns if the beacon should not be processed. This is
simpler than wrapping the entire processing into a large if clause.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20221126160129.178697-8-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c