Commit f77cf88b authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Remove variable ht_info->RT2RT_HT_Mode

Remove variable ht_info->RT2RT_HT_Mode as it is always set but never
evaluated.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b6253e56cdb346045a234d1f545d7ef92cdd220d.1702406712.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 584c18e2
...@@ -287,7 +287,6 @@ static void _rtl92e_update_beacon(void *data) ...@@ -287,7 +287,6 @@ static void _rtl92e_update_beacon(void *data)
if (ieee->ht_info->current_ht_support) if (ieee->ht_info->current_ht_support)
HT_update_self_and_peer_setting(ieee, net); HT_update_self_and_peer_setting(ieee, net);
ieee->ht_info->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time; ieee->ht_info->current_rt2rt_long_slot_time = net->bssht.bd_rt2rt_long_slot_time;
ieee->ht_info->RT2RT_HT_Mode = net->bssht.rt2rt_ht_mode;
_rtl92e_update_cap(dev, net->capability); _rtl92e_update_cap(dev, net->capability);
} }
......
...@@ -113,7 +113,6 @@ struct rt_hi_throughput { ...@@ -113,7 +113,6 @@ struct rt_hi_throughput {
u8 cur_tx_bw40mhz; u8 cur_tx_bw40mhz;
u8 sw_bw_in_progress; u8 sw_bw_in_progress;
u8 reg_rt2rt_aggregation; u8 reg_rt2rt_aggregation;
u8 RT2RT_HT_Mode;
u8 current_rt2rt_aggregation; u8 current_rt2rt_aggregation;
u8 current_rt2rt_long_slot_time; u8 current_rt2rt_long_slot_time;
u8 sz_rt2rt_agg_buf[10]; u8 sz_rt2rt_agg_buf[10];
......
...@@ -540,7 +540,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee) ...@@ -540,7 +540,6 @@ void HTInitializeHTInfo(struct rtllib_device *ieee)
ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_aggregation = false;
ht_info->current_rt2rt_long_slot_time = false; ht_info->current_rt2rt_long_slot_time = false;
ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
ht_info->iot_peer = 0; ht_info->iot_peer = 0;
ht_info->iot_action = 0; ht_info->iot_action = 0;
...@@ -601,11 +600,9 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, ...@@ -601,11 +600,9 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
pNetwork->bssht.bd_rt2rt_aggregation; pNetwork->bssht.bd_rt2rt_aggregation;
ht_info->current_rt2rt_long_slot_time = ht_info->current_rt2rt_long_slot_time =
pNetwork->bssht.bd_rt2rt_long_slot_time; pNetwork->bssht.bd_rt2rt_long_slot_time;
ht_info->RT2RT_HT_Mode = pNetwork->bssht.rt2rt_ht_mode;
} else { } else {
ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_aggregation = false;
ht_info->current_rt2rt_long_slot_time = false; ht_info->current_rt2rt_long_slot_time = false;
ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
} }
ht_iot_peer_determine(ieee); ht_iot_peer_determine(ieee);
...@@ -621,7 +618,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee, ...@@ -621,7 +618,6 @@ void HTResetSelfAndSavePeerSetting(struct rtllib_device *ieee,
ht_info->current_ht_support = false; ht_info->current_ht_support = false;
ht_info->current_rt2rt_aggregation = false; ht_info->current_rt2rt_aggregation = false;
ht_info->current_rt2rt_long_slot_time = false; ht_info->current_rt2rt_long_slot_time = false;
ht_info->RT2RT_HT_Mode = (enum rt_ht_capability)0;
ht_info->iot_action = 0; ht_info->iot_action = 0;
ht_info->iot_ra_func = 0; ht_info->iot_ra_func = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment