]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: mt76: mt7996: add missing max_remain_on_channel_duration
authorFelix Fietkau <nbd@nbd.name>
Tue, 24 Mar 2026 15:49:04 +0000 (15:49 +0000)
committerFelix Fietkau <nbd@nbd.name>
Tue, 9 Jun 2026 10:15:20 +0000 (10:15 +0000)
Having this unset breaks remain-on-channel and mgmt TX.
Move setting it to mt76 core to keep it in one place.

Fixes: 69d54ce7491d0 ("wifi: mt76: mt7996: switch to single multi-radio wiphy")
Link: https://patch.msgid.link/20260324154904.2555603-2-nbd@nbd.name
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mac80211.c
drivers/net/wireless/mediatek/mt76/mt7615/init.c
drivers/net/wireless/mediatek/mt76/mt792x_core.c

index 4ae5e4715a9c523e2f344dd9818393160538235b..dd68776ada287048305376151b8b8a971b1bb761 100644 (file)
@@ -449,6 +449,8 @@ mt76_phy_init(struct mt76_phy *phy, struct ieee80211_hw *hw)
        wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AIRTIME_FAIRNESS);
        wiphy_ext_feature_set(wiphy, NL80211_EXT_FEATURE_AQL);
 
+       if (!wiphy->max_remain_on_channel_duration)
+               wiphy->max_remain_on_channel_duration = 5000;
        if (!wiphy->available_antennas_tx)
                wiphy->available_antennas_tx = phy->antenna_mask;
        if (!wiphy->available_antennas_rx)
index 42e11ba1206ee860559067dafb1b2a5e1367e24c..e437e088b2e913b9a5b02796df07b8cc32ffdce7 100644 (file)
@@ -195,7 +195,6 @@ mt7615_check_offload_capability(struct mt7615_dev *dev)
                ieee80211_hw_set(hw, SUPPORTS_DYNAMIC_PS);
 
                wiphy->flags &= ~WIPHY_FLAG_4ADDR_STATION;
-               wiphy->max_remain_on_channel_duration = 5000;
                wiphy->features |= NL80211_FEATURE_SCHED_SCAN_RANDOM_MAC_ADDR |
                                   NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR |
                                   WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL |
index 152cfcca2f908a8101d6dac84e2c462bae3b40d9..5a5d7534830bbaf5e250976ba40f80a3a2ac9dc5 100644 (file)
@@ -657,7 +657,6 @@ int mt792x_init_wiphy(struct ieee80211_hw *hw)
                                 BIT(NL80211_IFTYPE_P2P_CLIENT) |
                                 BIT(NL80211_IFTYPE_P2P_GO) |
                                 BIT(NL80211_IFTYPE_P2P_DEVICE);
-       wiphy->max_remain_on_channel_duration = 5000;
        wiphy->max_scan_ie_len = MT76_CONNAC_SCAN_IE_LEN;
        wiphy->max_scan_ssids = 4;
        wiphy->max_sched_scan_plan_interval =