From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 158212E7623 for ; Thu, 2 Jul 2026 07:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782976625; cv=none; b=u/+wZWW0NL6F6hDf6UkBVCOfg1pO8edXasZvauUe/XvCE15opAQFxIkAfmB/3BkF9qLKQ0fFm92QPPd0SoF4p1IowIcJAFvLBrnjk6teHgBF0gwlXSCllohXVb8jbBAe+BQlQZith37Ea7YWZPxaXJRwEcWXHVRefjKNypOZPE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782976625; c=relaxed/simple; bh=HgQTgwJ4KTsAOiLtAlHxYuhEBLcm43SKnG3yER/uvSU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Jo9K4Na6iDuoweOEQ6rjmVfVwkyTyU7lkZ9s6/ZC80Kzh1uvI1oFjY9ZRp2ACOcMkfmjgqWX3iaNRbd0kP4pyI0LAwMInZnaW9ZasoF+vNjHJz7ZkfQ2GdoErn2cJy/N965mCmYX24t79fxWpKjyfURTM6k5mrnIeZ1tfevVuCo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=eyBz2FSl; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="eyBz2FSl" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782976623; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0tRvugpzG8ln4LdA49b+XuWxI2Z8mAQ/pKg50n86/34=; b=eyBz2FSleuRLTaEmYq5D5oGOfS5FGOcTrY49h/lasHPmAqzXQVLNQPRR4rIUc1rJUig/Kw xWQuBh/kS/S7VOxol/KTWEYeXED+1uF+LWaXFsETnYdTsRTxbxVeXoCPN8R97X+dBUjXzd j+D0PxssKsbnSUSaUx1mdh1Su2jSp0c= Received: from mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-622-1tfRfNQKNwezE2p2y4ry_A-1; Thu, 02 Jul 2026 03:16:59 -0400 X-MC-Unique: 1tfRfNQKNwezE2p2y4ry_A-1 X-Mimecast-MFC-AGG-ID: 1tfRfNQKNwezE2p2y4ry_A_1782976618 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 352FE18C0FF6; Thu, 2 Jul 2026 07:16:58 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.44.32.33]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 199FE3001449; Thu, 2 Jul 2026 07:16:55 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: nbd@nbd.name, lorenzo@kernel.org Cc: ryder.lee@mediatek.com, shayne.chen@mediatek.com, linux-wireless@vger.kernel.org, Jose Ignacio Tornos Martinez Subject: [PATCH] wifi: mt76: mt7996: remove beacon_int_min_gcd from ADHOC interface combinations Date: Thu, 2 Jul 2026 09:16:47 +0200 Message-ID: <20260702071647.667539-1-jtornosm@redhat.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 The driver fails to register with error -22 (EINVAL) due to a cfg80211 validation failure in wiphy_verify_iface_combinations(). Commit 5ef0e8e2653b ("wifi: mt76: mt7996: fix iface combination for different chipsets") added beacon_int_min_gcd to if_comb_global and if_comb_global_7992, but these combinations include ADHOC (IBSS) interface type. This violates a cfg80211 rule from commit 56271da29c52 ("cfg80211: simplify netlink socket owner interface deletion") that explicitly forbids combining ADHOC with beacon_int_min_gcd. The restriction exists because beacon_int_min_gcd requires static, predictable beacon intervals to coordinate multiple beaconing interfaces, but ADHOC interfaces have dynamic beacon intervals that change when joining different networks, making the GCD constraint unenforceable. Remove beacon_int_min_gcd from the interface combinations that include ADHOC because they are not necessary for ADHOC operation. The if_comb combination (AP/MESH/STA only, without ADHOC) correctly retains beacon_int_min_gcd for multi-AP coordination. Fixes: 5ef0e8e2653b ("wifi: mt76: mt7996: fix iface combination for different chipsets") Signed-off-by: Jose Ignacio Tornos Martinez --- drivers/net/wireless/mediatek/mt76/mt7996/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7996/init.c b/drivers/net/wireless/mediatek/mt76/mt7996/init.c index d6f9aa1ab52d..06f764a54405 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7996/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7996/init.c @@ -34,7 +34,6 @@ static const struct ieee80211_iface_combination if_comb_global = { BIT(NL80211_CHAN_WIDTH_40) | BIT(NL80211_CHAN_WIDTH_80) | BIT(NL80211_CHAN_WIDTH_160), - .beacon_int_min_gcd = 100, }; static const struct ieee80211_iface_combination if_comb_global_7992 = { @@ -47,7 +46,6 @@ static const struct ieee80211_iface_combination if_comb_global_7992 = { BIT(NL80211_CHAN_WIDTH_40) | BIT(NL80211_CHAN_WIDTH_80) | BIT(NL80211_CHAN_WIDTH_160), - .beacon_int_min_gcd = 100, }; static const struct ieee80211_iface_limit if_limits[] = { -- 2.54.0