From 3269f5d9d9237876ffd2acb4b324f98e0311252f Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Sat, 7 May 2016 19:04:49 +0100 Subject: [PATCH] RTL8812AU: Fix AP timeout and disable power saving (backport) --- .../patches/RTL8812AU-05-fix-AP-timeout.patch | 23 +++++++++++++++++++ .../RTL8812AU-06-disable-power-saving.patch | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 packages/linux-drivers/RTL8812AU/patches/RTL8812AU-05-fix-AP-timeout.patch create mode 100644 packages/linux-drivers/RTL8812AU/patches/RTL8812AU-06-disable-power-saving.patch diff --git a/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-05-fix-AP-timeout.patch b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-05-fix-AP-timeout.patch new file mode 100644 index 0000000000..089d4f25b8 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-05-fix-AP-timeout.patch @@ -0,0 +1,23 @@ +From 4037784fc342dc81c71f7b950f4f5d94c0c21e5c Mon Sep 17 00:00:00 2001 +From: Sam Nazarko +Date: Tue, 8 Sep 2015 18:36:02 +0100 +Subject: [PATCH] Fix potential issue for timeout when connecting to an AP. + +Signed-off-by: Sam Nazarko +--- + include/rtw_mlme_ext.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/rtw_mlme_ext.h b/include/rtw_mlme_ext.h +index d1d5894..7dd78ad 100644 +--- a/include/rtw_mlme_ext.h ++++ b/include/rtw_mlme_ext.h +@@ -27,7 +27,7 @@ + // So, this driver tried to extend the dwell time for each scanning channel. + // This will increase the chance to receive the probe response from SoftAP. + +-#define SURVEY_TO (100) ++#define SURVEY_TO (0) + #define REAUTH_TO (300) //(50) + #define REASSOC_TO (300) //(50) + //#define DISCONNECT_TO (3000) diff --git a/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-06-disable-power-saving.patch b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-06-disable-power-saving.patch new file mode 100644 index 0000000000..390637d4f2 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-06-disable-power-saving.patch @@ -0,0 +1,23 @@ +From b68705a507c47dc2ff2cc6121830af315fbcdc83 Mon Sep 17 00:00:00 2001 +From: Sam Nazarko +Date: Sat, 11 Jul 2015 02:31:07 +0100 +Subject: [PATCH] Disable power saving by default + +Signed-off-by: Sam Nazarko +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index e97fbbf..7981e59 100644 +--- a/Makefile ++++ b/Makefile +@@ -36,7 +36,7 @@ CONFIG_SDIO_HCI = n + CONFIG_GSPI_HCI = n + + CONFIG_MP_INCLUDED = y +-CONFIG_POWER_SAVING = y ++CONFIG_POWER_SAVING = n + CONFIG_USB_AUTOSUSPEND = n + CONFIG_HW_PWRP_DETECTION = n + CONFIG_WIFI_TEST = n