From fa77afbb17c7aab52a883bfecc480738582b20ea Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 13 Jul 2017 18:53:26 +0100 Subject: [PATCH] linux-drivers: bring up to 4.11.y spec --- packages/linux-drivers/RTL8188EU/package.mk | 2 +- packages/linux-drivers/RTL8192CU/package.mk | 7 +- .../RTL8192CU-add_device_ID_330d.patch | 11 - .../patches/RTL8192CU-add_more_products.patch | 22 -- .../patches/RTL8192CU-kernel-4.0.patch | 15 - .../patches/RTL8192CU-kernel-4.6.patch | 17 - .../patches/RTL8192CU-kernel-4.8.patch | 18 - packages/linux-drivers/RTL8192DU/package.mk | 2 +- .../patches/RTL8192DU-kernel-4.7.patch | 236 ------------ .../patches/RTL8192DU-kernel-4.8.patch | 18 - packages/linux-drivers/RTL8192EU/package.mk | 2 +- .../patches/RTL8192EU-kernel-4.7.patch | 346 ------------------ .../patches/RTL8192EU-kernel-4.8.patch | 18 - .../patches/RTL8812AU-kernel-4.11.patch | 27 ++ .../patches/bcm_sta-0008-kernel-4.11.patch | 68 ++++ ...0001_fix-build-with-linux-hardkernel.patch | 11 - ...0001-fix-build-with-linux-hardkernel.patch | 11 - 17 files changed, 102 insertions(+), 729 deletions(-) delete mode 100644 packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_more_products.patch delete mode 100644 packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.0.patch delete mode 100644 packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.6.patch delete mode 100644 packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.8.patch delete mode 100644 packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.7.patch delete mode 100644 packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch delete mode 100644 packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.7.patch delete mode 100644 packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.8.patch create mode 100644 packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch create mode 100644 packages/linux-drivers/bcm_sta/patches/bcm_sta-0008-kernel-4.11.patch delete mode 100644 projects/Odroid_C2/patches/RTL8192CU/RTL8192CU-0001_fix-build-with-linux-hardkernel.patch delete mode 100644 projects/Odroid_C2/patches/RTL8192EU/RTL8192EU-0001-fix-build-with-linux-hardkernel.patch diff --git a/packages/linux-drivers/RTL8188EU/package.mk b/packages/linux-drivers/RTL8188EU/package.mk index 671585cf7d..840af96168 100644 --- a/packages/linux-drivers/RTL8188EU/package.mk +++ b/packages/linux-drivers/RTL8188EU/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="RTL8188EU" -PKG_VERSION="ced2b64" +PKG_VERSION="18a5f33" PKG_ARCH="any" PKG_LICENSE="GPL" # realtek: PKG_SITE="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true" diff --git a/packages/linux-drivers/RTL8192CU/package.mk b/packages/linux-drivers/RTL8192CU/package.mk index bd4b8e5c77..4427fdb951 100644 --- a/packages/linux-drivers/RTL8192CU/package.mk +++ b/packages/linux-drivers/RTL8192CU/package.mk @@ -17,11 +17,12 @@ ################################################################################ PKG_NAME="RTL8192CU" -PKG_VERSION="v4.0.2_9000.20130911" +PKG_VERSION="76b54cd" PKG_ARCH="any" PKG_LICENSE="GPL" -PKG_SITE="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true" -PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.xz" +PKG_SITE="https://github.com/pvaret/rtl8192cu-fixes" +PKG_URL="$PKG_SITE/archive/$PKG_VERSION.tar.gz" +PKG_SOURCE_DIR="rtl8192cu-fixes-$PKG_VERSION*" PKG_DEPENDS_TARGET="toolchain linux" PKG_NEED_UNPACK="$LINUX_DEPENDS" PKG_SECTION="driver" diff --git a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_device_ID_330d.patch b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_device_ID_330d.patch index 681c03db7c..f318ddd448 100644 --- a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_device_ID_330d.patch +++ b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_device_ID_330d.patch @@ -10,14 +10,3 @@ diff -Naur RTL8192CU-v4.0.2_9000.20130911/hal/rtl8192c/usb/usb_halinit.c RTL8192 break; case EEPROM_CID_WHQL: /* -diff -Naur RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/usb_intf.c RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/usb_intf.c ---- RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/usb_intf.c 2013-09-11 05:56:55.000000000 +0200 -+++ RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/usb_intf.c 2014-04-01 20:19:23.936708369 +0200 -@@ -138,6 +138,7 @@ - {USB_DEVICE(0x2001, 0x3307)},/* D-Link - Cameo */ \ - {USB_DEVICE(0x2001, 0x330A)},/* D-Link - Alpha */ \ - {USB_DEVICE(0x2001, 0x3309)},/* D-Link - Alpha */ \ -+ {USB_DEVICE(0x2001, 0x330D)},/* D-Link - Alpha(?)*/ \ - {USB_DEVICE(0x0586, 0x341F)},/* Zyxel - Abocom */ \ - {USB_DEVICE(0x7392, 0x7822)},/* Edimax - Edimax */ \ - {USB_DEVICE(0x2019, 0xAB2B)},/* Planex - Abocom */ \ diff --git a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_more_products.patch b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_more_products.patch deleted file mode 100644 index 32552109a7..0000000000 --- a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-add_more_products.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -Naur RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/usb_intf.c RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/usb_intf.c ---- RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/usb_intf.c 2013-09-11 05:56:55.000000000 +0200 -+++ RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/usb_intf.c 2014-06-08 15:44:13.239381855 +0200 -@@ -96,6 +96,7 @@ - {USB_DEVICE(0x2019, 0xED17)},/* PCI - Edimax */ \ - {USB_DEVICE(0x0DF6, 0x0052)},/* Sitecom - Edimax */ \ - {USB_DEVICE(0x7392, 0x7811)},/* Edimax - Edimax */ \ -+ {USB_DEVICE(0x07B8, 0x8188)},/* Abocom - Abocom */ \ - {USB_DEVICE(0x07B8, 0x8189)},/* Abocom - Abocom */ \ - {USB_DEVICE(0x0EB0, 0x9071)},/* NO Brand - Etop */ \ - {USB_DEVICE(0x06F8, 0xE033)},/* Hercules - Edimax */ \ -@@ -144,8 +145,10 @@ - {USB_DEVICE(0x07B8, 0x8178)},/* Abocom - Abocom */ \ - {USB_DEVICE(0x07AA, 0x0056)},/* ATKK - Gemtek */ \ - {USB_DEVICE(0x4855, 0x0091)},/* - Feixun */ \ -+ {USB_DEVICE(0x050D, 0x11F2)},/* Belkin - Edimax */ \ - {USB_DEVICE(0x050D, 0x2102)},/* Belkin - Sercomm */ \ - {USB_DEVICE(0x050D, 0x2103)},/* Belkin - Edimax */ \ -+ {USB_DEVICE(0x050D, 0x21F2)},/* Belkin - Edimax */ \ - {USB_DEVICE(0x20F4, 0x624D)},/* TRENDnet */ \ - {USB_DEVICE(0x0DF6, 0x0061)},/* Sitecom - Edimax */ \ - {USB_DEVICE(0x0B05, 0x17AB)},/* ASUS - Edimax */ \ diff --git a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.0.patch b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.0.patch deleted file mode 100644 index 7b01db4685..0000000000 --- a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.0.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff -Naur RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/rtw_android.c RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/rtw_android.c ---- RTL8192CU-v4.0.2_9000.20130911/os_dep/linux/rtw_android.c 2013-09-11 05:56:55.000000000 +0200 -+++ RTL8192CU-v4.0.2_9000.20130911.patch/os_dep/linux/rtw_android.c 2015-04-04 20:20:23.779119031 +0200 -@@ -230,7 +230,11 @@ - { - int cmd_num; - for(cmd_num=0 ; cmd_num= KERNEL_VERSION(4, 0, 0)) -+ if(!strncasecmp(cmdstr , android_wifi_cmd_str[cmd_num], strlen(android_wifi_cmd_str[cmd_num])) ) -+#else - if(0 == strnicmp(cmdstr , android_wifi_cmd_str[cmd_num], strlen(android_wifi_cmd_str[cmd_num])) ) -+#endif - break; - - return cmd_num; diff --git a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.6.patch b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.6.patch deleted file mode 100644 index b6947605f8..0000000000 --- a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.6.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff -Naur a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c ---- a/os_dep/linux/os_intfs.c 2016-04-19 11:17:44.465411644 -0700 -+++ b/os_dep/linux/os_intfs.c 2016-04-19 11:23:24.742014169 -0700 -@@ -958,7 +958,13 @@ - return dscp >> 5; - } - -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0) -+static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb, -+ void *accel_priv, -+ select_queue_fallback_t fallback) -+#else - static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb) -+#endif - { - _adapter *padapter = rtw_netdev_priv(dev); - struct mlme_priv *pmlmepriv = &padapter->mlmepriv; diff --git a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.8.patch b/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.8.patch deleted file mode 100644 index 6ed92e7bfd..0000000000 --- a/packages/linux-drivers/RTL8192CU/patches/RTL8192CU-kernel-4.8.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -Naur a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c ---- a/os_dep/linux/ioctl_cfg80211.c 2016-09-11 01:43:17.669610692 +0100 -+++ b/os_dep/linux/ioctl_cfg80211.c 2016-09-11 01:45:09.268139751 +0100 -@@ -1789,7 +1789,14 @@ - } - else - { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) -+ struct cfg80211_scan_info info = { -+ .aborted = aborted -+ }; -+ cfg80211_scan_done(pwdev_priv->scan_request, &info); -+#else - cfg80211_scan_done(pwdev_priv->scan_request, aborted); -+#endif - } - - pwdev_priv->scan_request = NULL; diff --git a/packages/linux-drivers/RTL8192DU/package.mk b/packages/linux-drivers/RTL8192DU/package.mk index 8449f42b6e..4ae7984c49 100644 --- a/packages/linux-drivers/RTL8192DU/package.mk +++ b/packages/linux-drivers/RTL8192DU/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="RTL8192DU" -PKG_VERSION="9e7eb15" +PKG_VERSION="efc8508" PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="https://github.com/lwfinger/rtl8192du" diff --git a/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.7.patch b/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.7.patch deleted file mode 100644 index f1936d65b4..0000000000 --- a/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.7.patch +++ /dev/null @@ -1,236 +0,0 @@ -diff -Naur a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c ---- a/os_dep/ioctl_cfg80211.c 2016-06-23 13:12:55.005653163 +0100 -+++ b/os_dep/ioctl_cfg80211.c 2016-06-23 13:13:25.961839084 +0100 -@@ -47,7 +47,7 @@ - } - - #define CHAN2G(_channel, _freq, _flags) { \ -- .band = IEEE80211_BAND_2GHZ, \ -+ .band = NL80211_BAND_2GHZ, \ - .center_freq = (_freq), \ - .hw_value = (_channel), \ - .flags = (_flags), \ -@@ -56,7 +56,7 @@ - } - - #define CHAN5G(_channel, _flags) { \ -- .band = IEEE80211_BAND_5GHZ, \ -+ .band = NL80211_BAND_5GHZ, \ - .center_freq = 5000 + (5 * (_channel)), \ - .hw_value = (_channel), \ - .flags = (_flags), \ -@@ -155,19 +155,19 @@ - } - - static struct ieee80211_supported_band *rtw_spt_band_alloc( -- enum ieee80211_band band -+ enum nl80211_band band - ) - { - struct ieee80211_supported_band *spt_band = NULL; - int n_channels, n_bitrates; - int len; - -- if (band == IEEE80211_BAND_2GHZ) -+ if (band == NL80211_BAND_2GHZ) - { - n_channels = RTW_2G_CHANNELS_NUM; - n_bitrates = RTW_G_RATES_NUM; - } -- else if (band == IEEE80211_BAND_5GHZ) -+ else if (band == NL80211_BAND_5GHZ) - { - n_channels = RTW_5G_CHANNELS_NUM; - n_bitrates = RTW_A_RATES_NUM; -@@ -190,12 +190,12 @@ - spt_band->n_channels = n_channels; - spt_band->n_bitrates = n_bitrates; - -- if (band == IEEE80211_BAND_2GHZ) -+ if (band == NL80211_BAND_2GHZ) - { - rtw_2g_channels_init(spt_band->channels); - rtw_2g_rates_init(spt_band->bitrates); - } -- else if (band == IEEE80211_BAND_5GHZ) -+ else if (band == NL80211_BAND_5GHZ) - { - rtw_5g_channels_init(spt_band->channels); - rtw_5g_rates_init(spt_band->bitrates); -@@ -215,13 +215,13 @@ - if (!spt_band) - return; - -- if (spt_band->band == IEEE80211_BAND_2GHZ) -+ if (spt_band->band == NL80211_BAND_2GHZ) - { - size = sizeof(struct ieee80211_supported_band) - + sizeof(struct ieee80211_channel)*RTW_2G_CHANNELS_NUM - + sizeof(struct ieee80211_rate)*RTW_G_RATES_NUM; - } -- else if (spt_band->band == IEEE80211_BAND_5GHZ) -+ else if (spt_band->band == NL80211_BAND_5GHZ) - { - size = sizeof(struct ieee80211_supported_band) - + sizeof(struct ieee80211_channel)*RTW_5G_CHANNELS_NUM -@@ -290,12 +290,12 @@ - /* see 802.11 17.3.8.3.2 and Annex J - * there are overlapping channel numbers in 5GHz and 2GHz bands */ - -- if (band == IEEE80211_BAND_5GHZ) { -+ if (band == NL80211_BAND_5GHZ) { - if (chan >= 182 && chan <= 196) - return 4000 + chan * 5; - else - return 5000 + chan * 5; -- } else { /* IEEE80211_BAND_2GHZ */ -+ } else { /* NL80211_BAND_2GHZ */ - if (chan == 14) - return 2484; - else if (chan < 14) -@@ -335,9 +335,9 @@ - - channel = pnetwork->network.Configuration.DSConfig; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(wiphy, freq); - -@@ -435,9 +435,9 @@ - u16 channel = cur_network->network.Configuration.DSConfig; - - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(wiphy, freq); - #endif -@@ -2434,9 +2434,9 @@ - #else /* defined(RTW_USE_CFG80211_STA_EVENT) */ - channel = pmlmeext->cur_channel; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, flags); - #endif /* defined(RTW_USE_CFG80211_STA_EVENT) */ -@@ -2463,9 +2463,9 @@ - #else /* defined(RTW_USE_CFG80211_STA_EVENT) */ - channel = pmlmeext->cur_channel; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - pmgmt_frame = mgmt_buf; - pwlanhdr = (struct rtw_ieee80211_hdr *)pmgmt_frame; -@@ -3148,9 +3148,9 @@ - - indicate: - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, flags); - } -@@ -3172,9 +3172,9 @@ - - indicate: - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - rtw_cfg80211_rx_mgmt(padapter, freq, 0, frame, frame_len, flags); - } -@@ -3199,9 +3199,9 @@ - DBG_8192D("RTW_Rx:category(%u), action(%u)\n", category, action); - - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, flags); - } -@@ -3633,7 +3633,7 @@ - .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, - }; - --static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum ieee80211_band band, u8 rf_type) -+static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum nl80211_band band, u8 rf_type) - { - - #define MAX_BIT_RATE_40MHZ_MCS15 300 /* Mbps */ -@@ -3657,7 +3657,7 @@ - ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; - - /* -- *hw->wiphy->bands[IEEE80211_BAND_2GHZ] -+ *hw->wiphy->bands[NL80211_BAND_2GHZ] - *base on ant_num - *rx_mask: RX mask - *if rx_ant =1 rx_mask[0]=0xff;==>MCS0-MCS7 -@@ -3701,16 +3701,16 @@ - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */ - { -- bands = wiphy->bands[IEEE80211_BAND_2GHZ]; -+ bands = wiphy->bands[NL80211_BAND_2GHZ]; - if (bands) -- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_2GHZ, rf_type); -+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, NL80211_BAND_2GHZ, rf_type); - } - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */ - { -- bands = wiphy->bands[IEEE80211_BAND_5GHZ]; -+ bands = wiphy->bands[NL80211_BAND_5GHZ]; - if (bands) -- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_5GHZ, rf_type); -+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, NL80211_BAND_5GHZ, rf_type); - } - } - -@@ -3750,9 +3750,9 @@ - wiphy->n_cipher_suites = ARRAY_SIZE(rtw_cipher_suites); - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */ -- wiphy->bands[IEEE80211_BAND_2GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_2GHZ); -+ wiphy->bands[NL80211_BAND_2GHZ] = rtw_spt_band_alloc(NL80211_BAND_2GHZ); - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */ -- wiphy->bands[IEEE80211_BAND_5GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_5GHZ); -+ wiphy->bands[NL80211_BAND_5GHZ] = rtw_spt_band_alloc(NL80211_BAND_5GHZ); - - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) - wiphy->flags |= WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS; -@@ -3855,8 +3855,8 @@ - - pwdev_priv = wdev_to_priv(wdev); - -- rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]); -- rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]); -+ rtw_spt_band_free(wdev->wiphy->bands[NL80211_BAND_2GHZ]); -+ rtw_spt_band_free(wdev->wiphy->bands[NL80211_BAND_5GHZ]); - - wiphy_free(wdev->wiphy); - diff --git a/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch b/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch deleted file mode 100644 index c6f517ba64..0000000000 --- a/packages/linux-drivers/RTL8192DU/patches/RTL8192DU-kernel-4.8.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -Naur a/os_dep/ioctl_cfg80211.c b/os_dep/ioctl_cfg80211.c ---- a/os_dep/ioctl_cfg80211.c 2016-09-11 01:51:12.796375013 +0100 -+++ b/os_dep/ioctl_cfg80211.c 2016-09-11 01:52:39.942348529 +0100 -@@ -1425,7 +1425,14 @@ - } - else - { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) -+ struct cfg80211_scan_info info = { -+ .aborted = aborted -+ }; -+ cfg80211_scan_done(pwdev_priv->scan_request, &info); -+#else - cfg80211_scan_done(pwdev_priv->scan_request, aborted); -+#endif - } - - pwdev_priv->scan_request = NULL; diff --git a/packages/linux-drivers/RTL8192EU/package.mk b/packages/linux-drivers/RTL8192EU/package.mk index eb3413dc29..a7fdec04e4 100644 --- a/packages/linux-drivers/RTL8192EU/package.mk +++ b/packages/linux-drivers/RTL8192EU/package.mk @@ -17,7 +17,7 @@ ################################################################################ PKG_NAME="RTL8192EU" -PKG_VERSION="0c80da7" +PKG_VERSION="c23c613" PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="https://github.com/Mange/rtl8192eu-linux-driver" diff --git a/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.7.patch b/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.7.patch deleted file mode 100644 index eb2e92418b..0000000000 --- a/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.7.patch +++ /dev/null @@ -1,346 +0,0 @@ -diff -Naur a/os_dep/linux/wifi_regd.c b/os_dep/linux/wifi_regd.c ---- a/os_dep/linux/wifi_regd.c 2016-06-23 13:37:11.270350569 +0100 -+++ b/os_dep/linux/wifi_regd.c 2016-06-23 13:37:39.606515916 +0100 -@@ -143,7 +143,7 @@ - static void _rtw_reg_apply_beaconing_flags(struct wiphy *wiphy, - enum nl80211_reg_initiator initiator) - { -- enum ieee80211_band band; -+ enum nl80211_band band; - struct ieee80211_supported_band *sband; - const struct ieee80211_reg_rule *reg_rule; - struct ieee80211_channel *ch; -@@ -205,9 +205,9 @@ - u32 bandwidth = 0; - int r; - -- if (!wiphy->bands[IEEE80211_BAND_2GHZ]) -+ if (!wiphy->bands[NL80211_BAND_2GHZ]) - return; -- sband = wiphy->bands[IEEE80211_BAND_2GHZ]; -+ sband = wiphy->bands[NL80211_BAND_2GHZ]; - - /* - * If no country IE has been received always enable active scan -@@ -258,10 +258,10 @@ - struct ieee80211_channel *ch; - unsigned int i; - -- if (!wiphy->bands[IEEE80211_BAND_5GHZ]) -+ if (!wiphy->bands[NL80211_BAND_5GHZ]) - return; - -- sband = wiphy->bands[IEEE80211_BAND_5GHZ]; -+ sband = wiphy->bands[NL80211_BAND_5GHZ]; - - for (i = 0; i < sband->n_channels; i++) { - ch = &sband->channels[i]; -@@ -298,12 +298,12 @@ - /* see 802.11 17.3.8.3.2 and Annex J - * there are overlapping channel numbers in 5GHz and 2GHz bands */ - -- if (band == IEEE80211_BAND_5GHZ) { -+ if (band == NL80211_BAND_5GHZ) { - if (chan >= 182 && chan <= 196) - return 4000 + chan * 5; - else - return 5000 + chan * 5; -- } else { /* IEEE80211_BAND_2GHZ */ -+ } else { /* NL80211_BAND_2GHZ */ - if (chan == 14) - return 2484; - else if (chan < 14) -@@ -348,11 +348,11 @@ - if (channel <= 14) - freq = - rtw_ieee80211_channel_to_frequency(channel, -- IEEE80211_BAND_2GHZ); -+ NL80211_BAND_2GHZ); - else - freq = - rtw_ieee80211_channel_to_frequency(channel, -- IEEE80211_BAND_5GHZ); -+ NL80211_BAND_5GHZ); - - ch = ieee80211_get_channel(wiphy, freq); - if (ch) { -@@ -393,11 +393,11 @@ - if (channel <= 14) - freq = - rtw_ieee80211_channel_to_frequency(channel, -- IEEE80211_BAND_2GHZ); -+ NL80211_BAND_2GHZ); - else - freq = - rtw_ieee80211_channel_to_frequency(channel, -- IEEE80211_BAND_5GHZ); -+ NL80211_BAND_5GHZ); - - ch = ieee80211_get_channel(wiphy, freq); - if (ch) { -@@ -544,4 +544,4 @@ - - return _rtw_reg_notifier_apply(wiphy, request, reg); - } --#endif //CONFIG_IOCTL_CFG80211 -\ No newline at end of file -+#endif //CONFIG_IOCTL_CFG80211 -diff -Naur a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c ---- a/os_dep/linux/ioctl_cfg80211.c 2016-06-23 13:37:16.990383918 +0100 -+++ b/os_dep/linux/ioctl_cfg80211.c 2016-06-23 13:37:48.786569554 +0100 -@@ -74,7 +74,7 @@ - } - - #define CHAN2G(_channel, _freq, _flags) { \ -- .band = IEEE80211_BAND_2GHZ, \ -+ .band = NL80211_BAND_2GHZ, \ - .center_freq = (_freq), \ - .hw_value = (_channel), \ - .flags = (_flags), \ -@@ -83,7 +83,7 @@ - } - - #define CHAN5G(_channel, _flags) { \ -- .band = IEEE80211_BAND_5GHZ, \ -+ .band = NL80211_BAND_5GHZ, \ - .center_freq = 5000 + (5 * (_channel)), \ - .hw_value = (_channel), \ - .flags = (_flags), \ -@@ -200,18 +200,18 @@ - } - - struct ieee80211_supported_band *rtw_spt_band_alloc( -- enum ieee80211_band band -+ enum nl80211_band band - ) - { - struct ieee80211_supported_band *spt_band = NULL; - int n_channels, n_bitrates; - -- if(band == IEEE80211_BAND_2GHZ) -+ if(band == NL80211_BAND_2GHZ) - { - n_channels = RTW_2G_CHANNELS_NUM; - n_bitrates = RTW_G_RATES_NUM; - } -- else if(band == IEEE80211_BAND_5GHZ) -+ else if(band == NL80211_BAND_5GHZ) - { - n_channels = RTW_5G_CHANNELS_NUM; - n_bitrates = RTW_A_RATES_NUM; -@@ -235,12 +235,12 @@ - spt_band->n_channels = n_channels; - spt_band->n_bitrates = n_bitrates; - -- if(band == IEEE80211_BAND_2GHZ) -+ if(band == NL80211_BAND_2GHZ) - { - rtw_2g_channels_init(spt_band->channels); - rtw_2g_rates_init(spt_band->bitrates); - } -- else if(band == IEEE80211_BAND_5GHZ) -+ else if(band == NL80211_BAND_5GHZ) - { - rtw_5g_channels_init(spt_band->channels); - rtw_5g_rates_init(spt_band->bitrates); -@@ -260,13 +260,13 @@ - if(!spt_band) - return; - -- if(spt_band->band == IEEE80211_BAND_2GHZ) -+ if(spt_band->band == NL80211_BAND_2GHZ) - { - size = sizeof(struct ieee80211_supported_band) - + sizeof(struct ieee80211_channel)*RTW_2G_CHANNELS_NUM - + sizeof(struct ieee80211_rate)*RTW_G_RATES_NUM; - } -- else if(spt_band->band == IEEE80211_BAND_5GHZ) -+ else if(spt_band->band == NL80211_BAND_5GHZ) - { - size = sizeof(struct ieee80211_supported_band) - + sizeof(struct ieee80211_channel)*RTW_5G_CHANNELS_NUM -@@ -335,12 +335,12 @@ - /* see 802.11 17.3.8.3.2 and Annex J - * there are overlapping channel numbers in 5GHz and 2GHz bands */ - -- if (band == IEEE80211_BAND_5GHZ) { -+ if (band == NL80211_BAND_5GHZ) { - if (chan >= 182 && chan <= 196) - return 4000 + chan * 5; - else - return 5000 + chan * 5; -- } else { /* IEEE80211_BAND_2GHZ */ -+ } else { /* NL80211_BAND_2GHZ */ - if (chan == 14) - return 2484; - else if (chan < 14) -@@ -441,9 +441,9 @@ - DBG_871X("%s, got sr, but ssid mismatch, to remove this bss\n", __func__); - - if (pselect_network->Configuration.DSConfig <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(pselect_network->Configuration.DSConfig, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(wiphy, freq); - pselect_bss = cfg80211_get_bss(wiphy, NULL/*notify_channel*/, -@@ -475,9 +475,9 @@ - - channel = pnetwork->network.Configuration.DSConfig; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(wiphy, freq); - -@@ -617,9 +617,9 @@ - return _FALSE; - - if (pnetwork->Configuration.DSConfig <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(padapter->rtw_wdev->wiphy, freq); - bss = cfg80211_get_bss(padapter->rtw_wdev->wiphy, notify_channel, -@@ -771,9 +771,9 @@ - u16 channel = cur_network->network.Configuration.DSConfig; - - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - notify_channel = ieee80211_get_channel(wiphy, freq); - #endif -@@ -3400,9 +3400,9 @@ - #else /* defined(RTW_USE_CFG80211_STA_EVENT) */ - channel = pmlmeext->cur_channel; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - #ifdef COMPAT_KERNEL_RELEASE - rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC); -@@ -3445,9 +3445,9 @@ - #else /* defined(RTW_USE_CFG80211_STA_EVENT) */ - channel = pmlmeext->cur_channel; - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - pmgmt_frame = mgmt_buf; - pwlanhdr = (struct rtw_ieee80211_hdr *)pmgmt_frame; -@@ -4257,9 +4257,9 @@ - - indicate: - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE) - rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC); -@@ -4297,9 +4297,9 @@ - - indicate: - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE) - rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC); -@@ -4327,9 +4327,9 @@ - DBG_871X("RTW_Rx:category(%u), action(%u)\n", category, action); - - if (channel <= RTW_CH_MAX_2G_CHANNEL) -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_2GHZ); - else -- freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); -+ freq = rtw_ieee80211_channel_to_frequency(channel, NL80211_BAND_5GHZ); - - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)) || defined(COMPAT_KERNEL_RELEASE) - rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, GFP_ATOMIC); -@@ -5718,7 +5718,7 @@ - - } - --static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum ieee80211_band band, u8 rf_type) -+static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum nl80211_band band, u8 rf_type) - { - - #define MAX_BIT_RATE_40MHZ_MCS15 300 /* Mbps */ -@@ -5742,7 +5742,7 @@ - ht_cap->mcs.tx_params = IEEE80211_HT_MCS_TX_DEFINED; - - /* -- *hw->wiphy->bands[IEEE80211_BAND_2GHZ] -+ *hw->wiphy->bands[NL80211_BAND_2GHZ] - *base on ant_num - *rx_mask: RX mask - *if rx_ant =1 rx_mask[0]=0xff;==>MCS0-MCS7 -@@ -5787,16 +5787,16 @@ - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */ - { -- bands = wiphy->bands[IEEE80211_BAND_2GHZ]; -+ bands = wiphy->bands[NL80211_BAND_2GHZ]; - if(bands) -- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_2GHZ, rf_type); -+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, NL80211_BAND_2GHZ, rf_type); - } - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */ - { -- bands = wiphy->bands[IEEE80211_BAND_5GHZ]; -+ bands = wiphy->bands[NL80211_BAND_5GHZ]; - if(bands) -- rtw_cfg80211_init_ht_capab(&bands->ht_cap, IEEE80211_BAND_5GHZ, rf_type); -+ rtw_cfg80211_init_ht_capab(&bands->ht_cap, NL80211_BAND_5GHZ, rf_type); - } - - /* init regulary domain */ -@@ -5874,9 +5874,9 @@ - wiphy->n_cipher_suites = ARRAY_SIZE(rtw_cipher_suites); - - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11G) */ -- wiphy->bands[IEEE80211_BAND_2GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_2GHZ); -+ wiphy->bands[NL80211_BAND_2GHZ] = rtw_spt_band_alloc(NL80211_BAND_2GHZ); - /* if (padapter->registrypriv.wireless_mode & WIRELESS_11A) */ -- wiphy->bands[IEEE80211_BAND_5GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_5GHZ); -+ wiphy->bands[NL80211_BAND_5GHZ] = rtw_spt_band_alloc(NL80211_BAND_5GHZ); - - #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,38) && LINUX_VERSION_CODE < KERNEL_VERSION(3,0,0)) - wiphy->flags |= WIPHY_FLAG_SUPPORTS_SEPARATE_DEFAULT_KEYS; -@@ -6071,8 +6071,8 @@ - if (!wdev) - return; - -- rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]); -- rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]); -+ rtw_spt_band_free(wdev->wiphy->bands[NL80211_BAND_2GHZ]); -+ rtw_spt_band_free(wdev->wiphy->bands[NL80211_BAND_5GHZ]); - - wiphy_free(wdev->wiphy); - diff --git a/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.8.patch b/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.8.patch deleted file mode 100644 index 5de2869002..0000000000 --- a/packages/linux-drivers/RTL8192EU/patches/RTL8192EU-kernel-4.8.patch +++ /dev/null @@ -1,18 +0,0 @@ -diff -Naur a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c ---- a/os_dep/linux/ioctl_cfg80211.c 2016-09-11 01:54:30.184844740 +0100 -+++ b/os_dep/linux/ioctl_cfg80211.c 2016-09-11 01:55:58.426842518 +0100 -@@ -1891,7 +1891,14 @@ - } - else - { -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) -+ struct cfg80211_scan_info info = { -+ .aborted = aborted -+ }; -+ cfg80211_scan_done(pwdev_priv->scan_request, &info); -+#else - cfg80211_scan_done(pwdev_priv->scan_request, aborted); -+#endif - } - - pwdev_priv->scan_request = NULL; diff --git a/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch new file mode 100644 index 0000000000..ececf680d5 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch @@ -0,0 +1,27 @@ +From 14eb40c9bcbb68044361334d5f95a4f63ebc8775 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 13 Mar 2017 19:47:38 +0000 +Subject: [PATCH] RTL8812AU: Fix build for API changes in kernel 4.11 + +--- + include/osdep_service.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/include/osdep_service.h b/include/osdep_service.h +index 82e27c5..d866551 100644 +--- a/include/osdep_service.h ++++ b/include/osdep_service.h +@@ -20,6 +20,10 @@ + #ifndef __OSDEP_SERVICE_H_ + #define __OSDEP_SERVICE_H_ + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) ++#include ++#endif + + #define _FAIL 0 + #define _SUCCESS 1 +-- +2.7.4 + diff --git a/packages/linux-drivers/bcm_sta/patches/bcm_sta-0008-kernel-4.11.patch b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0008-kernel-4.11.patch new file mode 100644 index 0000000000..56fb51a95a --- /dev/null +++ b/packages/linux-drivers/bcm_sta/patches/bcm_sta-0008-kernel-4.11.patch @@ -0,0 +1,68 @@ +From 7e8dddb7a545bc5ba74336ef2aafed1c0b4ceee1 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 13 Mar 2017 20:48:44 +0000 +Subject: [PATCH 1/2] bcm_sta: Fix build for API changes in kernel 4.11 + +--- + x86-64/src/wl/sys/wl_cfg80211_hybrid.c | 4 ++++ + x86-64/src/wl/sys/wl_linux.c | 4 ++++ + 2 files changed, 8 insertions(+) + +diff --git a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c +index 7b606e0..76ef208 100644 +--- a/x86-64/src/wl/sys/wl_cfg80211_hybrid.c ++++ b/x86-64/src/wl/sys/wl_cfg80211_hybrid.c +@@ -26,6 +26,10 @@ + #include + #include + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) ++#include ++#endif ++ + #include + #include + #include +diff --git a/x86-64/src/wl/sys/wl_linux.c b/x86-64/src/wl/sys/wl_linux.c +index 0d05100..dca7c71 100644 +--- a/x86-64/src/wl/sys/wl_linux.c ++++ b/x86-64/src/wl/sys/wl_linux.c +@@ -26,6 +26,10 @@ + #include + #include + #include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) ++#include ++#endif ++ + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 14) + #include + #endif +-- +2.7.4 + + +From 1d066a57a682af0ac42b8d1c65bf7bd1984a54ca Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 13 Mar 2017 20:49:01 +0000 +Subject: [PATCH 2/2] bcm_sta: Remove usage of net_device last_rx member + +--- + x86-64/src/wl/sys/wl_linux.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/x86-64/src/wl/sys/wl_linux.c b/x86-64/src/wl/sys/wl_linux.c +index dca7c71..f3be019 100644 +--- a/x86-64/src/wl/sys/wl_linux.c ++++ b/x86-64/src/wl/sys/wl_linux.c +@@ -2919,7 +2919,6 @@ wl_monitor(wl_info_t *wl, wl_rxsts_t *rxsts, void *p) + if (skb == NULL) return; + + skb->dev = wl->monitor_dev; +- skb->dev->last_rx = jiffies; + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22) + skb_reset_mac_header(skb); + #else +-- +2.7.4 + diff --git a/projects/Odroid_C2/patches/RTL8192CU/RTL8192CU-0001_fix-build-with-linux-hardkernel.patch b/projects/Odroid_C2/patches/RTL8192CU/RTL8192CU-0001_fix-build-with-linux-hardkernel.patch deleted file mode 100644 index 99bbcb1ba9..0000000000 --- a/projects/Odroid_C2/patches/RTL8192CU/RTL8192CU-0001_fix-build-with-linux-hardkernel.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Naur a/core/rtw_br_ext.c b/core/rtw_br_ext.c ---- a/core/rtw_br_ext.c 2013-09-11 05:56:55.000000000 +0200 -+++ b/core/rtw_br_ext.c 2016-02-10 08:06:48.999417391 +0100 -@@ -51,6 +51,7 @@ - #include - #include - #include -+#include - #endif - #endif - diff --git a/projects/Odroid_C2/patches/RTL8192EU/RTL8192EU-0001-fix-build-with-linux-hardkernel.patch b/projects/Odroid_C2/patches/RTL8192EU/RTL8192EU-0001-fix-build-with-linux-hardkernel.patch deleted file mode 100644 index e94ddaa65e..0000000000 --- a/projects/Odroid_C2/patches/RTL8192EU/RTL8192EU-0001-fix-build-with-linux-hardkernel.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -Naur a/core/rtw_br_ext.c b/core/rtw_br_ext.c ---- a/core/rtw_br_ext.c 2016-01-18 10:56:14.000000000 -0800 -+++ b/core/rtw_br_ext.c 2016-04-08 00:55:50.276738518 -0700 -@@ -49,6 +49,7 @@ - #include - #include - #include -+#include - #endif - #endif -