]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: 8821a: btcoexist: add comments to explain why if-else branches are identical
authorPing-Ke Shih <pkshih@realtek.com>
Thu, 6 May 2021 01:37:38 +0000 (09:37 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 13:36:44 +0000 (16:36 +0300)
commit4381e4d1e851d3169598be2e09bf99a891d682b9
treeea8950a5e030cdb8a4237fed4a0448d273c32146
parent649835a5b8760adb633fe269f2d7aa2ea08535f3
rtlwifi: 8821a: btcoexist: add comments to explain why if-else branches are identical

The coexistence programmers preserve the same code of branches
intentionally to fine tune performance easier, because bandwidth and RSSI
strength are highly related to coexistence performance. The basic rule of
performance tuning is to assign most time slot to BT for realtime
application, and WiFi uses remaining time slot but don't lower than low
bound.

Reported-by: Inigo Huguet <ihuguet@redhat.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210506013738.5943-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8821a2ant.c