mac80211: recalculate min channel width on VHT opmode changes
authorJohannes Berg <johannes.berg@intel.com>
Thu, 20 Oct 2016 06:52:50 +0000 (08:52 +0200)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:05:45 +0000 (03:05 +0000)
commit2a4d8d2a41408c6fa960eba59b3e980145077ea5
tree8593fed9df7bb0a9e3084c093ad1332af73576a5
parentfa93343705ad9e77e656bb37f36623e5d341e4c0
mac80211: recalculate min channel width on VHT opmode changes

[ Upstream commit d2941df8fbd9708035d66d889ada4d3d160170ce ]

When an associated station changes its VHT operating mode this
can/will affect the bandwidth it's using, and consequently we
must recalculate the minimum bandwidth we need to use. Failure
to do so can lead to one of two scenarios:
 1) we use a too high bandwidth, this is benign
 2) we use a too narrow bandwidth, causing rate control and
    actual PHY configuration to be out of sync, which can in
    turn cause problems/crashes

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/iface.c
net/mac80211/rx.c
net/mac80211/vht.c