
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.76 Manually rebased: bcm27xx/patches-6.6/950-0519-usb-dwc3-Set-DMA-and-coherent-masks-early.patch imx/patches-6.6/600-PCI-imx6-Start-link-at-max-gen-first-for-IMX8MM-and-IMX8MP.patch Removed upstreamed: bcm27xx/patches-6.6/950-1446-media-i2c-ov9282-Correct-the-exposure-offset.patch[1] bcm47xx/patches-6.6/701-bgmac-reduce-max-frame-size-to-support-just-MTU-1500.patch[2] bcm53xx/patches-6.6/700-bgmac-reduce-max-frame-size-to-support-just-MTU-1500.patch[3] ramips/patches-6.6/003-v6.14-clk-ralink-mtmips-remove-duplicated-xtal-clock-for-Ralink.patch[4] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.76&id=11c7649c9ec3dcaf0a7760551ad30747d9e02d81 2, 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.76&id=5e6e723675e54ced5200bcc367e2526badc4070c 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.76&id=d0edcd0d18d700d76c61c091a24568b8b8c3b387 Build system: x86/64 Build-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Run-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/17822 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
60 lines
2.0 KiB
Diff
60 lines
2.0 KiB
Diff
From 686c603f67ae87bf21a61b5e4b1564443f41c3ee Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Thu, 20 Oct 2022 03:34:43 +0200
|
|
Subject: [PATCH] net: permit ieee80211_ptr even with no CFG82111 support
|
|
|
|
Introduce a new flag CONFIG_CFG80211_HEADERS to compile in ieee80211_ptr
|
|
even if CFG80211 support is not compiled in. This is needed for the
|
|
backports project and for any downstream wireless driver that loads in
|
|
the kernel dynamically.
|
|
|
|
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
|
---
|
|
include/linux/netdevice.h | 2 +-
|
|
net/batman-adv/hard-interface.c | 2 +-
|
|
net/wireless/Kconfig | 4 ++++
|
|
3 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
--- a/include/linux/netdevice.h
|
|
+++ b/include/linux/netdevice.h
|
|
@@ -2243,7 +2243,7 @@ struct net_device {
|
|
#if IS_ENABLED(CONFIG_AX25)
|
|
struct ax25_dev __rcu *ax25_ptr;
|
|
#endif
|
|
-#if IS_ENABLED(CONFIG_CFG80211)
|
|
+#if IS_ENABLED(CONFIG_CFG80211_HEADERS)
|
|
struct wireless_dev *ieee80211_ptr;
|
|
#endif
|
|
#if IS_ENABLED(CONFIG_IEEE802154) || IS_ENABLED(CONFIG_6LOWPAN)
|
|
--- a/net/batman-adv/hard-interface.c
|
|
+++ b/net/batman-adv/hard-interface.c
|
|
@@ -309,7 +309,7 @@ static bool batadv_is_cfg80211_netdev(st
|
|
if (!net_device)
|
|
return false;
|
|
|
|
-#if IS_ENABLED(CONFIG_CFG80211)
|
|
+#if IS_ENABLED(CONFIG_CFG80211_HEADERS)
|
|
/* cfg80211 drivers have to set ieee80211_ptr */
|
|
if (net_device->ieee80211_ptr)
|
|
return true;
|
|
--- a/net/wireless/Kconfig
|
|
+++ b/net/wireless/Kconfig
|
|
@@ -26,6 +26,7 @@ config CFG80211
|
|
# using a different algorithm, though right now they shouldn't
|
|
# (this is here rather than below to allow it to be a module)
|
|
select CRYPTO_SHA256 if CFG80211_USE_KERNEL_REGDB_KEYS
|
|
+ select CFG80211_HEADERS
|
|
help
|
|
cfg80211 is the Linux wireless LAN (802.11) configuration API.
|
|
Enable this if you have a wireless device.
|
|
@@ -36,6 +37,9 @@ config CFG80211
|
|
|
|
When built as a module it will be called cfg80211.
|
|
|
|
+config CFG80211_HEADERS
|
|
+ bool "cfg80211 - headers support"
|
|
+
|
|
if CFG80211
|
|
|
|
config NL80211_TESTMODE
|