rtlwifi: btcoexist: Fix antenna selection code
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 4 Sep 2017 17:51:34 +0000 (12:51 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Sep 2017 12:55:56 +0000 (15:55 +0300)
commit6d622692836950b3c943776f84c4557ff6c02f3b
tree4d85aaa2a7622346039a4b26f5c353b6a09784f5
parenta33fcba6ec01efcca33b1afad91057020f247f15
rtlwifi: btcoexist: Fix antenna selection code

In commit 87d8a9f35202 ("rtlwifi: btcoex: call bind to setup btcoex"),
the code turns on a call to exhalbtc_bind_bt_coex_withadapter(). This
routine contains a bug that causes incorrect antenna selection for those
HP laptops with only one antenna and an incorrectly programmed EFUSE.
These boxes are the ones that need the ant_sel module parameter.

Fixes: 87d8a9f35202 ("rtlwifi: btcoex: call bind to setup btcoex")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Ping-Ke Shih <pkshih@realtek.com>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Birming Chiu <birming@realtek.com>
Cc: Shaofu <shaofu@realtek.com>
Cc: Steven Ting <steventing@realtek.com>
Cc: Stable <stable@vger.kernel.org> # 4.13+
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c