1. 14 Feb, 2020 36 commits
  2. 13 Feb, 2020 1 commit
  3. 12 Feb, 2020 3 commits
    • Joe Perches's avatar
      rtw88: 8822[bc]: Make tables const, reduce data object size · d49f2c50
      Joe Perches authored
      Reduce the data size 2kb or 3kb by making tables const.
      Add const to pointer declarations to make compilation work too.
      
      (x86-64 defconfig)
      $ size drivers/net/wireless/realtek/rtw88/rtw8822?.o*
         text	   data	    bss	    dec	    hex	filename
        25054	    672	      8	  25734	   6486	drivers/net/wireless/realtek/rtw88/rtw8822b.o.new
        23870	   1872	      8	  25750	   6496	drivers/net/wireless/realtek/rtw88/rtw8822b.o.old
        53646	    828	      0	  54474	   d4ca	drivers/net/wireless/realtek/rtw88/rtw8822c.o.new
        52846	   1652	      0	  54498	   d4e2	drivers/net/wireless/realtek/rtw88/rtw8822c.o.old
      
      (x86-64 allyesconfig)
      $ size drivers/net/wireless/realtek/rtw88/rtw8822?.o*
         text	   data	    bss	    dec	    hex	filename
        45811	   6280	    128	  52219	   cbfb	drivers/net/wireless/realtek/rtw88/rtw8822b.o.new
        44211	   7880	    128	  52219	   cbfb	drivers/net/wireless/realtek/rtw88/rtw8822b.o.old
       100195	   8128	      0	 108323	  1a723	drivers/net/wireless/realtek/rtw88/rtw8822c.o.new
        98947	   9376	      0	 108323	  1a723	drivers/net/wireless/realtek/rtw88/rtw8822c.o.old
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      d49f2c50
    • Yan-Hsuan Chuang's avatar
      rtw88: disable TX-AMSDU on 2.4G band · 74c3d72c
      Yan-Hsuan Chuang authored
      Some tests shows that using AMSDU to aggregate TCP ACKs to specific
      APs will degrade the throughput on 2.4G band in 20MHz bandwidth
      (< 10 Mbps, should be ~100 Mbps for 2x2). Also found that there's
      barely no negative impact if we disable TX AMSDU on 2.4G to connect
      to other APs. So it seems like we can just tell mac80211 to not to
      aggregate MSDUs when transmitting on 2.4G band.
      
      Note that we still can TX AMSDU on 5G band and benefit from it by
      having 50 ~ 70 Mbps throughput improvement.
      Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
      Reviewed-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      74c3d72c
    • Chien-Hsun Liao's avatar
      rtw88: 8822c: modify rf protection setting · 9c714b7c
      Chien-Hsun Liao authored
      According to some experiments, the original RF register protection
      setting of 8822c cannot perfectly make sure that there is no hardware
      PI write (direct) during direct write. Modify the setting so that the
      hardware block of PI would be turned off via rtw8822c_rstb_3wire()
      during the direct write, to avoid RF register racing.
      
      Note that 8822b uses SIPI write (indirect), so 8822b does not
      have such problem.
      Signed-off-by: default avatarChien-Hsun Liao <ben.liao@realtek.com>
      Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
      Reviewed-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      9c714b7c