diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-12-09 14:06:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-01 17:29:08 +0100 |
commit | 1cd8a5d24477c308c9e6f3bb1a8ce61fca1ed411 (patch) | |
tree | 1bbba1cdeb9d91b2468a4f6c9c0f0ebcfe6bbf46 /include/linux | |
parent | 45809ba049fb35949483580d497ab65c521d3223 (diff) | |
download | linux-stable-1cd8a5d24477c308c9e6f3bb1a8ce61fca1ed411.tar.gz linux-stable-1cd8a5d24477c308c9e6f3bb1a8ce61fca1ed411.tar.bz2 linux-stable-1cd8a5d24477c308c9e6f3bb1a8ce61fca1ed411.zip |
mt76: connac: introduce MCU_CE_CMD macro
commit 680a2ead741ad9b479a53adf154ed5eee74d2b9a upstream.
Similar to MCU_EXT_CMD, introduce MCU_CE_CMD for CE commands
Stable kernel notes:
Upstream commit 547224024579 (mt76: connac: introduce MCU_UNI_CMD macro,
2021-12-09) introduced a bug by removing MCU_UNI_PREFIX, but not
updating MCU_CMD_MASK accordingly, so when commands are compared in
mt7921_mcu_parse_response() one has the extra bit __MCU_CMD_FIELD_UNI
set and the comparison fails:
if (mcu_cmd != event->cid)
if (20001 != 1)
The fix was sneaked by in the next commit 680a2ead741a (mt76: connac:
introduce MCU_CE_CMD macro, 2021-12-09):
- int mcu_cmd = cmd & MCU_CMD_MASK;
+ int mcu_cmd = FIELD_GET(__MCU_CMD_FIELD_ID, cmd);
But it was never merged into linux-stable.
We need either both commits, or none.
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions