rtlwifi: rtl8723be: Add antenna select module parameter
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 16 Mar 2016 18:33:34 +0000 (13:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:18:48 +0000 (18:18 -0700)
commitd967268c46f138c7e550e1d0ecd58cd79473d4a3
treee8edf61e956cda2517258cac9e04799b09b8cc15
parentaad56aa19257c76294a506f524328ad2cc2d455f
rtlwifi: rtl8723be: Add antenna select module parameter

commit c18d8f5095715c56bb3cd9cba64242542632054b upstream.

A number of new laptops have been delivered with only a single antenna.
In principle, this is OK; however, a problem arises when the on-board
EEPROM is programmed to use the other antenna connection. The option
of opening the computer and moving the connector is not always possible
as it will void the warranty in some cases. In addition, this solution
breaks the Windows driver when the box dual boots Linux and Windows.

A fix involving a new module parameter has been developed.  This commit
adds the new parameter and implements the changes needed for the driver.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/realtek/rtlwifi/rtl8723be/hw.c
drivers/net/wireless/realtek/rtlwifi/rtl8723be/sw.c
drivers/net/wireless/realtek/rtlwifi/wifi.h