qtnfmac: pass sgi rate info flag to wireless core
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Fri, 5 Oct 2018 10:11:36 +0000 (10:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:23:10 +0000 (08:23 +0100)
[ Upstream commit d5657b709e2a92a0e581109010765d1d485580df ]

SGI should be passed to wireless core as a part of rate structure.
Otherwise wireless core performs incorrect rate calculation when
SGI is enabled in hardware but not reported to host.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/quantenna/qtnfmac/commands.c

index 4206886b110ce1429d867d9c807cdb12923e56f9..ed087bbc6f6313bd34f9d00d2a84e79694698f0e 100644 (file)
@@ -485,6 +485,9 @@ qtnf_sta_info_parse_rate(struct rate_info *rate_dst,
                rate_dst->flags |= RATE_INFO_FLAGS_MCS;
        else if (rate_src->flags & QLINK_STA_INFO_RATE_FLAG_VHT_MCS)
                rate_dst->flags |= RATE_INFO_FLAGS_VHT_MCS;
+
+       if (rate_src->flags & QLINK_STA_INFO_RATE_FLAG_SHORT_GI)
+               rate_dst->flags |= RATE_INFO_FLAGS_SHORT_GI;
 }
 
 static void