Tianling Shen
1ef0d0e422
mac80211: backport RTL8812AU/RTL8821AU support
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-11-13 20:24:42 +08:00
Tianling Shen
9439570689
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-22 21:33:28 +08:00
Felix Fietkau
87033c3a0b
mac80211: improve single-wiphy multi-radio support
...
- add support for configuring allowed radios for a vif
- add support for monitor mode on multiple channels
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-22 14:40:42 +02:00
Tianling Shen
7e754916c7
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-13 20:41:26 +08:00
Felix Fietkau
5d962dc79b
mac80211: fix letting drivers iterate over keys
...
Skip non-uploaded keys to avoid corner cases
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-13 12:56:03 +02:00
Tianling Shen
b3a41b80d4
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-06 15:08:12 +08:00
Felix Fietkau
ec61ccc0d3
mac80211: backport upstream DFS fixes
...
Mostly MLO related
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-05 09:45:41 +02:00
Tianling Shen
40a0abec18
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-05 14:09:00 +08:00
Felix Fietkau
b9e8013716
mac80211: update to version 6.11.2
...
Adds a number of minor fixes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-04 19:18:16 +02:00
Tianling Shen
acbc0165f4
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-02 20:25:37 +08:00
Felix Fietkau
a9540a4e33
mac80211: do not pass a stopped vif to the driver on get_txpower
...
Fixes potential crashes in various drivers when checking the status of
interfaces that are down
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-10-02 12:39:34 +02:00
Tianling Shen
4664782500
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-01 14:50:54 +08:00
Felix Fietkau
2422dddf7a
mac80211: reorder patches in subsys/
...
Close some patch numbering gaps left behind by updates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-09-30 11:32:38 +02:00
Tianling Shen
a148d38ced
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-09-27 15:14:03 +08:00
Shiji Yang
a4c95f1444
mac80211: remove outdated patches
...
The only supported kernel in the main branch now is version 6.6. It's
time to clean up these useless codes and patches.
Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2024-09-27 08:19:19 +02:00
Felix Fietkau
384d079fd8
mac80211: update to version 6.11
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-09-26 10:55:11 +02:00
Tianling Shen
ad09da8e6b
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-09-24 16:47:24 +08:00
Felix Fietkau
1f4bd694aa
mac80211: introduce EHT rate support in AQL airtime
...
Backport required by mt76 for decent throughput with EHT rates
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-09-24 09:04:30 +02:00
Tianling Shen
6594944214
mac80211: refresh patches
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-15 11:28:47 +08:00
Tianling Shen
0f106d5619
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-15 11:14:50 +08:00
Felix Fietkau
1bfcc1ea8a
mac80211: update to version 6.9.9
...
Brings lots of driver updates and API changes needed for mt76 updates.
Disable iwlwifi and ath11k on 5.15, since backport is too difficult,
and the only remaining targets won't need those drivers.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-07-12 16:38:28 +02:00
Tianling Shen
e7571a6be7
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-12 00:52:09 +08:00
Felix Fietkau
c640f7b937
mac80211: clear vif private data in order to fix accidental reuse
...
Fixes potential issues when bringing an interface down and then up again
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-07-11 15:07:58 +02:00
Tianling Shen
db35b0ef9f
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-21 02:27:01 +08:00
Christian Marangi
e6e4d90b69
mac80211: backport upstream patch for tim->virtual_map flex array warn
...
Backport upstream patch for tim->virtual_map flex array warning for
invalid write.
This has been notice with the bump of ath10k-ct to version 6.7.
Link: https://github.com/openwrt/openwrt/pull/15760
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-19 23:38:27 +02:00
Tianling Shen
62f7ce033b
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-18 22:10:50 +08:00
Christian Marangi
0134270319
mac80211: backport RX timestamp flags patch
...
Backport RX timestamp flags patch needed for ath10k-ct to compile with
newer versions.
Link: https://github.com/openwrt/openwrt/pull/15735
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-06-18 14:09:42 +02:00
Tianling Shen
e8c6664a26
Merge Offcial Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-06-07 16:37:21 +08:00
Felix Fietkau
b9650de249
mac80211: backport an upstream patch needed by mt76 for AES_GMAC key support
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-06-07 06:02:13 +02:00
Tianling Shen
9a28409897
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-04-16 15:32:01 +08:00
Felix Fietkau
ab9a29a320
mac80211: improve mesh fast tx patch
...
Change hash key struct size for faster lookup.
Fix clearing cache entries for forwarding
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-04-13 16:33:45 +02:00
Tianling Shen
c578dc1bcd
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-03-17 00:51:01 +08:00
Felix Fietkau
dea42f67ab
mac80211: fix a crash triggered by sta disconnect with per-sta VLANs
...
Reported-by: ranygh@riseup.net
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-03-16 08:50:52 +01:00
Tianling Shen
259611692d
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2024-03-16 13:57:23 +08:00
Felix Fietkau
163c87dfc2
mac80211: fix another regression in the broadcast AQL patch
...
Add a separate bit in struct ieee80211_tx_info to indicate airtime tracked
as broadcast/multicast. This avoids a race condition where airtime from
stations that were just removed wasn't getting subtracted from the total
PHY airtime.
Fixes: 95e633efbd ("mac80211: add AQL support for broadcast/multicast packets")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-03-15 20:37:21 +01:00
ZiMing Mo
f761272538
Merge Official Source
...
Signed-off-by: ZiMing Mo <msylgj@immortalwrt.org>
2024-03-14 21:41:17 +08:00
Weijie Gao
a325c5fa01
mac80211: fix build with linux kernel 6.6
...
Fix build failure with linux kernel 6.6
Related kernel commits:
20b0b53aca43 (genetlink: introduce split op representation)
bffcc6882a1b (genetlink: remove userhdr from struct genl_info)
e9a688bcb193 (random: use rejection sampling for uniform bounded
random integers)
3c202d14a9d7 (prandom: remove prandom_u32_max())
3d2f20ad46f8 (wifi: iwlwifi: Use generic thermal_zone_get_trip()
function)
Signed-off-by: Weijie Gao <hackpascal@gmail.com>
2024-03-11 20:17:26 +01:00
Tianling Shen
01bf2bdda1
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@gmail.com>
2024-03-09 13:53:56 +08:00
Felix Fietkau
1f5fd5cb97
mac80211: fix a regression in the broadcast AQL patch
...
The AQL limit for buffered broadcast packets is higher than the maximum
total pending airtime limit. This can get unicast data stuck whenever there
is too much pending broadcast data. Fix this by excluding broadcast AQL from
the total limit.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-03-08 22:46:32 +01:00
Tianling Shen
721c3a8db1
mac80211: add ath10k sdio cards support
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-28 00:17:16 +08:00
Tianling Shen
acb88c40ea
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-02-23 23:28:51 +08:00
Felix Fietkau
2a752ff028
mac80211: add a fix for racy drv_sta_rc_update calls
...
Fixes potential crash issues in mt76 and other drivers
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-02-21 15:28:53 +01:00
Felix Fietkau
95e633efbd
mac80211: add AQL support for broadcast/multicast packets
...
Should improve performance/reliability with lots of mcast packets
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-02-21 10:56:22 +01:00
Robert Marko
fb45887e85
mac80211: update to 6.6.15
...
Update backports to the latest 6.6 point release.
Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-02-21 10:56:22 +01:00
Tianling Shen
9b7e61b88e
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-28 12:19:24 +08:00
Álvaro Fernández Rojas
8dcc695633
mac80211: brcm: remove alternative DT firmware names patch
...
This patch has been reverted in the Raspberry Pi linux repository.
Also refresh the rest of the patches.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2024-01-26 18:29:22 +01:00
Tianling Shen
9ec7fefa35
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-09 20:21:38 +08:00
David Bauer
1278d47bea
mac80211: avoid crashing on invalid band info
...
Frequent crashes have been observed on MT7916 based platforms. While the
root of these crashes are currently unknown, they happen when decoding
rate information of connected STAs in AP mode. The rate-information is
associated with a band which is not available on the PHY.
Check for this condition in order to avoid crashing the whole system.
This patch should be removed once the roout cause has been found and
fixed.
Link: https://github.com/freifunk-gluon/gluon/issues/2980
Signed-off-by: David Bauer <mail@david-bauer.net>
2024-01-07 23:06:17 +01:00
Tianling Shen
445458316b
Merge Official Source
...
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-01-05 11:05:31 +08:00
Felix Fietkau
438a97fab6
mac80211: fix a race condition related to enabling fast-xmit
...
fast-xmit must only be enabled after the sta has been uploaded to the driver,
otherwise it could end up passing the not-yet-uploaded sta via drv_tx calls
to the driver, leading to potential crashes because of uninitialized drv_priv
data.
Add a missing sta->uploaded check and re-check fast xmit after inserting a sta.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2024-01-04 18:01:31 +01:00