staging: r8188eu: max_rx_ampdu_factor is always MAX_AMPDU_FACTOR_64K
authorMichael Straube <straube.linux@gmail.com>
Fri, 28 Jan 2022 11:54:42 +0000 (12:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Jan 2022 12:56:24 +0000 (13:56 +0100)
commitfd5285ba0a184cd7dfad690eacef2b41e2332b5d
treebb5c4b8ebcb5187b8948f1a7f401c9f3d12b2dd8
parentbd0861f513b1c434c27713ebac02d3322a5d0b46
staging: r8188eu: max_rx_ampdu_factor is always MAX_AMPDU_FACTOR_64K

The local variable max_rx_ampdu_factor in rtw_restructure_ht_ie() and
issue_action_BA() is always set to MAX_AMPDU_FACTOR_64K. Remove the
variable from both functions and use MAX_AMPDU_FACTOR_64K directly.

The case HW_VAR_MAX_RX_AMPDU_FACTOR in GetHalDefVar8188EUsb() is now
unused and can be removed.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220128115445.6606-4-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h
drivers/staging/r8188eu/include/wifi.h