wifi: mac80211: check SSID in beacon
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Jun 2024 12:38:10 +0000 (14:38 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Jun 2024 08:22:10 +0000 (10:22 +0200)
commit9cc88678db5be1d67c865dbe60afb56867698301
tree73b9db3985969fb86d8bc3b8bc2979058eff128d
parent0b2d9d9aec2be212a28b7d14b5462c56d9adc3a3
wifi: mac80211: check SSID in beacon

Check that the SSID in beacons is correct, if it's not hidden
and beacon protection is enabled (otherwise there's no value).
If it doesn't match, disconnect.

Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240612143809.8b24a3d26a3d.I3e3ef31dbd2ec606be74d502a9d00dd9514c6885@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c