Skip to content

Commit 5ad4839

Browse files
Bitterblue SmithPing-Ke Shih
authored andcommitted
wifi: rtw88: Delete rf_type member of struct rtw_sta_info
It's not used for anything. Signed-off-by: Bitterblue Smith <[email protected]> Acked-by: Ping-Ke Shih <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 5b1b954 commit 5ad4839

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

drivers/net/wireless/realtek/rtw88/main.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,6 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si,
12171217
u8 wireless_set;
12181218
u8 bw_mode;
12191219
u8 rate_id;
1220-
u8 rf_type = RF_1T1R;
12211220
u8 stbc_en = 0;
12221221
u8 ldpc_en = 0;
12231222
u8 tx_num = 1;
@@ -1302,13 +1301,10 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si,
13021301
break;
13031302
}
13041303

1305-
if (sta->deflink.vht_cap.vht_supported && ra_mask & 0xffc00000) {
1304+
if (sta->deflink.vht_cap.vht_supported && ra_mask & 0xffc00000)
13061305
tx_num = 2;
1307-
rf_type = RF_2T2R;
1308-
} else if (sta->deflink.ht_cap.ht_supported && ra_mask & 0xfff00000) {
1306+
else if (sta->deflink.ht_cap.ht_supported && ra_mask & 0xfff00000)
13091307
tx_num = 2;
1310-
rf_type = RF_2T2R;
1311-
}
13121308

13131309
rate_id = get_rate_id(wireless_set, bw_mode, tx_num);
13141310

@@ -1319,7 +1315,6 @@ void rtw_update_sta_info(struct rtw_dev *rtwdev, struct rtw_sta_info *si,
13191315
si->bw_mode = bw_mode;
13201316
si->stbc_en = stbc_en;
13211317
si->ldpc_en = ldpc_en;
1322-
si->rf_type = rf_type;
13231318
si->sgi_enable = is_support_sgi;
13241319
si->vht_enable = is_vht_enable;
13251320
si->ra_mask = ra_mask;

drivers/net/wireless/realtek/rtw88/main.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,6 @@ struct rtw_sta_info {
757757
u8 mac_id;
758758
u8 rate_id;
759759
enum rtw_bandwidth bw_mode;
760-
enum rtw_rf_type rf_type;
761760
u8 stbc_en:2;
762761
u8 ldpc_en:2;
763762
bool sgi_enable;

0 commit comments

Comments
 (0)