mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-25 08:21:14 +00:00
ed2015c386
The following patches: * 972-ath10k_fix-crash-due-to-wrong-handling-of-peer_bw_rxnss_override-parameter.patch * 973-ath10k_fix-band_center_freq-handling-for-VHT160-in-recent-firmwares.patch are replaced by this commit in the upstream kernel: * 3db24065c2c8 ("ath10k: enable VHT160 and VHT80+80 modes") The following patches were applied upstream: * 001-rt2800-enable-MFP-support-unconditionally.patch * 090-wireless-Use-linux-stddef.h-instead-of-stddef.h.patch The rtw88 driver is now split into multiple kernel modules, just put it all into one OpenWrt kernel package. rtl8812au-ct was patched to compile against the mac80211 from kernel 5.8, but not runtime tested. Add a patch which fixes ath10k on IPQ40XX, this patch was send upstream and fixes a crash when loading ath10k on this SoC. Tested-by: Stefan Lippers-Hollmann <s.l-h@gmx.de> [ipq40xx/ map-ac2200] Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
35 lines
945 B
Diff
35 lines
945 B
Diff
--- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c
|
|
+++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c
|
|
@@ -11470,6 +11470,15 @@ static const struct attribute_group ipw_
|
|
.attrs = ipw_sysfs_entries,
|
|
};
|
|
|
|
+#if LINUX_VERSION_IS_LESS(4,10,0)
|
|
+static int __change_mtu(struct net_device *ndev, int new_mtu){
|
|
+ if (new_mtu < 68 || new_mtu > LIBIPW_DATA_LEN)
|
|
+ return -EINVAL;
|
|
+ ndev->mtu = new_mtu;
|
|
+ return 0;
|
|
+}
|
|
+#endif
|
|
+
|
|
#ifdef CPTCFG_IPW2200_PROMISCUOUS
|
|
static int ipw_prom_open(struct net_device *dev)
|
|
{
|
|
@@ -11518,15 +11527,6 @@ static netdev_tx_t ipw_prom_hard_start_x
|
|
return NETDEV_TX_OK;
|
|
}
|
|
|
|
-#if LINUX_VERSION_IS_LESS(4,10,0)
|
|
-static int __change_mtu(struct net_device *ndev, int new_mtu){
|
|
- if (new_mtu < 68 || new_mtu > LIBIPW_DATA_LEN)
|
|
- return -EINVAL;
|
|
- ndev->mtu = new_mtu;
|
|
- return 0;
|
|
-}
|
|
-#endif
|
|
-
|
|
static const struct net_device_ops ipw_prom_netdev_ops = {
|
|
#if LINUX_VERSION_IS_LESS(4,10,0)
|
|
.ndo_change_mtu = __change_mtu,
|