From da45c02681c0dede8735ecaca2fe2f50467faee2 Mon Sep 17 00:00:00 2001 From: Peter Vicman Date: Sun, 9 Oct 2016 13:58:54 +0200 Subject: [PATCH] imx6/RTL8812AU: compile with Linux 3.14 I assume something was backported in solidrun's 3.14-1.0.x-mx6-sr --- .../RTL8812AU-010-compile-3.14.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 projects/imx6/patches/RTL8812AU/RTL8812AU-010-compile-3.14.patch diff --git a/projects/imx6/patches/RTL8812AU/RTL8812AU-010-compile-3.14.patch b/projects/imx6/patches/RTL8812AU/RTL8812AU-010-compile-3.14.patch new file mode 100644 index 0000000000..b955621d8c --- /dev/null +++ b/projects/imx6/patches/RTL8812AU/RTL8812AU-010-compile-3.14.patch @@ -0,0 +1,36 @@ +--- a/os_dep/linux/ioctl_cfg80211.c 2016-10-04 15:18:32.405995229 +0200 ++++ b/os_dep/linux/ioctl_cfg80211.c 2016-10-04 15:18:37.653865585 +0200 +@@ -649,20 +649,16 @@ void rtw_cfg80211_ibss_indicate_connect( + struct wlan_network *cur_network = &(pmlmepriv->cur_network); + struct wireless_dev *pwdev = padapter->rtw_wdev; + struct cfg80211_bss *bss = NULL; +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) + struct wiphy *wiphy = pwdev->wiphy; + int freq = 2412; + struct ieee80211_channel *notify_channel; +-#endif + + DBG_871X(FUNC_ADPT_FMT"\n", FUNC_ADPT_ARG(padapter)); + +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) + freq = rtw_ch2freq(cur_network->network.Configuration.DSConfig); + + if (0) + DBG_871X("chan: %d, freq: %d\n", cur_network->network.Configuration.DSConfig, freq); +-#endif + + if (pwdev->iftype != NL80211_IFTYPE_ADHOC) + { +@@ -713,12 +709,8 @@ void rtw_cfg80211_ibss_indicate_connect( + DBG_871X_LEVEL(_drv_always_, FUNC_ADPT_FMT" BSS not found !!\n", FUNC_ADPT_ARG(padapter)); + } + //notify cfg80211 that device joined an IBSS +-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 15, 0)) + notify_channel = ieee80211_get_channel(wiphy, freq); + cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, notify_channel, GFP_ATOMIC); +-#else +- cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); +-#endif + } + + void rtw_cfg80211_indicate_connect(_adapter *padapter)