]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mt76: mt7996: fix invalid interface combinations
authorShayne Chen <shayne.chen@mediatek.com>
Mon, 7 Oct 2024 13:51:33 +0000 (21:51 +0800)
committerKalle Valo <kvalo@kernel.org>
Fri, 10 Jan 2025 12:49:03 +0000 (14:49 +0200)
commit89aca45f26879dfbbf8374c425c4811f69cfc2df
tree4d9b4cff9bf3c20a4764263ea512e621f8ea7fa0
parent7b24f164cf005b9649138ef6de94aaac49c9f3d1
wifi: mt76: mt7996: fix invalid interface combinations

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@public-files.de>
Signed-off-by: Shayne Chen <shayne.chen@mediatek.com>
Tested-By: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241007135133.5336-1-shayne.chen@mediatek.com
drivers/net/wireless/mediatek/mt76/mt7996/init.c