Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7385564rwl; Mon, 9 Jan 2023 23:27:44 -0800 (PST) X-Google-Smtp-Source: AMrXdXvCJgOi7EEgEcMaKzEbkqRMBbducZQ7T3RVRT6fpwElvocLX2VxQK3POe++fIlag7pockrm X-Received: by 2002:a17:903:3311:b0:189:9cfd:be73 with SMTP id jk17-20020a170903331100b001899cfdbe73mr69910275plb.44.1673335664529; Mon, 09 Jan 2023 23:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673335664; cv=none; d=google.com; s=arc-20160816; b=nDP0nfvSXvOh+nc5Y1bd1to9sJAyTKbVBHQNf8mLxFNnSnG98p0eVFAzUChD5h9Za7 8HUMjF9eV/YmD86zMPwDK0+1M8QeQWq6TZttF7KvYV+xnGZPOVTQNwSGn3KQvAUmxrMS RKo6GcZJTMEXj176xqwPdTaZQnFbLhhplWLxF1RRsSnZE4OiiVJL3v2wQ+xJ2TI3V4gB P3XVF0mQEpspE2KTPpjIX3VMc708sqxqOHVjcugB0BYcIIgqoc+1koFZ9ryGqjINWhwF FKqtK9i4FvoN3yRHpOeFrpe31uRqJxm8wqABRYTRhaM4E9gGHT3jQrMXIFK91zbaW/vl KiyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Q+748n8FZZfq6Xu5mhYq78jUbCOiDo06low01xmA3qA=; b=MZiWC3QUsrGeIULdFxWvmsfjEl3V6jRQCPBUEZqR8hQosZL+v5U4ii0Y9PEQ7anFwK RWk83mr2YWT/k3viE4RTuo2+yOGhm0I7HHwh0NfLMGWiz+FEX0XvjTU2dUQGAMY+W4kx i8Uh6Rdlnw3eqD5R6rP8GLenNBZ8YCWeYkFLrhp+TKg4eBmSkIRxxrnUmqxp8W0RBLmo 3lV2SaIdW1gMEA9GqCWzaXb+0QNhVUpcBXoMBvdZzcUhsJLGMjXNEnakX/EFfLtqtig/ Mte+BYbnGjt5wlpFB1b8KHpkWoh3M4socreJ1voJgYDasPRSmrU6EVp/NXjY1+w2T5V3 znkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XxprXIXJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902ce0e00b00176e4ac448esi10644340plg.224.2023.01.09.23.27.36; Mon, 09 Jan 2023 23:27:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=XxprXIXJ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229891AbjAJHXq (ORCPT + 65 others); Tue, 10 Jan 2023 02:23:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229727AbjAJHXo (ORCPT ); Tue, 10 Jan 2023 02:23:44 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE46541D7C for ; Mon, 9 Jan 2023 23:23:43 -0800 (PST) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30A6ZSUf014144; Tue, 10 Jan 2023 07:23:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Q+748n8FZZfq6Xu5mhYq78jUbCOiDo06low01xmA3qA=; b=XxprXIXJ0dCwhIiYzqnJAypYohIILPwqx3ovmavQ8oCFVo6Jhu8kfsBh1VDslv6wHbTX wyxDz5RehgRhg6VowJUaxMDXCZ2yfeDBs0tdkXaE8kZs8gevLQCR8cefAVnO6/Jpiv2L QjG2Qo+Qj5JmohLLzm6vW+I5XV8xRmN3ppQYcLBrY8V0JSGaMncBQ3GHfsRRCJB8jYHO e5COTFUgR1nbJLU30CWOihLXOchkrhJHVCoks0yP/wE9CP7tUK9sljqd+jETxypRcGap To/3pKAE+sVgUREYdVkE8JmbiVfYX3ydZMYjwbl1foaWDVBGs7HMxQ0TfQ1avSHKEI47 kg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3n12vpr2e5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 07:23:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 30A7NO7d020594 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Jan 2023 07:23:24 GMT Received: from [10.231.195.170] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 9 Jan 2023 23:23:22 -0800 Message-ID: <6c2b5e49-2cdc-b506-e3c8-0a51fccc294d@quicinc.com> Date: Tue, 10 Jan 2023 15:23:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v10 3/5] cfg80211/mac80211: move interface counting for combination check to mac80211 Content-Language: en-US To: Johannes Berg , Luciano Coelho , CC: , , , , References: <1394547394-3910-1-git-send-email-luciano.coelho@intel.com> <1394547394-3910-4-git-send-email-luciano.coelho@intel.com> <4de1f964-b623-2b31-c044-60cc188fc134@quicinc.com> <6187b1566674ba2e0d7d5413af5475688d8421b3.camel@sipsolutions.net> From: Wen Gong In-Reply-To: <6187b1566674ba2e0d7d5413af5475688d8421b3.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: gAbvp1H71kWVXg641D7pzSlq9Dn-6ITO X-Proofpoint-ORIG-GUID: gAbvp1H71kWVXg641D7pzSlq9Dn-6ITO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-10_02,2023-01-09_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 spamscore=0 priorityscore=1501 impostorscore=0 adultscore=0 clxscore=1015 mlxscore=0 suspectscore=0 malwarescore=0 bulkscore=0 mlxlogscore=767 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2301100047 X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 1/9/2023 6:05 PM, Johannes Berg wrote: > On Mon, 2023-01-09 at 17:39 +0800, Wen Gong wrote: >> On 3/11/2014 10:16 PM, Luciano Coelho wrote: >>> ... >>> +int ieee80211_check_combinations(struct ieee80211_sub_if_data *sdata, >>> + const struct cfg80211_chan_def *chandef, >>> + enum ieee80211_chanctx_mode chanmode, >>> + u8 radar_detect) ... >>> + >>> + if (total == 1 && !radar_detect) >>> + return 0; >>> + >> should also check with cfg80211_check_combinations() when total == 1 and >> num_different_channels > 1 ? >> >> When MLO is enabled, it could have 2 channels for one ieee80211_sub_if_data. >> > Heh. You're commenting on a patch from 2014, well before MLO :-) > > Not sure what happens in the code now? > > johannes Yes, it is 2014. Each interface only has one channel at 2014. I did not hit issue for the code. the story is like this: When station interface and p2p device interface both running. the station connect to MLO AP which has 2 links. The ieee80211_link_use_channel()/ieee80211_check_combinations() call cfg80211_check_combinations() for the channel1 and channel2 because total==2. When only station interface is running, not called for channel1/channel2 because total==1. That is the little thing I hit.