Message ID | 1516776157-9694-3-git-send-email-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | None | expand |
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)
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@canonical.com> --- ubuntu/rtl8822be/os_dep/linux/ioctl_cfg80211.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)