iwlwifi: mvm: check for short GI only for OFDM
authorSara Sharon <sara.sharon@intel.com>
Sun, 29 Oct 2017 08:46:39 +0000 (10:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:52:41 +0000 (14:52 +0100)
[ Upstream commit 4c59ff5a9a9c54cc26c807dc2fa6933f7e9fa4ef ]

This bit will be used in CCK to indicate short preamble.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/rx.c
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index 2d14a58..c73e4be 100644 (file)
@@ -439,7 +439,8 @@ void iwl_mvm_rx_rx_mpdu(struct iwl_mvm *mvm, struct napi_struct *napi,
                rx_status->bw = RATE_INFO_BW_160;
                break;
        }
-       if (rate_n_flags & RATE_MCS_SGI_MSK)
+       if (!(rate_n_flags & RATE_MCS_CCK_MSK) &&
+           rate_n_flags & RATE_MCS_SGI_MSK)
                rx_status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
        if (rate_n_flags & RATE_HT_MCS_GF_MSK)
                rx_status->enc_flags |= RX_ENC_FLAG_HT_GF;
index e2196dc..8ba8c70 100644 (file)
@@ -981,7 +981,9 @@ void iwl_mvm_rx_mpdu_mq(struct iwl_mvm *mvm, struct napi_struct *napi,
                rx_status->bw = RATE_INFO_BW_160;
                break;
        }
-       if (rate_n_flags & RATE_MCS_SGI_MSK)
+
+       if (!(rate_n_flags & RATE_MCS_CCK_MSK) &&
+           rate_n_flags & RATE_MCS_SGI_MSK)
                rx_status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
        if (rate_n_flags & RATE_HT_MCS_GF_MSK)
                rx_status->enc_flags |= RX_ENC_FLAG_HT_GF;