Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* https://github.com/coolsnowwolf/lede:
  uhttpd: update to latest Git HEAD (coolsnowwolf#10685)
  mt76: refresh patches (coolsnowwolf#10689)
  • Loading branch information
github-actions[bot] committed Dec 27, 2022
2 parents 9b33b1f + cc75f39 commit 2089904
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 222 deletions.
283 changes: 105 additions & 178 deletions package/kernel/mt76/patches/001-Revert-sync-with-upstream.patch

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ This reverts commit 2575de3aea332837a0784629b11146efa1c55e58.
mt7921/usb.c | 7 ---
7 files changed, 17 insertions(+), 157 deletions(-)

diff --git a/mt7921/init.c b/mt7921/init.c
index 9bf5d9f0..c16aeab0 100644
--- a/mt7921/init.c
+++ b/mt7921/init.c
@@ -26,27 +26,6 @@ static const struct ieee80211_iface_combination if_comb[] = {
@@ -26,27 +26,6 @@ static const struct ieee80211_iface_comb
.max_interfaces = MT7921_MAX_INTERFACES,
.num_different_channels = 1,
.beacon_int_infra_match = true,
Expand Down Expand Up @@ -46,7 +44,7 @@ index 9bf5d9f0..c16aeab0 100644
}
};

@@ -88,19 +67,17 @@ mt7921_init_wiphy(struct ieee80211_hw *hw)
@@ -88,19 +67,17 @@ mt7921_init_wiphy(struct ieee80211_hw *h
hw->sta_data_size = sizeof(struct mt7921_sta);
hw->vif_data_size = sizeof(struct mt7921_vif);

Expand All @@ -71,8 +69,6 @@ index 9bf5d9f0..c16aeab0 100644
wiphy->max_remain_on_channel_duration = 5000;
wiphy->max_scan_ie_len = MT76_CONNAC_SCAN_IE_LEN;
wiphy->max_scan_ssids = 4;
diff --git a/mt7921/mac.c b/mt7921/mac.c
index 47f79f16..639614b0 100644
--- a/mt7921/mac.c
+++ b/mt7921/mac.c
@@ -168,6 +168,14 @@ static void
Expand All @@ -90,11 +86,9 @@ index 47f79f16..639614b0 100644
if (chfreq > 180) {
status->band = NL80211_BAND_6GHZ;
chfreq = (chfreq - 181) * 4 + 1;
diff --git a/mt7921/main.c b/mt7921/main.c
index a1611590..1b7219e3 100644
--- a/mt7921/main.c
+++ b/mt7921/main.c
@@ -856,7 +856,7 @@ void mt7921_mac_sta_assoc(struct mt76_dev *mdev, struct ieee80211_vif *vif,
@@ -851,7 +851,7 @@ void mt7921_mac_sta_assoc(struct mt76_de

if (vif->type == NL80211_IFTYPE_STATION && !sta->tdls)
mt76_connac_mcu_uni_add_bss(&dev->mphy, vif, &mvif->sta.wcid,
Expand All @@ -103,7 +97,7 @@ index a1611590..1b7219e3 100644

mt7921_mac_wtbl_update(dev, msta->wcid.idx,
MT_WTBL_UPDATE_ADM_COUNT_CLEAR);
@@ -889,7 +889,7 @@ void mt7921_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
@@ -884,7 +884,7 @@ void mt7921_mac_sta_remove(struct mt76_d
if (!sta->tdls)
mt76_connac_mcu_uni_add_bss(&dev->mphy, vif,
&mvif->sta.wcid, false,
Expand All @@ -112,7 +106,7 @@ index a1611590..1b7219e3 100644
}

spin_lock_bh(&dev->sta_poll_lock);
@@ -1649,7 +1649,7 @@ mt7921_start_ap(struct ieee80211_hw *hw,
@@ -1644,7 +1644,7 @@ mt7921_start_ap(struct ieee80211_hw *hw,
mt7921_mutex_acquire(dev);

err = mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid,
Expand All @@ -121,7 +115,7 @@ index a1611590..1b7219e3 100644
if (err)
goto out;

@@ -1681,108 +1681,12 @@ mt7921_stop_ap(struct ieee80211_hw *hw,
@@ -1676,105 +1676,12 @@ mt7921_stop_ap(struct ieee80211_hw *hw,
goto out;

mt76_connac_mcu_uni_add_bss(phy->mt76, vif, &mvif->sta.wcid, false,
Expand Down Expand Up @@ -221,17 +215,14 @@ index a1611590..1b7219e3 100644
- struct ieee80211_prep_tx_info *info)
-{
- struct mt7921_vif *mvif = (struct mt7921_vif *)vif->drv_priv;
- struct mt7921_dev *dev = mt7921_hw_dev(hw);
-
- mt7921_mutex_acquire(dev);
- mt7921_abort_roc(mvif->phy, mvif);
- mt7921_mutex_release(dev);
-}
-
const struct ieee80211_ops mt7921_ops = {
.tx = mt7921_tx,
.start = mt7921_start,
@@ -1835,13 +1739,6 @@ const struct ieee80211_ops mt7921_ops = {
@@ -1827,13 +1734,6 @@ const struct ieee80211_ops mt7921_ops =
.set_sar_specs = mt7921_set_sar_specs,
.remain_on_channel = mt7921_remain_on_channel,
.cancel_remain_on_channel = mt7921_cancel_remain_on_channel,
Expand All @@ -245,8 +236,6 @@ index a1611590..1b7219e3 100644
};
EXPORT_SYMBOL_GPL(mt7921_ops);

diff --git a/mt7921/mt7921.h b/mt7921/mt7921.h
index efff4d43..0954ac6c 100644
--- a/mt7921/mt7921.h
+++ b/mt7921/mt7921.h
@@ -171,7 +171,6 @@ struct mt7921_vif {
Expand All @@ -257,11 +246,9 @@ index efff4d43..0954ac6c 100644
};

struct mib_stats {
diff --git a/mt7921/pci.c b/mt7921/pci.c
index d84dbdd1..fbb06f04 100644
--- a/mt7921/pci.c
+++ b/mt7921/pci.c
@@ -297,13 +297,6 @@ static int mt7921_pci_probe(struct pci_dev *pdev,
@@ -297,13 +297,6 @@ static int mt7921_pci_probe(struct pci_d
if (!(features & MT7921_FW_CAP_CNM)) {
ops->remain_on_channel = NULL;
ops->cancel_remain_on_channel = NULL;
Expand All @@ -275,11 +262,9 @@ index d84dbdd1..fbb06f04 100644
}

mdev = mt76_alloc_device(&pdev->dev, sizeof(*dev), ops, &drv_ops);
diff --git a/mt7921/sdio.c b/mt7921/sdio.c
index 3f8973fb..f6b35087 100644
--- a/mt7921/sdio.c
+++ b/mt7921/sdio.c
@@ -140,13 +140,6 @@ static int mt7921s_probe(struct sdio_func *func,
@@ -140,13 +140,6 @@ static int mt7921s_probe(struct sdio_fun
if (!(features & MT7921_FW_CAP_CNM)) {
ops->remain_on_channel = NULL;
ops->cancel_remain_on_channel = NULL;
Expand All @@ -293,11 +278,9 @@ index 3f8973fb..f6b35087 100644
}

mdev = mt76_alloc_device(&func->dev, sizeof(*dev), ops, &drv_ops);
diff --git a/mt7921/usb.c b/mt7921/usb.c
index 5321d20d..8a49d3de 100644
--- a/mt7921/usb.c
+++ b/mt7921/usb.c
@@ -218,13 +218,6 @@ static int mt7921u_probe(struct usb_interface *usb_intf,
@@ -218,13 +218,6 @@ static int mt7921u_probe(struct usb_inte
if (!(features & MT7921_FW_CAP_CNM)) {
ops->remain_on_channel = NULL;
ops->cancel_remain_on_channel = NULL;
Expand All @@ -311,6 +294,3 @@ index 5321d20d..8a49d3de 100644
}

ops->stop = mt7921u_stop;
--
2.17.1

Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,9 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
mt7915/init.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/mt7915/init.c b/mt7915/init.c
index 489f6e77..1813370a 100644
--- a/mt7915/init.c
+++ b/mt7915/init.c
@@ -327,8 +327,8 @@ mt7915_init_wiphy(struct ieee80211_hw *hw)
@@ -329,8 +329,8 @@ mt7915_init_wiphy(struct mt7915_phy *phy
struct mt7915_dev *dev = phy->dev;

hw->queues = 4;
Expand All @@ -30,5 +28,3 @@ index 489f6e77..1813370a 100644
hw->netdev_features = NETIF_F_RXCSUM;

hw->radiotap_timestamp.units_pos =
--
2.37.2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/mt7921/pci_mac.c
+++ b/mt7921/pci_mac.c
@@ -261,7 +261,7 @@ int mt7921e_mac_reset(struct mt7921_dev *dev)
@@ -113,7 +113,7 @@ int mt7921e_mac_reset(struct mt7921_dev

err = mt7921e_driver_own(dev);
if (err)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/usb.c
+++ b/usb.c
@@ -1068,7 +1068,11 @@
@@ -1075,7 +1075,11 @@ int __mt76u_init(struct mt76_dev *dev, s

INIT_WORK(&usb->stat_work, mt76u_tx_status_data);

Expand Down
8 changes: 4 additions & 4 deletions package/kernel/mt76/patches/091-fix-linux-6.1-build.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/mt7921/dma.c
--- b/mt7921/dma.c
@@ -283,10 +283,15 @@
+++ b/mt7921/dma.c
@@ -283,10 +283,15 @@ int mt7921_dma_init(struct mt7921_dev *d
if (ret < 0)
return ret;

Expand All @@ -18,8 +18,8 @@
}

--- a/dma.c
--- b/dma.c
@@ -895,7 +895,11 @@
+++ b/dma.c
@@ -910,7 +910,11 @@ mt76_dma_init(struct mt76_dev *dev,
dev->napi_dev.threaded = 1;

mt76_for_each_q_rx(dev, i) {
Expand Down
6 changes: 3 additions & 3 deletions package/network/services/uhttpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(PROJECT_GIT)/project/uhttpd.git
PKG_SOURCE_DATE:=2022-06-01
PKG_SOURCE_VERSION:=d59d732a10a4a2b9f18af6dfc3facf696108f31e
PKG_MIRROR_HASH:=31caa46ca025a1a7657bd5252d59d4a67d0f1c4b87c15a1bc94663ba3cc899ee
PKG_SOURCE_DATE:=2022-10-31
PKG_SOURCE_VERSION:=23977554d9694d025eada50a5547e99ee1be7838
PKG_MIRROR_HASH:=e546fd57d0d0be6a51e2aeb5797febe8c89d2bba61b26c930ecb0616d5f6ace9
PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
PKG_LICENSE:=ISC

Expand Down
1 change: 1 addition & 0 deletions package/network/services/uhttpd/files/uhttpd.init
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ start_instance()
service_triggers()
{
procd_add_reload_trigger "uhttpd"
procd_add_raw_trigger acme.renew 5000 /etc/init.d/uhttpd reload
}

start_service() {
Expand Down

0 comments on commit 2089904

Please sign in to comment.