Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> wrote: > > It's not used for anything. > > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> > --- > drivers/net/wireless/realtek/rtw88/main.c | 9 ++------- > drivers/net/wireless/realtek/rtw88/main.h | 1 - > 2 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtw88/main.c b/drivers/net/wireless/realtek/rtw88/main.c > index e91530ed05a0..6993f93c8f06 100644 > --- a/drivers/net/wireless/realtek/rtw88/main.c > +++ b/drivers/net/wireless/realtek/rtw88/main.c > @@ -1217,7 +1217,6 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si, > u8 wireless_set; > u8 bw_mode; > u8 rate_id; > - u8 rf_type = RF_1T1R; > u8 stbc_en = 0; > u8 ldpc_en = 0; > u8 tx_num = 1; > @@ -1302,13 +1301,10 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si, > break; > } > > - if (sta->deflink.vht_cap.vht_supported && ra_mask & 0xffc00000) { > + if (sta->deflink.vht_cap.vht_supported && ra_mask & 0xffc00000) > tx_num = 2; > - rf_type = RF_2T2R; I guess this is to support SMPS dynamically at initial thought, but finally it is not necessary.