aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
Commit message (Collapse)AuthorAgeFilesLines
* mac80211: fix not set noscan option for wpa_supplicantChristian Marangi2023-11-091-1/+1
| | | | | | | | | noscan option was changed to hostapd_noscan but the entry in wpa_supplicant was never updated resulting in the noscan option actually never set. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 1070fbce6e496da2dacf17c6e842a4369c4be71b)
* build: hide kmod-zram config unless enabledRani Hod2023-10-311-9/+11
| | | | | | | | | | Currently the zram default compressor choice is displayed whether or not zram is activated. Since the default choice is lzo-rle, this adds a false dependency on kmod-lib-lzo. With this patch, the choice options appear only when activating zram. Signed-off-by: Rani Hod <rani.hod@gmail.com> (cherry picked from commit 62ada26de28e6c43a957b8f186ead1f45e6a5623)
* mac80211: fix AP reconfiguration on DFS channels in non-ETSI regdomainFelix Fietkau2023-09-182-2/+151
| | | | | | | Allow grace period for DFS available after shutting down beacons on the channel Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 16889141d99d3ec1410f3b4dc22de4022dbe9057)
* hostapd: backport from master, including ucode based reload supportFelix Fietkau2023-09-181-380/+247
| | | | | | | This significantly improves config reload behavior and also fixes some corner cases related to running AP + mesh interfaces at the same time. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: enable vfio and vfio-pci for armsr-armv8Mathew McBride2023-09-161-2/+2
| | | | | | | | | | Arm platforms with the right hardware blocks (such as GICv3.0+ interrupt controller and SMMU/IOMMU) are able to use vfio-pci to pass through PCI devices to a VM. Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit 9ac01aac0a820f2c48b2ab26628a8c90fb005f20)
* kernel: vfio: remove unneeded enable_unsafe_noiommu_mode parameterMathew McBride2023-09-161-2/+0
| | | | | | | | | | | | | | The vfio module only exposes the enable_unsafe_noiommu_mode parameter if CONFIG_VFIO_NOIOMMU is enabled. When it isn't, the module will complain about an unknown parameter: vfio: unknown parameter 'enable_unsafe_noiommu_mode' ignored As CONFIG_VFIO_NOIOMMU is disabled by the module package, we can remove the module loading parameter. Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit 7ad8612a23add071608815e3c78a477c4fbad0d3)
* kernel: add vhost-net moduleMathew McBride2023-09-161-0/+24
| | | | | | | | | | | | | | | | | vhost-net is used to accelerate traffic to virtualisation guests that use the virtio-net network card in QEMU. Generally it is invoked by specifying "vhost=on" to a QEMU -netdev device: qemu-system-aarch64 -nographic -M virt -cpu host \ --enable-kvm -bios u-boot.bin -smp 1 -m 2048 \ -drive file=openwrt-armsr-armv8.img,format=raw,index=0,media=disk \ -device "virtio-net,netdev=landev,disable-legacy=off,disable-modern=off" \ -netdev "tap,id=landev,helper=/usr/lib/qemu-bridge-helper --br=br-lan,vhost=on" Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit d188db8aed74547f98b905254d4f57baf225f1d6)
* mac80211: fix MT7620 Wi-Fi channel scanning functionShiji Yang2023-09-051-57/+36
| | | | | | | | | | | | | During the channel scanning process, the driver will continuously switch channels. It seems that the full RF calibration step in rt2800_config_channel() caused the channel scanning function to timeout. To fix it, move the RF calibration to rt2800_enable_radio() so that it is only executed once. This commit also includes some coding format adjustments to follow the Linux recommended style. Fixes: 2824fa6963cf ("mac80211: rework MT7620 PA/LNA RF calibration") Signed-off-by: Shiji Yang <yangshiji66@qq.com> (cherry picked from commit ce6ad123e76311d2a882054b4ea532d1bfb643c8)
* mac80211: rework MT7620 PA/LNA RF calibrationShiji Yang2023-09-041-0/+434
| | | | | | | | | | | | | | | | This patch makes some improvements to the MT7620 RF calibration. 1. Move MT7620 PA/LNA calibration code to dedicated functions. 2. Restore RF and BBP registers before R-Calibration. 3. Do Rx DCOC calibration again before RXIQ calibration. 4. Use SoC specific AGC initial LNA value. 5. Correct MAC_RX_EN mask in rt2800_r_calibration()[1]. [1] This change may fix the "BBP/RF register access failed" error: ieee80211 phy0: rt2800_wait_bbp_rf_ready: Error - BBP/RF register access failed, aborting Signed-off-by: Shiji Yang <yangshiji66@qq.com> (cherry picked from commit 2824fa6963cf245b7e0b04aa96bcbe5013524b85)
* mt76: update to the latest versionFelix Fietkau2023-08-261-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bdf7ca5db707 wifi: mt76: mt7921: move common register definition in mt792x_regs.h ae15d5c6b567 wifi: mt76: mt7921: convert acpisar and clc pointers to void 02515b6b90f0 wifi: mt76: mt7921: rename mt7921_vif in mt792x_vif 6ed8a8bdc7b6 wifi: mt76: mt7921: rename mt7921_sta in mt792x_sta 80234e64e7c5 wifi: mt76: mt7921: rename mt7921_phy in mt792x_phy 2485b4222d3d wifi: mt76: mt7921: rename mt7921_dev in mt792x_dev c6fd7cde77e0 wifi: mt76: mt7921: rename mt7921_hif_ops in mt792x_hif_ops 1a1a57b5f8c4 wifi: mt76: mt792x: move shared structure definition in mt792x.h 68508aab4241 wifi: mt76: mt7921: move mt792x_mutex_{acquire/release} in mt792x.h ff306af07e65 wifi: mt76: mt7921: move mt792x_hw_dev in mt792x.h 4b49d659acab wifi: mt76: mt7921: Replace fake flex-arrays with flexible-array members 93f821cce8f5 wifi: mt76: mt792x: introduce mt792x-lib module de7b90721280 wifi: mt76: mt7921: move mac shared code in mt792x-lib module c68ee8a64bef wifi: mt76: mt7921: move dma shared code in mt792x-lib module 8d561811f271 wifi: mt76: mt7921: move debugfs shared code in mt792x-lib module 0034ae289046 wifi: mt76: mt7921: move init shared code in mt792x-lib module 8419c4e793a7 wifi: mt76: mt792x: introduce mt792x_irq_map b7c7fadf228c wifi: mt76: mt792x: move more dma shared code in mt792x_dma 0b1603ce707c wifi: mt76: mt7921: move hif_ops macro in mt792x.h e07540abe87a wifi: mt76: mt7921: move shared runtime-pm code on mt792x-lib 3d65cd7a8dad wifi: mt76: mt7921: move runtime-pm pci code in mt792x-lib 4551f8c838e6 wifi: mt76: mt7921: move acpi_sar code in mt792x-lib module bd84b8ebaff8 wifi: mt76: mt792x: introduce mt792x-usb module 7067ea0f1bab wifi: mt76: mt792x: move mt7921_load_firmware in mt792x-lib module cf752af84c35 wifi: mt76: mt76_connac3: move lmac queue enumeration in mt76_connac3_mac.h 700041dcf773 wifi: mt76: mt792x: move MT7921_PM_TIMEOUT and MT7921_HW_SCAN_TIMEOUT in common code 58b2b90ad89b wifi: mt76: mt7921: move mt7921_dma_init in pci.c 9e4cb87a04cf wifi: mt76: mt7921: move mt7921u_disconnect mt792x-lib c19b62fe6b68 wifi: mt76: testmode: add nla_policy for MT76_TM_ATTR_TX_LENGTH 4904ab2f87cd wifi: mt76: fix return value check in mt76x02_mac_process_rx 1f0fbbee359c wifi: mt76: mt7915: fix tlv length of mt7915_mcu_get_chan_mib_info 24a54ee3a5ec wifi: mt76: mt7915: fix power-limits while chan_switch 80b8bcf0e3ea wifi: mt76: mt7603: rework/fix rx pse hang check a8d9553d8fc4 wifi: mt76: mt7603: improve watchdog reset reliablity c03d84c0d018 wifi: mt76: mt7603: improve stuck beacon handling 85cc58378d25 wifi: mt76: mt7603: add missing register initialization for MT7628 b14c2351ddb8 wifi: mt76: mt7603: disable A-MSDU tx support on MT7628 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 6b3737be323f702d5c1c5533db7d7351603dad0f)
* kernel: modules: add xdp-sockets-diag supportTianling Shen2023-08-191-0/+16
| | | | | | | Support for PF_XDP sockets monitoring interface used by the ss tool. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit 06e64f9b364abe15c27bf0a7225fcac740819668)
* kernel: netsupport: Add kmod-sched-skbprioAlexandru Gagniuc2023-08-111-0/+12
| | | | | | | | | Add support for the SKBPRIO queuing discipline. This is subtly different than prio as it also drops packets from the lower priority flows. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> (cherry picked from commit 8fba9afda5f514afa48a216514b3f0b0fb22afac)
* kernel: Autoload nvme at preinit timeLuca Barbato2023-08-111-1/+1
| | | | | | | This way is possible to mount nvme extroots. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> (cherry picked from commit 0fe9a8ca94830270820f7a1eb457f5d5d587125d)
* kernel: bump 5.15 to 5.15.124John Audia2023-08-101-1/+2
| | | | | | | | | | | | | | | | Changelog: https://lore.kernel.org/stable/2023080341-curliness-salary-4158@gregkh/ 1. Needed to make a change to to package/kernel/linux/modules/netsupport.mk due to upstream moving vxlan to its own directory[1]. @john-tho suggested using the the 6.1 xvlan FILES to circumvent. 2. All patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.124&id=77396fa9096abdbfbb87d63e73ad44d5621cf103 Signed-off-by: John Audia <therealgraysky@proton.me> [Refreshed on top of OpenWrt 23.05] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> (cherry picked from commit 81c1172c3626157ff9a146430cd14e32c9c80a5a)
* kernel: netdevices: add driver for Marvell 10G Ethernet PHYsDaniel Golle2023-08-071-0/+18
| | | | | | | | Package kernel module for Marvell 10G Ethernet PHYs found also in many 10G/1G/100M/10M RJ-45 SFP+ modules. Signed-off-by: Daniel Golle <daniel@makrotopia.org> (cherry picked from commit 2a5c7bf6213cc12d4ae6b7bce5d777b3518a89c1)
* mac80211: partly revert force-mac80211 loss detectionDavid Bauer2023-07-263-36/+56
| | | | | | | | | | | | This patch will only force mac80211 loss detection upon ath10k by masking the driver-specific loss-detection bit. Ref: commit ed816f6ba8b5 ("mac80211: always use mac80211 loss detection") Signed-off-by: David Bauer <mail@david-bauer.net> (cherry picked from commit d9070f8d23621931c4869980f6e5ae17abbe3e58) [felix.bau@gmx.de: replace path 6.2 with 5.15, refresh patches] Signed-off-by: Felix Baumann <felix.bau@gmx.de>
* mt76: update to the latest versionFelix Fietkau2023-07-261-3/+3
| | | | | | | | | | | 53edfc7aaa34 wifi: mt76: mt7603: fix beacon interval after disabling a single vif 7ef4dd12d982 wifi: mt76: mt7603: fix tx filter/flush function 152608a40aa7 wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC) cacac3902a63 wifi: mt76: split get_of_eeprom in subfunction cd3dfe392769 wifi: mt76: add support for providing eeprom in nvmem cells Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 4395236a100b558d96d0e836ddc76df19b33ddfb)
* mt76: update to the latest versionFelix Fietkau2023-07-261-3/+3
| | | | | | | bb3937d5c3e0 wifi: mt76: mt7915: remove VHT160 capability on MT7915 Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 063641f8cf7990731919b950c1bf9eb15d1e74c9)
* mt76: update to the latest versionFelix Fietkau2023-07-041-3/+3
| | | | | | | f704e4f83c6f mt76: mt7915: fix copy&paste issue on capability check rework Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 816933bee6e6b68156f6aeea083117208bf859f8)
* mt76: fix download hashFelix Fietkau2023-07-021-1/+1
| | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit a3e173e00e7a7f647528ec04be432bccfb5995ad)
* mt76: update to the latest versionFelix Fietkau2023-07-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2c9c8ffe9d8c wifi: mt76: mt7615: fix possible race in mt7615_mac_sta_poll 3365c80f4202 wifi: mt76: connac: fix stats->tx_bytes calculation b69d82130b47 wifi: mt76: connac: do not check WED status for non-mmio devices 1f9cd65b55d7 wifi: mt76: mt7921e: fix probe timeout after reboot 42dace9ce247 wifi: mt76: mt7921: Fix use-after-free in fw features query. 540adbb38205 wifi: mt76: mt7921: add Netgear AXE3000 (A8000) support 150e2d0ffc0c wifi: mt76: mt7996: fix possible NULL pointer dereference in mt7996_mac_write_txwi() 5b7519be2bf6 wifi: mt76: mt7996: fix endianness of MT_TXD6_TX_RATE 40f6e433f747 wifi: mt76: mt76x02: remove WEP support 84ea1a24f5b5 mt76: mt7921: don't assume adequate headroom for SDIO headers 5c28e17f8c78 wifi: mt76: mt7996: fix header translation logic 2386cec860fa wifi: mt76: mt7996: enable BSS_CHANGED_MU_GROUPS support 748d4a2bfebd wifi: mt76: mt7615: enable BSS_CHANGED_MU_GROUPS support 458ad0af21be wifi: mt76: enable UNII-4 channel 177 support 7fb046011293 wifi: mt76: mt7915: fix background radar event being blocked d2a77a9954bb wifi: mt76: mt7915: report tx retries/failed counts for non-WED path f76b102b09ca wifi: mt76: mt7915: rework tx packets counting when WED is active 5637d9e37d9e wifi: mt76: mt7915: rework tx bytes counting when WED is active 34bdc7fcb4c0 wifi: mt76: report non-binding skb tx rate when WED is active d71aa7b992a3 wifi: mt76: mt7915: drop return in mt7915_sta_statistics 251c363c3087 wifi: mt76: mt7996: drop return in mt7996_sta_statistics 150bb95cb153 wifi: mt76: mt7921: do not support one stream on secondary antenna only d480c3281f21 wifi: mt76: mt7921: remove macro duplication in regs.h 18b1027e5b6e wifi: mt76: mt7915: move mib_stats structure in mt76.h 25ec4b91020e wifi: mt76: mt7996: rely on mib_stats shared definition 6541afa88b3b wifi: mt76: mt7921: rely on mib_stats shared definition eeb60eb9a5a0 wifi: mt76: mt7915: add support for MT7981 [sync with upstream] d5b7e6a3d735 wifi: mt76: mt7921e: report tx retries/failed counts in tx free event f0f19cea6646 wifi: mt76: mt7921: fix skb leak by txs missing in AMSDU edd8a830f6e3 wifi: mt76: add tx_nss histogram to ethtool stats e48235308b3e wifi: mt76: mt7915: accumulate mu-mimo ofdma muru stats a729242363d9 wifi: mt76: mt7921: fix non-PSC channel scan fail 8d52436ee0cd wifi: mt76: mt7921: Support temp sensor d152c8688c14 wifi: mt76: mt7915: disable WFDMA Tx/Rx during SER recovery d07785c344ac wifi: mt76: mt7996: disable WFDMA Tx/Rx during SER recovery 2a19784137f9 wifi: mt76: mt7921: make mt7921_mac_sta_poll static da8e33a15e71 wifi: mt76: mt7915: fix command timeout in AP stop period cc58d5c4a9c9 mt76: mt7996: rely on mt76_sta_stats in mt76_wcid 98a37c82a373 wifi: mt76: mt7921: get rid of MT7921_RESET_TIMEOUT marco ece724cf562b wifi: mt76: mt7996: move radio ctrl commands to proper functions 527cbbc5ede7 wifi: mt76: connac: add support for dsp firmware download 44e323340637 wifi: mt76: mt7996: fix bss wlan_idx when sending bss_info command 63f0053df07a wifi: mt76: mt7996: enable VHT extended NSS BW feature e1bb4ef7b2bb wifi: mt76: connac: add support to set ifs time by mcu command 080ca19cc686 wifi: mt76: mt7996: use correct phy for background radar event 2c163f1812a3 wifi: mt76: mt7996: fix WA event ring size b511a437ace4 wifi: mt76: mt7996: add muru support ece67c98dc1c wifi: mt76: mt7996: increase tx token size 7c2515d85117 wifi: mt76: mt7921e: fix init command fail with enabled device 30706095c566 wifi: mt76: mt7915: move sta_poll_list and sta_poll_lock in mt76_dev b06ed10ee271 wifi: mt76: mt7603: rely on shared sta_poll_list and sta_poll_lock b59bdae339de wifi: mt76: mt7615: rely on shared sta_poll_list and sta_poll_lock 6da2e0e4ef54 wifi: mt76: mt7996: rely on shared sta_poll_list and sta_poll_lock b19d3ad88e8b wifi: mt76: mt7921: rely on shared sta_poll_list and sta_poll_lock 595b033275a3 wifi: mt76: mt7915: move poll_list in mt76_wcid 16fcad171849 wifi: mt76: mt7603: rely on shared poll_list field e19f84091d2e wifi: mt76: mt7615: rely on shared poll_list field b87e4dad1e84 wifi: mt76: mt7996: rely on shared poll_list field 6d7950e258d0 wifi: mt76: mt7921: rely on shared poll_list field f5c5eece5038 wifi: mt76: move ampdu_state in mt76_wcid 7e44467469fe mt76: connac: move more mt7921/mt7915 mac shared code in connac lib 39a70710ddcd wifi: mt76: move rate info in mt76_vif 0dc4326991df wifi: mt76: connac: move connac3 definitions in mt76_connac3_mac.h 29cfabbb4b90 wifi: mt76: connac: add connac3 mac library d60b401867f4 linux-firmware: update firmware for MT7922 WiFi device 9404601a6c97 linux-firmware: update firmware for MT7922 WiFi device 2f851902d6b1 linux-firmware: update firmware for MT7921 WiFi device f36b921692b9 Revert "wifi: mt76: mt76x02: remove WEP support c50be0b54cdd wifi: mt76: mt7915: fix capabilities in non-AP mode d7d7479b00e9 wifi: mt7915: fix beaconing in mesh mode 1377f586c6f5 wifi: mt7915: move capability check to start_ap Signed-off-by: Felix Fietkau <nbd@nbd.name> (cherry picked from commit 01885bc6a33dbfa6f3c9e97778fd8f4f60e2514f) (cherry picked from commit 86ebaef5d427c5732847168f6ceeda12bf528414)
* netfilter: fix typo in nf-socket and nf-tproxy kconfigChristian Marangi2023-06-231-2/+2
| | | | | | | | | Fix a typo where the wrong KCONFIG was used and fix selecting the correct kernel config option to use these packages. Fixes: 4f443c885ded ("netfilter: separate packages for kmod-ipt-socket and kmod-ipt-tproxy") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit 3ebebf08be950a8a0f3bf5b2c3db910621f2cc21)
* mac80211: always use mac80211 loss detectionDavid Bauer2023-06-231-0/+36
| | | | | | | | | | | | | ath10k does not report excessive loss in case of broken block-ack sessions. The loss is communicated to the host-os, but ath10k does not trigger a low-ack events by itself. The mac80211 framework for loss detection however detects this circumstance well in case of ath10k. So use it regardless of ath10k's own loss detection mechanism. Signed-off-by: David Bauer <mail@david-bauer.net> (cherry picked from commit ed816f6ba8b5e3df609e5fc53f7bcb09bdaa16be)
* kernel: netdevices: change armvirt references to armsrMathew McBride2023-06-131-4/+4
| | | | | | | armvirt target has been renamed to armsr (Arm SystemReady) Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit c0bcfde58e751d674adfac51944df9e20ab978e4)
* kernel: kmod-amazon-ena: move to top level netdevicesMathew McBride2023-06-131-1/+15
| | | | | | | | | The Amazon ENA network devices are also used on the AWS Arm (Graviton) instance types, so move it from the x86-only module file to the top level netdevices. Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit 3a7c8fd15e89237c8c9db62393d057f3a47429d2)
* kernel: modules: fix mdio-bus-mux descriptionLuiz Angelo Daros de Luca2023-06-131-1/+1
| | | | | | | | Simple error during copy/paste Fixes: 2dbeb607251b ("kernel: add mdio-bus-mux support") Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> (cherry picked from commit 1e4bc13eaa3fdba897ca1721b2bfe9f2dbb30770)
* qca-nss-dp: fix oops in nss_dp_probePetr Štetiar2023-06-121-2/+3
| | | | | | | | | | | | | | | | | | | | Currently kernel crashes when of_phy_connect has issues: Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000308 ... pc : phy_attached_print+0x28/0x1b0 lr : phy_attached_info+0x14/0x20 ... Call trace: phy_attached_print+0x28/0x1b0 phy_attached_info+0x14/0x20 nss_dp_adjust_link+0x544/0x6c4 [qca_nss_dp] of_phy_connect returns either pointer or NULL, so can't be checked with IS_ERR macro. Signed-off-by: Petr Štetiar <ynezz@true.cz> (cherry picked from commit 38c7cf0e69aeefdec44d513307732e4daf7d9794)
* mac80211: ath11k: sync with ath-nextRobert Marko2023-06-1218-8/+2691
| | | | | | | | | | | Synchronize the ath11k backports with the current ath-next tree. This introduces support for MBSSID and EMA, adds factory test mode and some new HTT stats. Tested-by: Francisco G Luna <frangonlun@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit acde5271a68835f51185aae1b11343439a9d4cab)
* mac80211: backport EMA beacon supportRobert Marko2023-06-122-2/+374
| | | | | | | | | Backport EMA beacon support from kernel 6.4. It is required for MBSSID/EMA suport in ath11k that will follow. Tested-by: Francisco G Luna <frangonlun@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 84b5735b4c59c8fcb3db647430a4ffd574fb10a3)
* kernel: add mdio-bus-mux supportMathew McBride2023-06-121-0/+15
| | | | | | | | | | The MDIO bus multiplexing framework is used by some drivers such as dwmac-sun8i. As this is a per-driver requirement, set it to be hidden in the menu. Signed-off-by: Mathew McBride <matt@traverse.com.au> (cherry picked from commit 2dbeb607251b75b506dcc8f1294cd9ed0bac9694)
* netfilter: fix typo in kmod-nft-dup-inetKevin Darbyshire-Bryant2023-06-081-1/+1
| | | | | | | Fix typo of 'family' in a7e9445975 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> (cherry picked from commit 191742eb8ddc4353eedf71a327fb17a11c5a3a99)
* ubnt-ledbar: depend on mediatek and ramips subtargetsTomasz Maciej Nowak2023-06-081-1/+1
| | | | | | | | It's only used on devices in mt7621 and mt7622 subtargets, so no reason to compile it for others. Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> (cherry picked from commit e81298463ed45cd03d45837c12f4c0a4b85f6cd4)
* netfilter: add kmod-nft-dup-inetMichał Kwiatek2023-05-311-1/+21
| | | | | | | Add kmod-nft-dup-inet package to allow packet duplication in ip/ip6/inet nftables family Signed-off-by: Michał Kwiatek <michal@kwiatek.it> (cherry picked from commit a7e9445975f832db887e6044d7e84220d2a68cf1)
* uml: exclude some /arch/x86 optimizationsChristian Lamparter2023-05-241-0/+6
| | | | | | | | | | | | | The x86_64 UML target wants to include SSSE3 optimized crypto code which lives under /arch/x86/crypto. However, these are not built and this causes an error. | ERROR: module '[...]/arch/x86/crypto/sha512-ssse3.ko' is missing. | make[3]: *** [modules/crypto.mk:990: [...]/kmod-crypto-sha512_5.15.112-1_x86_64.ipk] Error 1 Signed-off-by: Christian Lamparter <chunkeey@gmail.com> (cherry picked from commit 959563fb813890e478bf0a51523cd84d54b9af91) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mac80211: brcm: drop brcmfmac patch waiting for register_wiphy()Rafał Miłecki2023-05-242-65/+1
| | | | | | | | | | | | | | | | That was a workaround for OpenWrt generation of config files. This patch was used to postpone returning from probe function until loading firmware and calling register_wiphy(). All of that is not needed anymore thanks to the ieee80211 hotplug.d script introduced in the commit 5f8f8a366136 ("base-files, mac80211, broadcom-wl: wifi detection and configuration"). That takes care of generating /etc/config/wireless entries even if wireless device appears late in the booting process. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> (cherry picked from commit bd262663142e90f64f1c256b3e6b2b979c1022c0) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: qca-ssdk: backport support for building as kernel moduleRobert Marko2023-05-234-2/+340
| | | | | | | | | | | | | | | Currently, SSDK is rather special in the sense that its not being built as a proper out of tree module at all but rather like a userspace application and that involves a lot of make magic which unfortunately broke with make version 4.4 and newer. Luckily QCA finally added a way to build SSDK as an out of tree module and it uses the kernel buildsystem which makes it compile with make 4.4 as well. So lets backport the support for it and switch to using it. Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 957f1ee85eb243c5c7397b1e3842a3c61a6b852f)
* kernel: disable IGD (video DRM) supportPhilip Prindeville2023-05-211-1/+3
| | | | | | | | | | | | | IGD is only useful when accelerating a VM guest that wants to direct render to memory in the host's framebuffer, but since OpenWrt typically runs on headless hardware, this serves no purpose. Also build vfio with VFIO_NOIOMMU undefined (to get all of the code enabled), but allow it to be enabled via boot-time modparams settings (or at run-time via sysfs writes to "/sys/module/vfio/parameters/enable_unsafe_noiommu_mode". Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* kernel: net: add support for kernel tlsTiago Gaspar2023-05-201-0/+19
| | | | | | | | | | Add ktls (Kernel TLS) kmods to enable TLS support in kernel (allowing TLS offload when the network card supports it) Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com> (added disabled symbols) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: other: adjust paths for new locationJohn Audia2023-05-181-2/+2
| | | | | | | | | This upstream commit[1] moves drivers/bus/mhi/core/ to drivers/bus/mhi/host/ so we need to correct for that here. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.15.112&id=9fbf10148f31a63b6d8c2b0e56cb97eb173d600b Signed-off-by: John Audia <therealgraysky@proton.me>
* gpio-button-hotplug: do not error on interrupt attached keysTim Harvey2023-05-181-0/+7
| | | | | | | | | | | | The Linux gpio-keys driver bindings allow for GPIO attached or interrupt attached keys. Currently if an interrupt attached key is encountered gpio_keys_button_probe() will fail due to not being able to get a gpio descriptor: gpio-keys: probe of gpio-keys failed with error -2 Skip the failure in the case of interrupt attached keys to resolve this. Signed-off-by: Tim Harvey <tharvey@gateworks.com>
* ksmbd: removeRosen Penev2023-05-182-84/+0
| | | | | | In tree ksmbd is available with 5.15 and is better updated. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* linux/modules: add ksmbd support for 5.15Rosen Penev2023-05-181-0/+37
| | | | | | | 5.15 is the first version to come with ksmbd. Use it instead of the module as the linux one is better maintained. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* kernel: modules: split smbfs-common from cifsJohn Thomson2023-05-181-3/+18
| | | | | | | | | This kernel config symbol is a shared library used for both CIFS and the in-tree SMB_SERVER. Split it out into kmod-fs-smbfs-common from kmod-fs-cifs, and depend on it, so that later in-tree ksmbd may also depend on it. Signed-off-by: John Thomson <git@johnthomson.fastmail.com.au>
* treewide: replace AUTORELEASE with real PKG_RELEASETianling Shen2023-05-189-9/+9
| | | | | | | | | | | | | | | | | | Based on Paul Fertser <fercerpav@gmail.com>'s guidance: Change AUTORELEASE in rules.mk to: ``` AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) ``` then update all affected packages by: ``` for i in $(git grep -l PKG_RELEASE:=.*AUTORELEASE | sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/clean done ``` Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* mac80211: fix mt7601u firmware path and refresh patchesDaniel Golle2023-05-186-8/+65
| | | | | | | Import patch fixing the updated firmware path of mt7601u.bin. Refresh patches while at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* mt76: add MT7981 firmware packagesDavid Bauer2023-05-181-0/+16
| | | | | | Package the firmware required for MT7981 to bring up the radio. Signed-off-by: David Bauer <mail@david-bauer.net>
* mt76: update to latest HEADDavid Bauer2023-05-183-343/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 969b7b5e wifi: mt76: mt7915: add support for MT7981 cddbd796 linux-firmware: add firmware for MT7981 c69b0239 linux-firmware: update firmware for MT7921 WiFi device c85a0f2f mt7921: remove duplicated line 0cbe1376 wifi: mt76: mt7915: drop redundant prefix of mt7915_txpower_puts() b490c6c7 wifi: mt76: fix 6GHz high channel not be scanned db5a8f70 wifi: mt76: move shared mac definitions in mt76_connac2_mac.h 3963ab2f wifi: mt76: mt7921: get rid of eeprom.h c09f943d wifi: mt76: add mt76_connac_gen_ppe_thresh utility routine 28ea992c wifi: mt76: get rid of unused sta_ps callbacks 2936b036 wifi: mt76: add mt76_connac_irq_enable utility routine 482d2a76 wifi: mt76: move irq_tasklet in mt76_dev struct 88d1b002 wifi: mt76: mt7996: enable mesh HW amsdu/de-amsdu support 577fbd47 linux-firmware: update firmware for MT7916 32be54b5 linux-firmware: update firmware for MT7921 WiFi device 4e2fad04 linux-firmware: update firmware for MT7922 WiFi device f8793b1a linux-firmware: update firmware for MT7921 WiFi device 91e6ad2a linux-firmware: update firmware for MT7921 WiFi device b7a538a3 linux-firmware: update firmware for MT7922 WiFi device e3b5a8cc wifi: mt76: mt7996: enable configured beacon tx rate a18bf481 wifi: mt76: mt7996: enable BSS_CHANGED_MCAST_RATE support f863beed wifi: mt76: mt7996: enable BSS_CHANGED_BASIC_RATES support aedc10d5 wifi: mt76: connac: add nss calculation into mt76_connac2_mac_tx_rate_val() 84a227e5 wifi: mt76: connac: fix txd multicast rate setting a0657180 wifi: mt76: mt7921e: stop chip reset worker in unregister hook fd895347 wifi: mt76: mt7921e: improve reliability of dma reset c9fa8d64 wifi: mt76: mt7921: fix missing unwind goto in `mt7921u_probe` c1baa812 mt76: mt7921: fix kernel panic by accessing unallocated eeprom.data ca180889 wifi: mt76: move mcu_uni_event and mcu_reg_event in common code 98fbca7a wifi: mt76: mt7996: enable coredump support be1ff24e wifi: mt76: mt7996: add full system reset knobs into debugfs b7a6c0ef wifi: mt76: mt7996: enable full system reset support 46f28e75 wifi: mt76: mt7921: enable p2p support 6a7e41c3 wifi: mt76: mt7921e: Set memory space enable in PCI_COMMAND if unset 084e6de7 wifi: mt76: mt7921: use driver flags rather than mac80211 flags to mcu c66e7a1a wifi: mt76: mt7921: introduce mt7921_get_mac80211_ops utility routine 821caac5 wifi: mt76: mt7996: fix eeprom tx path bitfields 9ae2569b wifi: mt76: mt7996: remove mt7996_mcu_set_pm() 3244d176 wifi: mt76: mt7996: init mpdu density cap 210a558a wifi: mt76: mt7996: fix pointer calculation in ie countdown event 207c92bb wifi: mt76: mt7996: remove unused eeprom band selection 16a24667 wifi: mt76: mt7996: let non-bufferable MMPDUs use correct hw queue d39bb7c8 wifi: mt76: mt7996: remove mt7996_mcu_beacon_check_caps() 4046b591 wifi: mt76: mt7915: remove mt7915_mcu_beacon_check_caps() d63cb85c wifi: mt76: add missing locking to protect against concurrent rx/status calls 22f1b777 mt76: adjust for ieee80211_is_bufferable_mmpdu API change 8ecf551c wifi: mt76: set NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 on supported drivers efa44cb5 wifi: mt76: ignore key disable commands 56f0cd4d wifi: mt76: mt7915 add tc offloading support 021ded36 tools: Fix compile error with glibc Signed-off-by: David Bauer <mail@david-bauer.net>
* kernel: ltq-ptm: fix compilation warning for vr9Christian Marangi2023-05-141-1/+0
| | | | | | | | | | | | Fix compilation warning for unused variable for vr9. Fix compilation warning: /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/ltq-ptm-vr9/ltq-ptm/ifxmips_ptm_vdsl.c: In function 'mailbox_irq_handler': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/ltq-ptm-vr9/ltq-ptm/ifxmips_ptm_vdsl.c:560:9: error: unused variable 'i' [-Werror=unused-variable] 560 | int i; | ^ cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: ltq-vdsl-vr9: fix multiple compilation warningChristian Marangi2023-05-142-0/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix multiple compilation warning for fallthrough and unused functions. Fix compilation warning: home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_device_vrx.c: In function 'DSL_DRV_VRX_TestParametersFeUpdate': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_device_vrx.c:3359:17: error: unused variable 'nMsgId' [-Werror=unused-variable] 3359 | DSL_uint16_t nMsgId = EVT_PMD_TESTPARAMSGET; | ^~~~~~ /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_device_vrx.c: In function 'DSL_DRV_DEV_AutobootHandleTraining': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_device_vrx.c:8310:19: error: this statement may fall through [-Werror=implicit-fallthrough=] 8310 | bPreFail = DSL_TRUE; | ~~~~~~~~~^~~~~~~~~~ /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_device_vrx.c:8316:7: note: here 8316 | case DSL_LINESTATE_EXCEPTION: | ^~~~ cc1: all warnings being treated as errors /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/pm/drv_dsl_cpe_pm_core.c: In function 'DSL_DRV_PM_CountersReset': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/pm/drv_dsl_cpe_pm_core.c:2328:7: error: this statement may fall through [-Werror=implicit-fallthrough=] 2328 | if (ResetType == DSL_PM_RESET_HISTORY) | ^ /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/pm/drv_dsl_cpe_pm_core.c:2331:4: note: here 2331 | case DSL_PM_RESET_TOTAL: | ^~~~ cc1: all warnings being treated as errors /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/common/drv_dsl_cpe_os_linux.c: In function 'DSL_ModuleCleanup': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/common/drv_dsl_cpe_os_linux.c:1266:13: error: assignment to 'dev_t' {aka 'unsigned int'} from 'void *' makes integer from pointer without a cast [-Werror=int-conversion] 1266 | dsl_devt = NULL; | ^ /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/common/drv_dsl_cpe_os_linux.c: At top level: /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/common/drv_dsl_cpe_os_linux.c:1178:13: error: 'DSL_DRV_NlSendMsg' defined but not used [-Werror=unused-function] 1178 | static void DSL_DRV_NlSendMsg(DSL_char_t* pMsg) | ^~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_dsl_cpe_api-4.17.18.6/src/device/drv_dsl_cpe_msg_vrx.c:2459:20: error: 'DSL_DRV_VRX_SpreadArray' defined but not used [-Werror=unused-function] 2459 | static DSL_Error_t DSL_DRV_VRX_SpreadArray( | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* kernel: ltq-vdsl-vr9-mei: fix compilation warningChristian Marangi2023-05-141-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix simple compilation warning due to cast and wrong include. Fix compilation warning: In file included from ./include/linux/compat.h:18, from ./include/linux/filter.h:10, from ./include/net/sock.h:59, from /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:70: ./include/uapi/linux/aio_abi.h:77:45: error: "__LITTLE_ENDIAN" is not defined, evaluates to 0 [-Werror=undef] 77 | #if defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN) | ^~~~~~~~~~~~~~~ /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c: In function 'MEI_MeminfoProcPerDevGet': /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:1715:56: error: format '%X' expects argument of type 'unsigned int', but argument 4 has type 'IFX_uint8_t *' {aka 'unsigned char *'} [-Werror=format=] 1715 | seq_printf(s, "chunk[%02d]: addr = 0x%08X (0x%08X), " | ~~~^ | | | unsigned int | %08hhn ...... 1721 | chunkIdx, pChunk[chunkIdx].pImageChunk_aligned, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | IFX_uint8_t * {aka unsigned char *} /home/ansuel/openwrt-ansuel/openwrt/build_dir/target-mips-openwrt-linux-musl_musl/linux-lantiq_xrx200/drv_mei_cpe-1.5.17.6/src/drv_mei_cpe_linux.c:1715:64: error: format '%X' expects argument of type 'unsigned int', but argument 5 has type 'IFX_uint8_t *' {aka 'unsigned char *'} [-Werror=format=] 1715 | seq_printf(s, "chunk[%02d]: addr = 0x%08X (0x%08X), " | ~~~^ | | | unsigned int | %08hhn ...... 1722 | pChunk[chunkIdx].pImageChunk_allocated, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | IFX_uint8_t * {aka unsigned char *} cc1: all warnings being treated as errors Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>