Patch "wifi: mt76: mt7996: fix invalid interface combinations" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: mt76: mt7996: fix invalid interface combinations

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-mt76-mt7996-fix-invalid-interface-combinations.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 105e698a59dbf672a8b6324f069c25f057bea8d2
Author: Shayne Chen <shayne.chen@xxxxxxxxxxxx>
Date:   Mon Oct 7 21:51:33 2024 +0800

    wifi: mt76: mt7996: fix invalid interface combinations
    
    [ Upstream commit 89aca45f26879dfbbf8374c425c4811f69cfc2df ]
    
    Setting beacon_int_min_gcd and NL80211_IFTYPE_ADHOC in the same interface
    combination is invalid, which will trigger the following warning trace
    and get error returned from wiphy_register().
    
    [   10.080325] Call trace:
    [   10.082761]  wiphy_register+0xc4/0x76c [cfg80211]
    [   10.087465]  ieee80211_register_hw+0x800/0xac4 [mac80211]
    [   10.092868]  mt76_register_device+0x16c/0x2c0 [mt76]
    [   10.097829]  mt7996_register_device+0x740/0x844 [mt7996e]
    
    Fix this by removing unused adhoc iftype.
    
    Fixes: 948f65249868 ("wifi: mt76: mt7996: advertize beacon_int_min_gcd")
    Reported-by: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
    Signed-off-by: Shayne Chen <shayne.chen@xxxxxxxxxxxx>
    Tested-By: Frank Wunderlich <frank-w@xxxxxxxxxxxxxxx>
    Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxx>
    Link: https://patch.msgid.link/20241007135133.5336-1-shayne.chen@xxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c
index 5e96973226bbb..efa7b0697a406 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c
@@ -16,9 +16,6 @@
 
 static const struct ieee80211_iface_limit if_limits[] = {
 	{
-		.max = 1,
-		.types = BIT(NL80211_IFTYPE_ADHOC)
-	}, {
 		.max = 16,
 		.types = BIT(NL80211_IFTYPE_AP)
 #ifdef CONFIG_MAC80211_MESH




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux