092e77d948
Patches by Jes Sorensen: https://git.kernel.org/cgit/linux/kernel/git/jes/linux.git/ Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From d83a65b58e8626c9fab83e45bb7ec5aea9176504 Mon Sep 17 00:00:00 2001
|
|
From: Jes Sorensen <Jes.Sorensen@redhat.com>
|
|
Date: Fri, 22 Jul 2016 13:55:24 -0400
|
|
Subject: [PATCH] rtl8xxxu: Add dummy rtl8188e_set_tx_power()
|
|
|
|
To avoid crashing on launch, add a dummy set_tx_power() function for
|
|
8188e.
|
|
|
|
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
|
|
---
|
|
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
--- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
|
|
+++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8188e.c
|
|
@@ -283,6 +283,11 @@ static struct rtl8xxxu_rfregval rtl8188e
|
|
{0xff, 0xffffffff}
|
|
};
|
|
|
|
+static void
|
|
+rtl8188e_set_tx_power(struct rtl8xxxu_priv *priv, int channel, bool ht40)
|
|
+{
|
|
+}
|
|
+
|
|
static int rtl8188eu_parse_efuse(struct rtl8xxxu_priv *priv)
|
|
{
|
|
struct rtl8188eu_efuse *efuse = &priv->efuse_wifi.efuse8188eu;
|
|
@@ -1033,6 +1038,7 @@ struct rtl8xxxu_fileops rtl8188eu_fops =
|
|
.enable_rf = rtl8188e_enable_rf,
|
|
.disable_rf = rtl8188e_disable_rf,
|
|
.usb_quirks = rtl8188e_usb_quirks,
|
|
+ .set_tx_power = rtl8188e_set_tx_power,
|
|
.update_rate_mask = rtl8xxxu_gen2_update_rate_mask,
|
|
.report_connect = rtl8xxxu_gen2_report_connect,
|
|
.writeN_block_size = 128,
|