mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
imx6/RTL8812AU: compile with Linux 3.14
I assume something was backported in solidrun's 3.14-1.0.x-mx6-sr
This commit is contained in:
parent
869ad58384
commit
da45c02681
@ -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)
|
Loading…
x
Reference in New Issue
Block a user