summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-06header: fix of_get_mac_address()Hauke Mehrtens
The behavior of of_get_mac_address() changed in kernel 5.2, it now returns an error code and not NULL in case of an error. This was changed in upstream kernel commit d01f449c008a ("of_net: add NVMEM support to of_get_mac_address") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06defconfig: update wifi defconfigHauke Mehrtens
This removes the removed driver CPTCFG_R8822BE and adds the newly added drivers CPTCFG_MT7603E, CPTCFG_MT7615E and CPTCFG_RTW88 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: Remove include/net/inet_frag.hHauke Mehrtens
The functions provided by include/net/inet_frag.h are not used by any code in backports any more and this file causes compile warnings with kernel 3.16. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06patches: rtw88: Add missing include on kernel 3.18Hauke Mehrtens
On kernel 3.18 linux/module.h is not indirectly included in this driver. On some other kernel version linux/interrupt.h is not indirectly included, but needed. This fixes some compile problems in the rtw88 driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06dependencies: Add MT7615E dependencyHauke Mehrtens
The MT76 driver does not compile on kernel < 4.2, also add such a dependency to the new driver MT7615E. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: add hrtimer_forward() and ns_to_ktime()Hauke Mehrtens
ktime_t was converted from the union to s64 in kernel 4.10. hrtimer_start() was already converted some time ago in backports, now mac80211_hwsim uses hrtimer_start() together with the newly added functions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: Make napi_complete_done() return boolHauke Mehrtens
In the current kernel napi_complete_done() returns a bool and this is now used by the mt76 driver. Try to backport this functionality by doing the check which makes the function return false already in backports. This was added in upstream kernel commit 364b6055738b ("net: busy-poll: return busypolling status to drivers") Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06patch: Remove usage of DMI_PRODUCT_SKUHauke Mehrtens
DMI_PRODUCT_SKU was added in kernel 4.18, do not use it on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: Add HRTIMER_MODE_{ABS,REL}_SOFTHauke Mehrtens
mac80211_hwsim uses HRTIMER_MODE_ABS_SOFT and HRTIMER_MODE_REL_SOFT now. These enum entries were added in commit 98ecadd4305d ("hrtimer: Add clock bases and hrtimer mode for softirq context") in kernel 4.16. This will execute the timers in hard interrupt context and not in soft interrupt context like intended. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: Add sdio_retune*() functionsHauke Mehrtens
The brcmfmac driver now uses new sdio_retune*() functions. They are added with kernel 5.2-rc6 and are backported to kernel 4.19.56 and 5.1.15 sdio_retune_hold_now() and sdio_retune_release() should work like in the upstream kernel, the implementation of mmc_retune_release() and mmc_retune_hold() was copied to backports into these functions. On kernel < 4.3 backporting this is not so easy, so just use an empty implementation there. It is not possible to backport sdio_retune_crc_disable() and sdio_retune_crc_enable() because they need an additional member in a structure, just add an empty implementation. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06header: Add backport-include/net/ipv6_stubs.hHauke Mehrtens
ipv6_stubs.h was added in kernel commit 3616d08bcbb5 ("ipv6: Move ipv6 stubs to a separate header file"). Most of its content is from include/net/addrconf.h, so include that file indirectly on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-07-06backport: Extend netlink parsing with strict validationJohannes Berg
This extends the backported netlink handling with strict parsing. the struct gen_ops now supports the validate member and does the validation inside the backport layer. This is needed to use backports with kernel 5.2. Signed-off-by: Johannes Berg <johannes.berg@intel.com> [Hauke: Remove nla_validate_nested()] [Hauke: Support struct genl_ops on older kernel versions] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-06-30patches: Make patches apply on top of kernel 5.2-rc6Hauke Mehrtens
The cordic.c file was moved and the driver from drivers/staging/rtlwifi/ was removed in mainline kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-06-27backport-include: add empty lockdep_map structure in lockdep.hArend van Spriel
include/linux/rhashtable.h now uses struct lockdep_map unconditionally which is fine for upstream as lockdep.h defines an empty lockdep_map structure if CONFIG_LOCKDEP is not set. However, that is only true since kernel 4.15 so adding such definition in our lockdep.h to cover older kernels. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
2019-06-27backport: check for failure when allocating ops in genetlinkLuca Coelho
We were not checking if the allocation failed in backport_genl_register_family(), which could lead to NULL pointer dereferences later. Fix that. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-06-27backport: rcupdate: add rcu_head_init and rcu_head_after_call_rcuArend van Spriel
Include static inline functions that were added by commit 74de6960c99d ("rcu: Provide functions for determining if call_rcu() has been invoked"). Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> [Activate on < 4.20 only] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-06-26patches: update select queue patchesArend van Spriel
The select queue parameters changed so the patches need to be updated as well. Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com> [Fix compile on kernel > 4.19] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Refresh patches on top of 5.1-rc2Hauke Mehrtens
No manual changes needed. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Build CONFIG_MT7603E only for kernel >= 4.2Hauke Mehrtens
The mt76 core driver makes use of struct page_frag_cache which was only added with kernel 4.2, deactivate all modules of the mt76 driver on older kernel versions. CONFIG_MT7603E was newly added in this kernel version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Add missing include for brcmfmacHauke Mehrtens
When building against kernel 4.8, 3.14 and older, brcmfmac failed because struct sk_buff was not declared in brcmfmac/bus.h. This is used in the brcmf_bus_ops.txdata() callback. I do not know why this was working before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Add smp_acquire__after_ctrl_dep()Hauke Mehrtens
smp_acquire__after_ctrl_dep() was introduced in kernel 4.8 in upstream Linux commit 33ac279677d ("locking/barriers: Introduce smp_acquire__after_ctrl_dep()") and is used by backports lib-refcount.c implementation now. This just adds the default implementation to backports. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: Add rhashtable_lookup_get_insert_fast()Hauke Mehrtens
rhashtable_lookup_get_insert_fast() was added in kernel 4.12 in Linux upstream commit f9fe1c12d12 ("rhashtable: Add rhashtable_lookup_get_insert_fast") It is now used by mac80211. For kernel < 4.9 we already backport the complete rhashtable implementation, so this is only needed for kernels more recent than 4.9. This is copied from upstreamn Linux kernel. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-03-28backports: update backport/backport-include/net/netlink.hAceLan Kao
Add new macros introduced from v5.1-rc1 23323289b154 netlink: reduce NLA_POLICY_NESTED{,_ARRAY} arguments v3: Fix v4.20 compilation error Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
2019-03-28backports: remove mt76.patchAceLan Kao
The patch patches/0013-fix-makefile-includes/mt76.patch was added in upstream Linux commit 85b7e2acd31b ("mt76: Add missing include of linux/module.h") which was added in v5.1-rc1 Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
2019-03-28backport: add atomic_fetch_add_unless()Luca Coelho
The iwlwifi driver now needs this function. Backport it. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-28backports: update iwlwifi pci device removal patch for v5.0Luca Coelho
The code surrounding the #ifdef we add has changed. Update the patch accordingly. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-28backports: genetlink: avoid NULL dereferenceJohannes Berg
If we fail to allocate extack, we fall back to the code path that tries to send an error *with* extack, but that will access our extack pointer. It also doesn't make sense, so just return an error back to netlink immediately and let it handle sending the error message to userspace. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-28backport: fix handling of nospec.h for 4.15.0 and 4.15.1Luca Coelho
The patch that introduces nospec.h was cherry-picked for 4.15 only in 4.15.2, so we need to adjust the ifdefs of our stub. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-28backport: add include ftrace_event.h back to backport-4.0.cLuca Coelho
At least one function, namely ftrace_print_array_seq(), still needs the ftrace_event.h header file, otherwise sparse may warning that it is declared as non-static without pre-declaration. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-20backport: add v5.* to the MakefileLuca Coelho
Now that 4.21 became 5.0, we need to update the Makefile accordingly. Stop looking at 4.19 for the 4.* series and add 5.*. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2019-03-01backports: add defconfigs for Marvell wifi driversTamás Szűcs
Enable users to be able to conveniently select the Marvell wifi drivers that they need. Signed-off-by: Tamás Szűcs <tszucs@protonmail.ch> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2019-02-11backports: refresh patches on top of 5.0-rc6v5.0-rc6-1Hauke Mehrtens
The patch patches/0086-rtl8723bs-no-extern-inline.patch was added in upstream Linux commit 97715058b70d ("staging: rtl8723bs: Fix build error with Clang when inlining is disabled") which was added in v5.0-rc4. 1 3.10.108 [ LINK ] 2 3.11.10 [ LINK ] 3 3.12.74 [ OK ] 4 3.13.11 [ LINK ] 5 3.14.79 [ LINK ] 6 3.15.10 [ LINK ] 7 3.16.62 [ OK ] 8 3.17.8 [ LINK ] 9 3.18.134 [ OK ] 10 3.19.8 [ LINK ] 11 4.0.9 [ LINK ] 12 4.1.52 [ OK ] 13 4.2.8 [ LINK ] 14 4.3.6 [ LINK ] 15 4.4.174 [ OK ] 16 4.5.7 [ OK ] 17 4.6.7 [ OK ] 18 4.7.10 [ OK ] 19 4.8.17 [ OK ] 20 4.9.155 [ OK ] 21 4.10.17 [ OK ] 22 4.11.12 [ OK ] 23 4.12.14 [ OK ] 24 4.13.16 [ OK ] 25 4.14.98 [ OK ] 26 4.15.18 [ OK ] 27 4.16.18 [ OK ] 28 4.17.19 [ OK ] 29 4.18.20 [ OK ] 30 4.19.20 [ OK ] 31 4.20.7 [ OK ] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Rename QTNFMAC_PEARL_PCIE to QTNFMAC_PCIEHauke Mehrtens
The name of this configuration option was changed in Linux commit b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms"). Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Add extra parameter to dev_open()Hauke Mehrtens
dev_open() got the extra parameter extack in Linux commit 00f54e68924e ("net: core: dev: Add extack argument to dev_open()"), just ignore it on older kernel versions. This is used by the hostap driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Add CORDIC_FLOATHauke Mehrtens
This was introduced in Linux commit 58d81d64e06f ("lib: cordic: Move cordic macros and defines to header file") and is used by the b43 and brcmsmac driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Add nl_set_extack_cookie_u64()Hauke Mehrtens
This was introduced in Linux commit 801f87469ee8 ("netlink: add nl_set_extack_cookie_u64()") and is used by the wireless subsystem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Add DEFINE_SHOW_ATTRIBUTE macroHauke Mehrtens
This was introduced in Linux commit a08f06bb7a07 ("seq_file: Introduce DEFINE_SHOW_ATTRIBUTE() helper macro" and is used by the cw1200 and the wil6210 driver. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2019-01-26backports: Remove get_user_pages() functionsHauke Mehrtens
These functions are not used by any driver any more, remove them. They were introduced for the frame vector code which was used by the media subsystem. They also case some compile problems with kernel 4.4 which get fixed by just removing this code. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: build LIB80211 on kernel < 4.3 againv4.20-rc5-1Hauke Mehrtens
lib80211 does not use skcipher any more, build these modules again on older kernels without skcipher. ipw2x00 uses DRIVER_ATTR_RW which does not compile on kernel 3.10, require at least kernel 3.11. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Update wifi default configurationHauke Mehrtens
Add some new wifi drivers to the default configuration. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Remove unused default configurationsHauke Mehrtens
The alx, igb and the media driver were removed some time ago, also remove the default configurations. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Remove unused code from backport-public_key.hHauke Mehrtens
These functions declared in backport-public_key.h are not implemented in backports, and they were causing warnings because kernel_pkey_params was not declared before. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Make TI WLCORE depend on kernel >= 4.2Hauke Mehrtens
This driver includes linux/pm_wakeirq.h which was added in kernel 4.2, deactivate this driver on older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Add device_get_mac_address()Hauke Mehrtens
This was added in upstream commit 4c96b7dc0d39 ("Add a matching set of device_ functions for determining mac/phy") and is used by ath10k now. In the mainline kernel it uses device_property_read_u8_array(), but that was only introduced in kernel 3.18, use of_property_read_u8_array() only on all kernel versions where this backport is needed which was added much earlier. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Add missing include for mt76Hauke Mehrtens
Without the inclusion of linux/module.h, MODULE_FIRMWARE was not declared when compiling against some kernel versions, add it. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Add page_frag_alloc() and __page_frag_cache_drain()Hauke Mehrtens
This was introduced in kernel commit 8c2dd3e4a4b ("mm: rename __alloc_page_frag to page_frag_alloc and __free_page_frag to page_frag_free") and commit 44fdffd7050 ("mm: add support for releasing multiple instances of a page") and is used by the mt76 driver. Backporting it to kernel older than 4.2 is harder so just do it till that version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Add page_ref_count() and page_ref_sub_and_test()Hauke Mehrtens
This was introduced in kernel commit fe896d18789 ("mm: introduce page reference manipulation functions") and will be used by __page_frag_cache_drain() in the next commit. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Refresh patches on kernel 4.20-rc4Hauke Mehrtens
This patch was merged upstream and removed from backports: * patches/0090-use-skb_pad.patch This patch was manually modified: * patches/0025-usb-sg/usbnet.patch Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-06backports: Remove BPAUTO_CRYPTO_SKCIPHERHauke Mehrtens
This was added in commit 32751c901728 ("backport: add crypto skcipher interface"), but all the drivers which need it were deactivated in commit cdcec8e6128 ("backports: disable things needing LIB80211 unless SKCIPHER can exist") because it does not compile any more. Remove this code now completely from the tree. lib80211 does not use skcipher any more, but directly uses the crpyto API. since kernel 4.20. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2018-12-03backports: Revert "dependencies: Make WIL6210 depend on kernel >= 4.8"Hauke Mehrtens
pci_alloc_irq_vectors() was added in commit 162a6b312f1 ("add support for pci_alloc_irq_vectors"), with this backport the WIL6210 driver works again. This reverts commit fbafdbe972402aad051d91d557f9cbb272844939. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>