]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X
authorDanek Duvall <duvall@comfychair.org>
Wed, 22 Aug 2018 23:01:04 +0000 (16:01 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 28 Aug 2018 09:08:59 +0000 (11:08 +0200)
commit8ad3bd46762d7fe528d7e64503ab918c8c84954d
tree189ed1df3e24b4b56933514039b320a1842cc9a1
parentdab6059ff1f9e5598bc69c0f194c4157e14008fe
mac80211: correct use of IEEE80211_VHT_CAP_RXSTBC_X

The mod mask for VHT capabilities intends to say that you can override
the number of STBC receive streams, and it does, but only by accident.
The IEEE80211_VHT_CAP_RXSTBC_X aren't bits to be set, but values (albeit
left-shifted).  ORing the bits together gets the right answer, but we
should use the _MASK macro here instead.

Signed-off-by: Danek Duvall <duvall@comfychair.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/main.c