1. 24 Jul, 2019 4 commits
    • Chris Chiu's avatar
      rtl8xxxu: Fix wifi low signal strength issue of RTL8723BU · 18e71468
      Chris Chiu authored
      The WiFi tx power of RTL8723BU is extremely low after booting. So
      the WiFi scan gives very limited AP list and it always fails to
      connect to the selected AP. This module only supports 1x1 antenna
      and the antenna is switched to bluetooth due to some incorrect
      register settings.
      
      Compare with the vendor driver https://github.com/lwfinger/rtl8723bu,
      we realized that the 8723bu's enable_rf() does the same thing as
      rtw_btcoex_HAL_Initialize() in vendor driver. And it by default
      sets the antenna path to BTC_ANT_PATH_BT which we verified it's
      the cause of the wifi weak tx power. The vendor driver will set
      the antenna path to BTC_ANT_PATH_PTA in the consequent btcoexist
      mechanism, by the function halbtc8723b1ant_PsTdma.
      
      This commit hand over the antenna control to PTA(Packet Traffic
      Arbitration), which compares the weight of bluetooth/wifi traffic
      then determine whether to continue current wifi traffic or not.
      After PTA take control, The wifi signal will be back to normal and
      the bluetooth scan can also work at the same time. However, the
      btcoexist still needs to be handled under different circumstances.
      If there's a BT connection established, the wifi still fails to
      connect until BT disconnected.
      Signed-off-by: default avatarChris Chiu <chiu@endlessm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      18e71468
    • Greg Kroah-Hartman's avatar
      rt2x00: no need to check return value of debugfs_create functions · 1dc24406
      Greg Kroah-Hartman authored
      When calling debugfs functions, there is no need to ever check the
      return value.  The function can work or not, but the code logic should
      never do something different based on this.
      
      Because we don't need to save the individual debugfs files and
      directories, remove the local storage of them and just remove the entire
      debugfs directory in a single call, making things a lot simpler.
      
      Cc: Stanislaw Gruszka <sgruszka@redhat.com>
      Cc: Helmut Schaa <helmut.schaa@googlemail.com>
      Cc: Kalle Valo <kvalo@codeaurora.org>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Acked-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      1dc24406
    • Soeren Moch's avatar
      rt2x00usb: remove unnecessary rx flag checks · 3b902fa8
      Soeren Moch authored
      In contrast to the TX path, there is no need to separately read the transfer
      status from the device after receiving RX data. Consequently, there is no
      real STATUS_PENDING RX processing queue entry state.
      Remove the unnecessary ENTRY_DATA_STATUS_PENDING flag checks from the RX path.
      Also remove the misleading comment about reading RX status from device.
      Suggested-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: default avatarSoeren Moch <smoch@web.de>
      Acked-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      3b902fa8
    • Enrico Weigelt's avatar
      rsi: return explicit error values · 231e83fd
      Enrico Weigelt authored
      Explicitly return constants instead of variable (and rely on
      it to be explicitly initialized), if the value is supposed
      to be fixed anyways. Align it with the rest of the driver,
      which does it the same way.
      Signed-off-by: default avatarEnrico Weigelt <info@metux.net>
      Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
      231e83fd
  2. 23 Jul, 2019 29 commits
  3. 22 Jul, 2019 7 commits