rtlwifi: btcoexist: Fix breakage of ant_sel for rtl8723be
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 4 Sep 2017 17:51:33 +0000 (12:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2017 21:17:28 +0000 (14:17 -0700)
commit0af760ab388227360c0b2ef98468156c3779d41e
tree6dca67708d7770c997ab1c8812e604bbb5f1aac2
parent8004198bb025f1adef13e15ed249e8f7f29a415f
rtlwifi: btcoexist: Fix breakage of ant_sel for rtl8723be

commit a33fcba6ec01efcca33b1afad91057020f247f15 upstream.

In commit bcd37f4a0831 ("rtlwifi: btcoex: 23b 2ant: let bt transmit when
hw initialisation done"), there is an additional error when the module
parameter ant_sel is used to select the auxilary antenna. The error is
that the antenna selection is not checked when writing the antenna
selection register.

Fixes: bcd37f4a0831 ("rtlwifi: btcoex: 23b 2ant: let bt transmit when hw initialisation done")
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtc8723b2ant.c