]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtw88: remove unused variable 'in_lps'
authorYan-Hsuan Chuang <yhchuang@realtek.com>
Fri, 20 Dec 2019 09:21:52 +0000 (17:21 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:38:09 +0000 (17:38 +0200)
Unused, will not be used neither, because the hardware/firmware
can only support one vif for LPS currnetly. If there's more than
one vif, than driver will never enter LPS. So remove it.

Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/mac80211.c
drivers/net/wireless/realtek/rtw88/main.h

index 1150e42539a9aa9a791e84db0b1c489783de7718..c8be4b4a93717b583a3bb98cf509ec4b38a82b21 100644 (file)
@@ -158,7 +158,6 @@ static int rtw_ops_add_interface(struct ieee80211_hw *hw,
        rtwvif->stats.rx_unicast = 0;
        rtwvif->stats.tx_cnt = 0;
        rtwvif->stats.rx_cnt = 0;
-       rtwvif->in_lps = false;
        memset(&rtwvif->bfee, 0, sizeof(struct rtw_bfee));
        rtwvif->conf = &rtw_vif_port[port];
        rtw_txq_init(rtwdev, vif->txq);
index 0c9bac08ebf7aaf4d5f076c05c53f059e4feb74e..107b17c86f9f5a9f36ddee11fc7f0520625f5788 100644 (file)
@@ -747,7 +747,6 @@ struct rtw_vif {
        const struct rtw_vif_port *conf;
 
        struct rtw_traffic_stats stats;
-       bool in_lps;
 
        struct rtw_bfee bfee;
 };