]> asedeno.scripts.mit.edu Git - linux.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)
commit67d1ba8a6dc83d90cd58b89fa6cbf9ae35a0cf7f
tree189ed1df3e24b4b56933514039b320a1842cc9a1
parent8a54d8fc160e67ad485d95a0322ce1221f80770a
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