[linux-oem][PATCH 3/6] UBUNTU: SAUCE: RTL8822BE: Don't block disconnect event if kernel >= 4.2

Hui Wang hui.wang at canonical.com
Wed Jan 24 06:42:34 UTC 2018


BugLink: https://launchpad.net/bugs/1745081

This fix is got from Realtek, the description got from Realtek is:
[Bugfix][CFG80211] Don't block disconnect event if kernel >= 4.2

Signed-off-by: Hui Wang <hui.wang at canonical.com>
---
 ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h b/ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h
index 4ef82a7..ce8e6b3 100644
--- a/ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h
+++ b/ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h
@@ -17,7 +17,12 @@
 
 
 #ifndef RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT
-	#define RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT 0
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0))
+#define RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT 1
+#else
+#define RTW_CFG80211_ALWAYS_INFORM_STA_DISCONNECT_EVENT 0
+#endif
+
 #endif
 
 #if defined(RTW_USE_CFG80211_STA_EVENT)
-- 
2.7.4





More information about the kernel-team mailing list