Skip to content

Commit d376325

Browse files
csyuancfrank-w
authored andcommitted
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: 948f652 ("wifi: mt76: mt7996: advertize beacon_int_min_gcd") Reported-by: Frank Wunderlich <[email protected]> Signed-off-by: Shayne Chen <[email protected]>
1 parent 5e23d27 commit d376325

File tree

1 file changed

+0
-3
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7996

1 file changed

+0
-3
lines changed

drivers/net/wireless/mediatek/mt76/mt7996/init.c

-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616

1717
static const struct ieee80211_iface_limit if_limits[] = {
1818
{
19-
.max = 1,
20-
.types = BIT(NL80211_IFTYPE_ADHOC)
21-
}, {
2219
.max = 16,
2320
.types = BIT(NL80211_IFTYPE_AP)
2421
#ifdef CONFIG_MAC80211_MESH

0 commit comments

Comments
 (0)