From dd5599f2ec56a3276aa217bd68ee51370f0eaf53 Mon Sep 17 00:00:00 2001 From: kimocoder Date: Sun, 12 Aug 2018 16:22:44 +0200 Subject: [PATCH 1/2] Enable new VHT MP HW TX MODE for 8812/8821au --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7a17c3e..0fa9b31 100755 --- a/Makefile +++ b/Makefile @@ -110,7 +110,7 @@ CONFIG_AP_WOWLAN = n ######### Notify SDIO Host Keep Power During Syspend ########## CONFIG_RTW_SDIO_PM_KEEP_POWER = y ###################### MP HW TX MODE FOR VHT ####################### -CONFIG_MP_VHT_HW_TX_MODE = n +CONFIG_MP_VHT_HW_TX_MODE = y ###################### Platform Related ####################### CONFIG_PLATFORM_I386_PC = y CONFIG_PLATFORM_ARM_RPI = n From 3a38ce9d1fc47ba7a0752274785e50732fc02ba3 Mon Sep 17 00:00:00 2001 From: fariouche Date: Sun, 12 Aug 2018 17:52:01 +0200 Subject: [PATCH 2/2] fixed crash when debug flag is set --- os_dep/linux/os_intfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 1bb7292..56aee39 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -1352,7 +1352,7 @@ static u8 is_rtw_ndev(struct net_device *ndev) static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state, void *ptr) { struct net_device *ndev; - _adapter *adapter = rtw_netdev_priv(ndev); + _adapter *adapter; if (ptr == NULL) return NOTIFY_DONE; @@ -1365,6 +1365,8 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state if (ndev == NULL) return NOTIFY_DONE; + + adapter = rtw_netdev_priv(ndev); if (!is_rtw_ndev(ndev)) return NOTIFY_DONE;