rtlwifi: rtl8821ae: setup 8812ae RFE according to device type
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 17 Apr 2017 00:32:07 +0000 (19:32 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 26 Apr 2017 08:58:03 +0000 (11:58 +0300)
commit46cfa2148e7371c537efff1a1c693e58f523089d
treea3bf54e5c0fb3d30465b1f78df55271fecb1a277
parent7acedaf5c4355f812cfef883ac28bf15f7d9205e
rtlwifi: rtl8821ae: setup 8812ae RFE according to device type

Current channel switch implementation sets 8812ae RFE reg value assuming
that device always has type 2.

Extend possible RFE types set and write corresponding reg values.

Source for new code is
http://dlcdnet.asus.com/pub/ASUS/wireless/PCE-AC51/DR_PCE_AC51_20232801152016.zip

Signed-off-by: Maxim Samoylov <max7255@gmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Cc: Yan-Hsuan Chuang <yhchuang@realtek.com>
Cc: Pkshih <pkshih@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>
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h