Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main nss #177

Merged
merged 225 commits into from
Nov 29, 2024
Merged

Main nss #177

merged 225 commits into from
Nov 29, 2024

Conversation

rmandrad
Copy link
Owner

Thanks for your contribution to OpenWrt!

To help keep the codebase consistent and readable,
and to help people review your contribution,
we ask you to follow the rules you find in the wiki at this link
https://openwrt.org/submitting-patches

Please remove this message before posting the pull request.

robimarko and others added 30 commits November 21, 2024 17:20
…g APK

Currently, when you install a package that ships uci-defaults scripts they
are not getting executed during package installation.

For example, if you install a new LuCI theme it ships a uci-defaults script
to add it to the UCI LuCI config so the theme is actually selectable but
that does not happen until the device is rebooted so that uci-defaults
script is actually executed.

It turns out that the recipe for post-install is the issue since it will
include contents of postinst-pkg before the call to default_postinist.
This is an issue since postinst-pkg will exit with code 0 before we ever
reach the call to default_postinist.

So, lets simply make the call to default_postinist before postinst-pkg
inclusion which is what OPKG based installation does.

The same issue affects pre-deinstall script but its not actually being hit
since we dont seem to be actually even generating prerm-pkg scripts but
lets fix this theoretical issue as well.

Fixes: openwrt#16987
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17023
Signed-off-by: Robert Marko <[email protected]>
Currently, postrm scripts are not being executed when package is removed
with APK since they are not being included at all.

So, lets use APK-s support for post-deinstall scripts and ship our postrm
scripts if packages define them.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17023
Signed-off-by: Robert Marko <[email protected]>
Add anchor to name search so that we don't inadvertently filter out
packages containing, say, "kernel-" as part of their name.

Fixes: openwrt/packages#25372
Signed-off-by: Eric Fahlgren <[email protected]>
Link: openwrt#17032
Signed-off-by: Robert Marko <[email protected]>
Popular bpi-r3 pwm fans like this one

  https://www.amazon.com/youyeetoo-Barebone-Fan-BPI-R3-Integrated/dp/B0CCCTY8PS

will not work properly with current openwrt-23.05/24.10 firmware.
Trying different pwm setting

  echo $value > /sys/devices/platform/pwm-fan/hwmon/hwmon1/pwm1

I found:

  pwm1 value     fan rotation speed   cpu temperature     notes
  -----------------------------------------------------------------
    0            maximal              31.5 Celsius        too noisy
   40            optimal              35.2 Celsius        no noise hearable
   95            minimal
   above 95      does not rotate      55.5 Celsius
  -----------------------------------------------------------------

At the moment we have following cooling levels:

  cooling-levels = <255 96 0>;

for cpu-active-high, cpu-active-medium and cpu-active-low modes correspondingly.
Thus only cpu-active-high and cpu-active-low are usable. I think this is wrong.

This patch fixes cpu-active-medium settings for bpi-r3 board.

PS: I know, the patch is not ideal as it can break pwm fan for some users.
    There are some peoples that use handmade cooling solutions, but:
      * discussed cooler is the only 'official' pwm cooler for bpi-r3
        available on the market.
      * most peoples will use passive cooling available on the market or
        the discussed cooler.
      * the pwm-fan dts section was added before the official cooler
        appears on the market.
    Thus it should not be a lot of harm from this fix.

Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Link: openwrt#16974
Signed-off-by: Robert Marko <[email protected]>
This reverts commit 3467ea9.

I merged it by accident.

Signed-off-by: Robert Marko <[email protected]>
Fixup capabilities parsing in iw output.

In addition to the normal capabilities iw now also outputs HE MAC, HE
PHY and EHT MAC and EHT PHY capabilities. Exclude them in the parsing.

The grep returns this with mac80211-hwsim:
```
root@OpenWrt:~# iw phy phy0 info | grep 'Capabilities:'
		Capabilities: 0x107e
			HE PHY Capabilities: (0x02bfce0000000000000000):
			EHT PHY Capabilities: (0x7c0000feffff7f01):
			HE PHY Capabilities: (0x02bfce0000000000000000):
			EHT PHY Capabilities: (0x7c0000feffff7f01):
			HE PHY Capabilities: (0x02bf000000000000000000):
		Capabilities: 0x107e
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfc1f3ffeffff7f37):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfc1f3ffeffff7f37):
			HE PHY Capabilities: (0x1cbf000000000000000000):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfefffffeffffff7f):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfefffffeffffff7f):
			HE PHY Capabilities: (0x1cbf000000000000000000):
		Capabilities: 0x107e
```

With busybox 1.36.1 the ht_cap_mask variable will be set to
-72057598332895361. With busybox 1.37.0 it will be set to -1.
Both values are wrong, after this change it will be set to 4222
(0x107E).

Link: openwrt#17043
Signed-off-by: Hauke Mehrtens <[email protected]>
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.62

All patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <[email protected]>
Link: openwrt#16997
Signed-off-by: Hauke Mehrtens <[email protected]>
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.63

Manually rebased:
	bcm27xx/patches-6.6/950-0297-staging-vchiq_arm-Add-36-bit-address-support.patch

All other patches automatically rebased.

Build system: x86/64
Build-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3
Run-tested: x86/64/AMD Cezanne, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3

Signed-off-by: John Audia <[email protected]>
Link: openwrt#16997
Signed-off-by: Hauke Mehrtens <[email protected]>
1. Add sdhc clock for MT7620 and MT76x8 SoCs.
2. Fix clock driver warning for RT2880, RT305x and RT3883.

Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Shiji Yang <[email protected]>
Link: openwrt#17037
Signed-off-by: Hauke Mehrtens <[email protected]>
Commit e52c57b renamed all
network ports to match the faceplate of the Gowin 1U Rack
Mount Server and added the br-lan bridge for the eth* ports.

This commit adds the PoE port to the br-lan bridge and a
br-wan bridge for the two SFP ports so that all ports are
part of the default network configuration.

Signed-off-by: Til Kaiser <[email protected]>
Link: openwrt#16965
Signed-off-by: Hauke Mehrtens <[email protected]>
All new routers are shipped with ubi size 112MB since early September.
Bootloader update required (ask vendor , see wiki)

These partitions weren't used:
firmware_backup
zrsave
config2

Signed-off-by: Romanov Danila <[email protected]>
Link: openwrt#16686
Signed-off-by: Hauke Mehrtens <[email protected]>
Add a generic template include/optee-os.mk to build OP-TEE.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
Add OP-TEE for stm32 boards, with the first being STM32MP135F-DK.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
Add U-Boot for stm32 boards, with the first being STM32MP135F-DK.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
Add ATF for stm32 boards, with the first being STM32MP135F-DK.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
All stm32 devices use BCM43430 Wi-Fi interface in SDIO mode.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
This package contains firmwares provided by Murata.
See https://community.murata.com/.

Murata firmwares are used by wifi chip on stm32 boards.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
This package contains nvram files for Murata's Wi-Fi/Bluetooth modules.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
It is needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
The snd-usb-audio drivers uses media controller if media controller is set.
So add kmod-media-controller as dependency.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
These packages are needed for the stm32/stm32mp1 subtarget.

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
New stm32 target introduces support for stm32mp1 based devices.
For now it includes an initial support of the STM32MP135F-DK device.
The specifications bellow only list supported features.

Specifications
--------------

SOC: STM32MP135FAF7
RAM: 512 MiB
Storage: SD Card
Ethernet: 2x 100 Mbps
Wireless: 2.4GHz Cypress CYW43455 (802.11b/g/n)
LEDs: Heartbeat (Blue)
Buttons: 1x Reset, 1x User (USER2)
USB: 4x 2.0 Type-A

Signed-off-by: Thomas Richard <[email protected]>
Link: openwrt#16716
Signed-off-by: Hauke Mehrtens <[email protected]>
Netatalk v4 reintroduces AppleTalk and this module is required for
layer 3 protocol support.

Module was removed in kernel 4.14 for OpenWrt 18.06 (commmit
14a0131, 22/02/2018). At the time nothing used it as Netatalk v3
did not support AppleTalk.

Not building ipddp feature/module like it was in the past, as
recommended by upstream Netatalk maintainers.

Signed-off-by: Antonio Pastor <[email protected]>
Link: openwrt#16979
Signed-off-by: Hauke Mehrtens <[email protected]>
small change.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt#16913
Signed-off-by: Hauke Mehrtens <[email protected]>
It's common to avoid calling mutex_destroy when done. It's not correct
strictly speaking.

Signed-off-by: Rosen Penev <[email protected]>
Link: openwrt#16753
Signed-off-by: Hauke Mehrtens <[email protected]>
AgustinLorenzo and others added 17 commits November 28, 2024 19:55
Rather than pollute `qca-nss-ecm` with logic specific to ath11k, move
into its own hotplug script managed by mac80211. Also enforce
`qca-nss-ecm` dependency.

Signed-off-by: Sean Khan <[email protected]>
Improve NSS event callback ihandling for better clarity and type safety

This patch modifies ath11k_nss_wifili_event_receive to take a context parameter
, enhancing code clarity by explicitly passing the ath11k_base.

A wrapper function, ath11k_nss_wifili_ext_callback_wrapper, retrieves
the ath11k_base from the net_device's private data, ensuring correct
context handling.

Signed-off-by: Sean Khan <[email protected]>
The firmware for 'ct' does not support ethernet frames, which is
required for partial offload with mac80211

Signed-off-by: Sean Khan <[email protected]>
Mistakenly edited the patch by hand thinking I had incorrectly imported
it from @bs.

Original patch was throwing
```
peer.c:572:1: error: label at end of compound statement is a C23 extension
```

Moved spin_unlocks into exit as that's what it would have been doing
anyways.

Signed-off-by: Sean Khan <[email protected]>
Initial README for the example scripts/configs. Right now it's only for
VLAN setup.

Signed-off-by: Sean Khan <[email protected]>
Rebased against upstream commit 87033
mac80211: improve single-wiphy multi-radio support

Signed-off-by: Sean Khan <[email protected]>
* 802.11 k/v/r now fully works in sae-mixed mode. So we can now switch
  from psk2 (WPA2) to WPA2/WPA3 mixed mode.
* Clean up uncessary configs
* Remove WDS example as it's not applicable in this example

Signed-off-by: Sean Khan <[email protected]>
Change "GRO FRAG" to "Interface" to account for additional information
of other interface features (i.e. tx-checksumming)

Signed-off-by: Sean Khan <[email protected]>
- fix issue #15: minor config mistake in the new nss setup vlan readme guide
- fix formatting of primary subsection displaying too large.

Signed-off-by: Sean Khan <[email protected]>
Signed-off-by: Sean Khan <[email protected]>
(cherry picked from commit 8efd9fedbff95990ffe192f504491fe63e9a7d55)
There is a null pointer bug caused by inconsistent handling of the
`ath11k_base` structure. Previously, functions accessing
`ar->ab` internally, assumed it was always valid. If `ar->ab` was
not properly initialized, this led to null pointer dereferences.

This patch resolves the issue by:
- Explicitly passing `struct ath11k_base *ab` to functions that
  require it, instead of relying on `ar->ab`.
- Replacing all instances of `ar->ab` with `ab` for direct access.

Patch by: Sebastian Gottschall <[email protected]>

Signed-off-by: Sean Khan <[email protected]>
(cherry picked from commit 1f6f55f9c737ece5e3d8156bbe280f84ea4bd480)
Author:     Felix Fietkau <[email protected]>
AuthorDate: Mon Nov 18 11:21:02 2024 +0100
Commit:     Felix Fietkau <[email protected]>
CommitDate: Mon Nov 18 11:44:44 2024 +0100

    mac80211: backport some upstream fixes

    Fix various issues, including potential crashes

    Signed-off-by: Felix Fietkau <[email protected]>

Signed-off-by: Sean Khan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.