summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>2023-12-13 17:51:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-15 13:37:32 +0100
commitbd027a93da95e04e72cb13665503f0a2870b774b (patch)
tree89e6c70d3910177b6d022ae2dbb931875584a90a /drivers
parentstaging: rtl8192e: Remove unused variable nMaxAMSDUSize (diff)
downloadlinux-bd027a93da95e04e72cb13665503f0a2870b774b.tar.xz
linux-bd027a93da95e04e72cb13665503f0a2870b774b.zip
staging: rtl8192e: Remove constant variable self_mimo_ps
Remove constant variable self_mimo_ps and replace it at the place of usage with the value. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/9e1bec657ddb22eec54e441a4341ddbe4ed7568e.1702406712.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8192e/rtl819x_HT.h1
-rw-r--r--drivers/staging/rtl8192e/rtl819x_HTProc.c5
2 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h
index ff0eb0d01022..eb2cfeab97d6 100644
--- a/drivers/staging/rtl8192e/rtl819x_HT.h
+++ b/drivers/staging/rtl8192e/rtl819x_HT.h
@@ -112,7 +112,6 @@ struct rt_hi_throughput {
u8 forced_mpdu_density;
u8 forced_short_gi;
u8 current_op_mode;
- u8 self_mimo_ps;
u8 peer_mimo_ps;
enum ht_extchnl_offset CurSTAExtChnlOffset;
u8 cur_tx_bw40mhz;
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index ff606ece192d..8c2c4051bf42 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -77,9 +77,6 @@ void ht_update_default_setting(struct rtllib_device *ieee)
ht_info->ampdu_factor = 2;
ht_info->mpdu_density = 0;
- ht_info->self_mimo_ps = 3;
- if (ht_info->self_mimo_ps == 2)
- ht_info->self_mimo_ps = 3;
ieee->tx_dis_rate_fallback = 0;
ieee->tx_use_drv_assinged_rate = 0;
@@ -266,7 +263,7 @@ void ht_construct_capability_element(struct rtllib_device *ieee, u8 *pos_ht_cap,
else
pCapELE->ChlWidth = 1;
- pCapELE->MimoPwrSave = pHT->self_mimo_ps;
+ pCapELE->MimoPwrSave = 3;
pCapELE->GreenField = 0;
pCapELE->ShortGI20Mhz = 1;
pCapELE->ShortGI40Mhz = 1;