rtlwifi: btcoexist: Fix antenna selection code
authorLarry Finger <[email protected]>
Mon, 4 Sep 2017 17:51:34 +0000 (12:51 -0500)
committerKalle Valo <[email protected]>
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 <[email protected]>
Cc: Ping-Ke Shih <[email protected]>
Cc: Yan-Hsuan Chuang <[email protected]>
Cc: Birming Chiu <[email protected]>
Cc: Shaofu <[email protected]>
Cc: Steven Ting <[email protected]>
Cc: Stable <[email protected]> # 4.13+
Signed-off-by: Kalle Valo <[email protected]>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c