wifi: mac80211: don't clear DTIM period after setting it
authorJohannes Berg <johannes.berg@intel.com>
Thu, 15 Sep 2022 12:57:47 +0000 (14:57 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Oct 2022 13:24:24 +0000 (15:24 +0200)
commitcb04b5ef855c210a6e8e3e64fae9e2da9100f72e
treeff95f61ed8605d37ac7975f5cd5911d09b6f3cc9
parente406121e1860e7789ebfa0e1b6853e48dde8b879
wifi: mac80211: don't clear DTIM period after setting it

Fix the code that sets the DTIM period to always propagate it
into link->conf->dtim_period and not overwrite it, while still
preferring to set it from the beacon data if available.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c