aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
Commit message (Collapse)AuthorAgeFilesLines
* mac80211: fix list_phy_interfaces for multiple wiphys on the same deviceFelix Fietkau2020-01-141-1/+10
| | | | | | | Network interfaces are looked up based on the device behind a phy, so the phy needs to be checked separately Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: fix a page refcounting issue leading to leaks/crashes in rx A-MSDU ↵Felix Fietkau2020-01-141-0/+25
| | | | | | decap Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: fix sta TID stats leak on a few nl80211 callsFelix Fietkau2020-01-142-0/+43
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: renumber subsys patches accepted upstreamFelix Fietkau2020-01-144-0/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: remove obsolete kernel version switchesAdrian Schmutzler2020-01-1217-99/+57
| | | | | | | | | After kernel 4.9 has been removed, this removes all (now obsolete) kernel version switches that deal with versions before 4.14. Package kmod-crypto-iv is empty now and thus removed entirely. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* kernel: add kmod packages for Broadcom bcm53xxx switch supportTobias Schramm2020-01-121-0/+30
| | | | Signed-off-by: Tobias Schramm <tobleminer@gmail.com>
* kmod-sched-cake: bump to 20200110Kevin Darbyshire-Bryant2020-01-111-2/+2
| | | | | | | | | | | | | | | | | Keep up with a small amount of churn in the upstream repository. Upstream now represents the version of CAKE as found in the linux kernel from 4.19 onwards but with some compatibility stubs to allow building on <4.19. After a diversion related to an experimental ECN implementation which has now been reverted, the important and relevant changes for us are: 8a8946b sch_cake: avoid possible divide by zero in cake_enqueue() 183b320 RFC 8622 diffserv3, 4 & 8 LE PHB support 6ff4561 sch_cake: Make sure we can write the IP header before changing DSCP bits 9fba602 sch_cake: Use tc_skb_protocol for getting packet protocol Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* ixp4xx: remove unmaintained targetAdrian Schmutzler2020-01-084-285/+0
| | | | | | | | | | | This target is still on kernel 4.9, and it looks like there is no active maintainer for this target anymore. Remove the code and all the packages which are only used by this target. To add this target to OpenWrt again port it to a recent and supported kernel version. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ar7: remove unmaintained targetAdrian Schmutzler2020-01-0839-10017/+1
| | | | | | | | | | | This target seems to have been unmaintained for quite a while, and not a single tester for the (now outdated) kernel 4.14 patches has been found. Remove the code and all the packages which are only used by this target. To add this target to OpenWrt again port it to a recent and supported kernel version. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* ar7: update kernel to version 4.14Hauke Mehrtens2020-01-081-0/+51
| | | | | | | | | | | | | This adds support for kernel 4.14 to the target and directly make it the default kernel version to use. This patch is build-tested only, but has never been device-tested. It is only added to preserve the changes in Git history prior to removing this target. Use it with care. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> [rebased and extended commit message, refreshed patches for 4.14.162] Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
* mac80211: remove ath10k_pci memory hacksChristian Lamparter2020-01-052-49/+0
| | | | | | | | | | | | | These two hacks are no longer necessary as they've been moved to a special variant of kmod-ath10k-ct. So, if you have a device suffering from low-memory situation and getting applications crashes due to the OOM reaper or kernel panics with ath10k, please use the "kmod-ath10k-ct-smallbuffers" package from now on. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* mt76: update to the latest versionDavid Bauer2020-01-031-3/+3
| | | | | | 38f4c57 mt76: mt76x0: fix default mac address overwrite Signed-off-by: David Bauer <mail@david-bauer.net>
* rt2x00: add throughput LED triggerDavid Bauer2019-12-301-0/+44
| | | | | | | | | This adds a (currently missing) throughput LED trigger for the rt2x00 driver. Previously, LED triggers had to be assigned to the netdev, which was limited to a single VAP. Signed-off-by: David Bauer <mail@david-bauer.net> Tested-by: Christoph Krapp <achterin@googlemail.com>
* mt76: update to the latest versionFelix Fietkau2019-12-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2a0a19168dce mt7603: remove vif sta from poll list on interface remove dc14ac64e7f3 mt7615: remove vif sta from poll list on interface remove d868638fdd96 mt76: remove obsolete .add_buf() from struct mt76_queue_ops 50b1e9bd25cd mt76: refactor cc_lock locking scheme 1987b741dac2 mt76: mt76x0: remove 350ms delay in mt76x0_phy_calibrate c93a2d1c1304 mt76: mt76x02u: update ewma pkt len in mt76x02u_tx_prepare_skb 58e1e969f03e mt76: mt7615: remove unneeded semicolon c14d6563c492 mt76: mt76x2e: disable pcie_aspm by default f2be00b1011a mt76: dma: fix buffer unmap with non-linear skbs 20f05897873a mt76: mt76u: rely on usb_interface instead of usb_dev 3cbaf81a185e mt76: mt76u: rely on a dedicated stats workqueue ea19cd7ac6c6 mt76: Remove set but not used variable 'idx' a85c06cec844 mt76: use mt76_dev in mt76_is_{mmio,usb} e0731a82a14f mt76: move SUPPORTS_REORDERING_BUFFER hw property in mt76_register_device cfdb75124e7c mt76: mt7615: add ibss support e2f90adcc3b1 mt76: move interface_modes definition in mt76_core module 5dfb0ec9c6d1 mt76: mt7615: disable radar pattern detector during scanning 7121e163c068 mt76: fix possible out-of-bound access in mt7615_fill_txs/mt7603_fill_txs db78ee08d95e mt76: move mt76_get_antenna in mt76_core module faf5e6fedd7e mt76: mt7615: read {tx,rx} mask from eeprom 44825e88a42d mt76: use rcu_read_lock_bh in mt76_dma_rx_poll af83ee8de928 mt76: move initialization of some struct members to mt76_alloc_device 6493e234b40d mt76: introduce struct mt76_phy ea46624355ec mt76: add support for an extra wiphy in the rx path c5f1e83e30d4 mt76: add support for an extra wiphy in the main tx path 1d8011871458 mt76: add support for an extra wiphy in the tx status path e5e755a7a6b0 mt76: add support for an extra wiphy in mt76_sta_state() ee36c8e2170f mt76: move channel state to struct mt76_phy d246beb23350 mt76: keep a set of software tx queues per phy a3e88bcf17e8 mt76: move state from struct mt76_dev to mt76_phy 9cda51d195db mt76: move chainmask back to driver specific structs df74d6993383 mt76: move txpower_conf back to driver specific structs 9e95fa6208a2 mt76: move txpower and antenna mask to struct mt76_phy 502d09a6e806 mt76: add multiple wiphy support to mt76_get_min_avg_rssi 842cae558b82 mt76: add priv pointer to struct mt76_phy 8ca04846857b mt76: add function for allocating an external wiphy 04cd17a64520 mt76: add ext_phy field to struct mt76_wcid 1c8d69e7d666 mt76: move ampdu_ref from mt76_dev to driver struct e6659d12d01e mt76: mt7615: add dual-phy support for mac80211 ops e5ea72ac7158 mt76: mt7615: add multiple wiphy support for smart carrier sense bdcd45dd04e0 mt76: mt7615: add missing register init for dual-wiphy support 0954c37d015f mt76: mt7615: remove useless MT_HW_RDD0/1 enum 705a0fcdc3a5 mt76: mt7615: add multiple wiphy support to the dfs support code 849fefacc48a mt76: mt7615: rework chainmask handling caa47af1d6f2 mt76: mt7615: add multiple wiphy support to the rx path c5585a735864 mt76: mt7615: initialize dbdc settings on interface add 6265fd1954d7 mt76: mt7615: move radio/mac initialization to .start/stop callbacks 5725d1f919ff mt76: mt7615: select the correct tx queue for frames sent to the second phy 993683d62fb7 mt76: mt7615: add support for registering a second wiphy via debugfs 1456a53ddeb3 mt76: mt7615: update beacon contents on BSS_CHANGED_BEACON ea41ad8bdb36 mt76: mt7615: defer mcu initialization via workqueue 59de6c9447a7 mt7615: replace sta_state callback with sta_add/sta_remove 88db676f8517 mt76: fix rx dma ring descriptor state on reset fff2c07193bb Revert "mt76: use rcu_read_lock_bh in mt76_dma_rx_poll" b3bf83d6da1c mt76: disable bh in mt76_dma_rx_poll efcbee1d8bfc mt76: mt76x0u: do not reset radio on resume 5dc6f6fcc027 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 84554a1fbb9a kernel: fix typos and some coding style in comments a116b0a6afe9 mt76: fix possible undetected invalid MAC address becdec318fce mt76: Off by one in mt76_calc_rx_airtime() 683eb244fa55 mt76: mt7603: reset STA_CCA counter setting the channel 812692db171c mt76: eeprom: add support for big endian eeprom partition 8b362382b10c mt76: mt7615: Fix build with older compilers fc24815a2cb4 mt76: mt7615: report firmware version using ethtool 5cec93d57e6d mt76: mt76x02: fix coverage_class type 9354f0f41d1c mt76: mt7603: set 0 as min coverage_class value a589d095eeb6 mt76: mt7615: add set_coverage class support 257c19f5b56f mt76: clear skb pointers from rx aggregation reorder buffer during cleanup 05c87a33831f mt76: do not overwrite max_tx_fragments if it has been set 05fa07c667f3 mt76: use AC specific reorder timeout 3ef5f3444a94 mt76: mt7615: measure channel noise and report it via survey 726fd501651a mt76: mt7615: increase MCU command timeout 99d8cd03edfa mt76: mt7603: fix input validation issues for powersave-filtered frames 32129af2604d net/wireless: Delete unnecessary checks before the macro call “dev_kfree_skb” 85a8abf80385 mt76: mt76x02: omit beacon slot clearing 8b5d3615e1c8 mt76: mt76x02: split beaconing dc364547d91a mt76: mt76x02: add check for invalid vif idx 462a16e185e4 mt76: mt76x02: remove a copy call for usb speedup fa24aba4c280 mt76: speed up usb bulk copy 6a84ad21306e mt76: mt76x02: add channel switch support for usb interfaces 09fcbc214b10 mt76: usb: use max packet length for m76u_copy 584c0784e019 mt76: mt76x02u: do not set NULL beacons ca17e5657e8a mt76: mt76x02: minor mt76x02_mac_set_beacon optimization d5fdd2e7ced8 mt76: mt7615: fix MT7615_CFEND_RATE_DEFAULT value ae25a4bf99a9 mt76: mt7615: introduce LED support cd759b00cc06 mt76: mt76x02: simplify led reg definitions cf00467c5de4 mt76: mt7603: simplify led reg definitions 1c8e76f4de3e mt76: fix compilation warning in mt76_eeprom_override() 960f5cc2390b mt76: mt76u: fix endpoint definition order 15e1c29ed8e3 mt76: mt7615: add missing settings for simultaneous dual-band support e09b9f61eeb3 mt76: mt7615: rework set_channel function 4cb1195a1530 mt76: mt7615: add set_antenna callback Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: ath10k-ct: provide a build variant for small RAM devicesPaul Fertser2019-12-243-1/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to many bugreports [0][1][2] the default ath10k-ct kernel module is unusable on devices with just 64 MiB RAM or with 128 MiB and dual ath10k cards. The target boards boot but eventually oom-killer starts to interfere with normal operation, so the current state is effectively broken. Since the two patches in question have a performance impact (and possibly some other unexpected side-effects) a dedicated build variant is added so that users of the low RAM devices can still benefit from all the ath10k-ct advantages. According to testing [3] results, the issue can be experienced even with "a 256MB device with three radios". Measured performance impact of implementing small buffers was lowering "the maximum 5 GHz throughput on an IPQ40xx device without RPS/XPS optimizations from 494/432 Mbit/s for TCP transfers (download/upload) to 438/343 Mbit/s" The patches were apparently inspired by QSDK tweaks used by ODMs for the affected devices. [0] http://lists.infradead.org/pipermail/openwrt-devel/2019-December/020573.html [1] https://github.com/openwrt/openwrt/pull/1077 [2] https://bugs.openwrt.org/index.php?do=details&task_id=2664 [3] https://github.com/freifunk-gluon/gluon/pull/1440#issue-195607701 Signed-off-by: Paul Fertser <fercerpav@gmail.com> [Remove double CONFIG_ATH10K-CT_LEDS entry] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* treewide: Remove self from MAINTAINER entriesFlorian Fainelli2019-12-232-2/+0
| | | | Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
* brcm2708-gpu-fw: update to latest firmwareÁlvaro Fernández Rojas2019-12-231-16/+16
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* kernel: fix *-gpio-custom module unloadingSungbo Eo2019-12-234-6/+6
| | | | | | | | | | | | | | | | | | | | | Unloading and reloading the modules fails, as platform_device_put() does not release resources fully. root@OpenWrt:/# insmod i2c-gpio-custom bus0=0,18,0,5 [ 196.860620] Custom GPIO-based I2C driver version 0.1.1 [ 196.871162] ------------[ cut here ]------------ [ 196.880517] WARNING: CPU: 0 PID: 1365 at fs/sysfs/dir.c:31 0x80112158 [ 196.893431] sysfs: cannot create duplicate filename '/devices/platform/i2c-gpio.0' ... [ 197.513200] kobject_add_internal failed for i2c-gpio.0 with -EEXIST, don't try to register things with the same name in the same directory. This patch fixes it by replacing platform_device_put() to platform_device_unregister(). Fixes: da7740853715 ("i2c-gpio-custom: minor bugfix") Fixes: 3bc81edc70e8 ("package: fix w1-gpio-custom package (closes #6770)") Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* kernel: make dwc3 usb driver depends on kernel 4.14Ansuel Smith2019-12-191-2/+2
| | | | | | | - usb-dwc3-of-simple is not used anymore as we have qcom dedicated driver - usb-phy-qcom-dwc3 is not dependent of dwc3-of-simple Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* mac80211: brcm: add support for BCM4359 SDIO chipsetRafał Miłecki2019-12-197-0/+519
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mac80211: brcm: backport 5.5 and 5.6 kernel patchesRafał Miłecki2019-12-1910-1/+325
| | | | | | | | | This update doesn't include: 3b1e0a7bdfee brcmfmac: add support for SAE authentication offload be898fed355e brcmfmac: send port authorized event for FT-802.1X due to nl80211 dependencies. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mac80211: fix txpower when using DFS channelsDavid Bauer2019-12-161-2/+7
| | | | | | | | | | | With this patch, txpower for the PHY is applied when configuring the PHY instead of the VIF. Otherwise, the configured txpower is not applied for the first initialized VIF when using DFS channels, as it is currently applied too early when the CAC hasn't finished. Reported-by: Martin Weinelt <martin@darmstadt.freifunk.net Signed-off-by: David Bauer <mail@david-bauer.net> Tested-by: Martin Weinelt <martin@darmstadt.freifunk.net>
* mac80211: don't call md5sum on non-existing fileDaniel Golle2019-12-081-1/+1
| | | | | | | | | | | | If no AP is configured, hostapd-${phy}.conf is not being created, hence md5sum fails and causes log pollution: netifd: radio1 (3183): md5sum: can't open '/var/run/hostapd-phy1.conf': No such file or directoy Hence make sure the file exists when calling md5sum. Fixes: a5bc9787d4 ("mac80211: add support for dynamically reconfiguring wifi") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* hostapd: re-introduce process trackingDaniel Golle2019-12-081-0/+3
| | | | | | | | | | | Before commit 60fb4c92b6 ("hostapd: add ubus reload") netifd was tracking hostapd/wpa_supplicant and restarting wifi in case of a process crash. Restore this behaviour by tracking the PIDs of hostapd and wpa_supplicant. Also make sure hostapd and/or wpa_supplicant have been started before emmitting ubus calls to them using ubus wait_for. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mac80211: track unmanaged interfacesDaniel Golle2019-12-081-3/+42
| | | | | | | | | In addition to wpa_supplicant and hostapd managed interfaces, also track unmanaged interfaces. This is used to make sure that running 'wifi' always returns into a clean state regardless of what the user did before. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mac80211: switch to upstream owl-loader driverChristian Lamparter2019-11-304-22/+112
| | | | | | | | | | | | | | | | | | The Owl Loader (named after the codename that Atheros gave these devices back in the day) has been accepted upstream. This patch removes the "misc" driver OpenWrt had and adds the remaining differences against the version that ships with 5.4-rc1 into a separate "120-owl-loader-compat.patch" file that can be cut down once AR71XX is being dealt with. Note: I decided to keep the existing (kmod-)owl-loader package name around for now. The kernel module file in the kmod package will be called ath9k_pci_owl_loader.ko though. Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* Revert "mt76: probe load mt7615 driver asynchronously"DENG Qingfang2019-11-301-1/+0
| | | | | | | | | | | | | This reverts commit 81764319637f ("mt76: probe load mt7615 driver asynchronously"). After said commit, users report that MT7615 no longer works on boot and they have to manually enable WiFi (via command "wifi") to make it working again. Fixes: FS#2546 Ref: https://forum.openwrt.org/t/xiaomi-r3p-no-wifi-on-boot/45509 Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn> [commit description facelift] Signed-off-by: Petr Štetiar <ynezz@true.cz>
* mac80211: unify setup of iw htmode for mesh and adhocSantiago Piccinini2019-11-291-49/+16
| | | | | | | | | This also fixes mac80211_prepare_vif iw set channel in monitor or mesh mode. Signed-off-by: Santiago Piccinini <spiccinini@altermundi.net> Signed-off-by: Daniel Golle <daniel@makrotopia.org> [daniel@makrotopia.org: fixed commit message]
* mac80211: add default value for noscanSebastian Kemper2019-11-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Commit b3d8b3a introduced a new test: [ -n "$noscan" -a "$noscan" -gt 0 ] && hostapd_noscan=1 But if length of "$noscan" is zero (noscan is not set) this doesn't stop the shell to evaluate the rest of the test. root@hank2:~# [ -n "$noscan" -a "$noscan" -gt 0 ] ash: out of range root@hank2:~# So when radios are brought up this shows in the log: Sat Nov 23 10:51:38 2019 daemon.info procd: - init complete - Sat Nov 23 10:52:24 2019 daemon.notice netifd: radio1 (1243): sh: out of range Sat Nov 23 10:52:25 2019 user.notice firewall: Reloading firewall due to ifup of wan (eth0.2) Sat Nov 23 10:52:25 2019 daemon.notice netifd: radio0 (1242): sh: out of range Sat Nov 23 10:52:26 2019 authpriv.info dropbear[1536]: Not backgrounding This commit sets noscan to 0 if unset and removes the gratuitous length check, preventing the warning. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* mac80211: update to version 5.4-rc8Hauke Mehrtens2019-11-2218-386/+17
| | | | | | | | This updates mac80211 to backports based on kernel 5.4-rc8. The deleted patches were applied upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* mac80211: refresh patchesKoen Vandeputte2019-11-192-4/+4
| | | | Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* mac80211: backport upstream fixesKoen Vandeputte2019-11-192-0/+77
| | | | | | | This potentially fixes some issues seen on IBSS when interfaces go out of range and then re-appear. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* mac80211: Adapt to changes to skb_get_hash_perturb()Hauke Mehrtens2019-11-181-0/+68
| | | | | | | | | | The skb_get_hash_perturb() function now takes a siphash_key_t instead of an u32. This was changed in commit 55667441c84f ("net/flow_dissector: switch to siphash"). Use the correct type in the fq header file depending on the kernel version. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
* mac80211: brcmfmac: fix PCIe reset crash and WARNINGRafał Miłecki2019-11-183-1/+85
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* mac80211: detect existing interface before addingDaniel Golle2019-11-161-4/+35
| | | | | | | | | | | | | | | Keep existing wdev when creating new nl80211 interfaces if phy and type match, delete it otherwise. To make this work, also remove left-over debugging function which prevented the return-value of the 'iw' command to be taken into account in mac80211_iw_interface_add(). As 4addr-mode (WDS) was setup during interface creation for station interfaces, also set it after interface creation to make sure an existing sta interface ends up with the right mode. Fixes: a5bc9787d4 ("mac80211: add support for dynamically reconfiguring wifi") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* Revert "mac80211: restore mac80211_interface_cleanup()"Daniel Golle2019-11-161-16/+0
| | | | | | This reverts commit 000b7687bc50be5b0f1161f4bf8ceb85c495c395. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: fix typo in fb-sys-fops autoloadSungbo Eo2019-11-141-1/+1
| | | | | | | AutoLoad parameter must match the exact kernel module name. Fix it. Fixes: 125f1ce9ad0c ("kernel: video: add DRM core and IMX DRM support for HDMI/LVDS") Signed-off-by: Sungbo Eo <mans0n@gorani.run>
* mac80211: restore mac80211_interface_cleanup()Daniel Golle2019-11-141-0/+16
| | | | | | | | | | Changes introduced for dynamic wifi reconfiguration left behind unmanaged interface types. Restore parts of the old function to also clean (unencrypted, non-DFS) mesh and ad-hoc interfaces. Fixes: a5bc9787d4 ("mac80211: add support for dynamically reconfiguring wifi") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mac80211: add support for dynamically reconfiguring wifiJohn Crispin2019-11-122-37/+135
| | | | | | | | | Change scripts to use ubus interface of hostapd/wpa_supplicant to add/remove/modify wireless interfaces instead of (re-)starting the services. Signed-off-by: John Crispin <john@phrozen.org> Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mac80211: Fix dependencies of kmod-rsi91x-usbHauke Mehrtens2019-11-091-2/+2
| | | | | | | | | | Instead of depending on kmod-usb2 make it depend on the normal USB dependencies. This should hopefully fix some problems seen in the build bot builds for powerpc_8540. In addition also activate DRIVER_11N_SUPPORT support. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add crypto_user mod to crypto-user pkgEneas U de Queiroz2019-11-061-2/+4
| | | | | | | | This is needed to export crypto information to netfilter, allowing the alt. afalg openssl engine to obtain information about the drivers being used. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
* mac80211 ath9k: force QCA953x clock to 25MHzDavid Bauer2019-11-051-6/+13
| | | | | | | | | | | The QCA953x only supports 25 MHz refclk, however some OEMs set an invalid bootstrap value for the REF_CLK option, which would break the clock detection in ath9k. Force the QCA953x refclk to 25MHz in ath9k, as this is (according to the datasheet) the only valid frequency. Signed-off-by: David Bauer <mail@david-bauer.net>
* mac80211: fix build without CONFIG_PCIFelix Fietkau2019-11-051-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: add support for multiple wiphys behind a single deviceFelix Fietkau2019-11-054-19/+48
| | | | | | | | | | The device path will be the same for the first phy. For all subsequent phys, the path gets an extra +1, +2, ... Move the code for converting path to phy and vice versa to a separate library script shared by config detection code and the netifd wireless handler script Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: add pcie apsm backport changesFelix Fietkau2019-11-052-0/+67
| | | | | | Required for newer versions of mt76 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: rt2x00: remove errornous duplicate conditionDaniel Golle2019-11-038-13/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://patchwork.kernel.org/patch/11224189/ -- On 2019-10-28 06:07, wbob wrote: > Hello Roman, > > while reading around drivers/net/wireless/ralink/rt2x00/rt2800lib.c > I stumbled on what I think is an edit of yours made in error in march > 2017: > > https://github.com/torvalds/linux/commit/41977e86#diff-dae5dc10da180f3b055809a48118e18aR5281 > > RT6352 in line 5281 should not have been introduced as the "else if" > below line 5291 can then not take effect for a RT6352 device. Another > possibility is for line 5291 to be not for RT6352, but this seems > very unlikely. Are you able to clarify still after this substantial time? > > 5277: static int rt2800_init_registers(struct rt2x00_dev *rt2x00dev) > ... > 5279: } else if (rt2x00_rt(rt2x00dev, RT5390) || > 5280: rt2x00_rt(rt2x00dev, RT5392) || > 5281: rt2x00_rt(rt2x00dev, RT6352)) { > ... > 5291: } else if (rt2x00_rt(rt2x00dev, RT6352)) { > ... Hence remove errornous line 5281 to make the driver actually execute the correct initialization routine for MT7620 chips. As it was requested by Stanislaw Gruszka remove setting values of MIMO_PS_CFG and TX_PIN_CFG. MIMO_PS_CFG is responsible for MIMO power-safe mode (which is disabled), hence we can drop setting it. TX_PIN_CFG is set correctly in other functions, and as setting this value breaks some devices, rather don't set it here during init, but only modify it later on. Fixes: 41977e86c984 ("rt2x00: add support for MT7620") Reported-by: wbob <wbob@jify.de> Reported-by: Roman Yeryomin <roman@advem.lv> Signed-off-by: Daniel Golle <daniel@makrotopia.org> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> -- Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* lantiq: Allow PKG_ASLR_PIE for DSL and voice driversHauke Mehrtens2019-11-016-7/+0
| | | | | | | | | | | When ASLR_PIE was activated globally these drivers failed to build because the user space LDFLAGS leaked into the kernel build process. This was fixed in upstream Linux kernel commit ce99d0bf312d ("kbuild: clear LDFLAGS in the top Makefile") which went into Linux 4.17. The lantiq target is now on Linux 4.19 only and these exceptions are not needed any more. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: mark kmod-usb-serial-wwan as hiddenYousong Zhou2019-10-301-2/+2
| | | | | | | | | The kconfig symbol is an invisible one since its introduction. It is not supposed to be enabled on its own. Resolves FS#1821 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* kernel: netfilter: reuse kconfig and files info from include dirYousong Zhou2019-10-241-23/+9
| | | | | | Less chance of missing out kconfig symbols at least Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* mac80211: fix build of rtw88David Bauer2019-10-221-1/+2
| | | | | | | | | | This commit fixes failing builds because of an incorrect configuration for the kmod-rtw88 package. RTW88_8822BE as well as RTW88_8822CE have to bes selected as "y" even when building the driver as a module. Signed-off-by: David Bauer <mail@david-bauer.net>