staging: rtl8192e: Remove variable ForcedAMSDUMode
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Sun, 10 Dec 2023 15:26:44 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 12:35:21 +0000 (13:35 +0100)
ForcedAMSDUMode is set to 1 and then never evaluated.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/ae8ea27e2c3708754b798f09ba43ed50a24b8a55.1702212003.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl819x_HT.h
drivers/staging/rtl8192e/rtl819x_HTProc.c

index d249062e7b66aab46188dc72d382842d7ebd258c..670affe9d57bf6fdc6c5e5548cd1fddd385f884a 100644 (file)
@@ -115,7 +115,6 @@ struct rt_hi_throughput {
        u8 current_mpdu_density;
        u8 forced_ampdu_factor;
        u8 forced_mpdu_density;
-       enum ht_aggre_mode ForcedAMSDUMode;
        u8 forced_short_gi;
        u8 current_op_mode;
        u8 self_mimo_ps;
index 0a5885d6c0a05a30c0b4af40a94df4034e7e4db0..bedee290e7f592c7a0f69b7ffeeca71bd67b9fc2 100644 (file)
@@ -513,7 +513,6 @@ void HTOnAssocRsp(struct rtllib_device *ieee)
                                              pPeerHTCap->MPDUDensity);
        if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) {
                ht_info->current_ampdu_enable = false;
-               ht_info->ForcedAMSDUMode = HT_AGG_FORCE_ENABLE;
        }
        ht_info->cur_rx_reorder_enable = ht_info->reg_rx_reorder_enable;