mac80211: Handle SMPS mode changes only in AP mode
authorIlan Peer <ilan.peer@intel.com>
Fri, 31 Jan 2020 11:12:53 +0000 (13:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 7 Feb 2020 11:47:30 +0000 (12:47 +0100)
commitc4d800dcc7c57837cca66638b54b1d8a09949f79
tree92600221e2e011cf1e2a84a05ecbb162b1a99933
parent85b27ef73419db8d59a5d685bc62113883ca9330
mac80211: Handle SMPS mode changes only in AP mode

According to IEEE802.11 specifications the SM power save field
in the HT capability IE and the HE extended capability IE is valid
only in (re)association frames and should be ignored otherwise.
Remove code paths that handled this also for non AP modes.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/20200131111300.891737-17-luca@coelho.fi
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/he.c
net/mac80211/ht.c
net/mac80211/rx.c