Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp815657lqt; Thu, 6 Jun 2024 21:58:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXG/+QIv3id2HXfS3ZHApM9YIU+0XrzaaSgXFnEjHEWOuR5ZSvEL1h3d1ibbWIy4hf8qZh6Wv/eOFfo4pXo1TLAdp8VT3UwYQVbOTWeJQ== X-Google-Smtp-Source: AGHT+IF8GF1Qh3aRwcra2W1DUaLcjm75L7M6QKt+sKarHC7FauEyGfu9IrbW8BPiS7/Ukv8ZMP/Q X-Received: by 2002:a17:906:278d:b0:a68:b9b8:64d0 with SMTP id a640c23a62f3a-a6cdb0f56eemr88535666b.58.1717736330808; Thu, 06 Jun 2024 21:58:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717736330; cv=pass; d=google.com; s=arc-20160816; b=ii1fab5mFrrE2haS3dApRgKH1LGV5BjScIzXyX63pFFFlB8XTTtTATjWst3EVQNOrF ieb8M6Gu5m+mhFkp9TTk7fIY1t2u2sJheDLPNIOX329cV9J7N8CPmr94ItxPotw0R0Tr 3yzhVd/dDz+64YNcvTlPknKc6OfZhAEwbjN/T5VvQfuca3xWe7Yok5iqLzggbaXhHda9 JPpzp25Ee+jj3Lb8usju6ZsrsTL5eDftjtXoIo3V/rjLuPC8Zd5hEa6LC8twkPTwvUas kPUwgUa/0Aej8TQMUo9B7LPYvPw7a/ifAav4eW6D2IV3VxkQrPpEoVOPXfCZtxNy8RjF ffTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=kTDhFd+78pMcDuSu6yIkaJahSKZqTdviJjzyFbzHJdI=; fh=aRdHA8gIXE5KTPhP10l2FrLhMFHmROVU/bJ2cA+nLwk=; b=KJwebMWwwbkhX4ecMEDgxst462xip46uggFPZ6Qzmxj+MvO2FjaiGjD3Rg4kdWjOX5 mkAFR9DQ6Qkz9CrLyWe3VP7rylRE9OvKHmFCMdtxjDSFKHeMmKzRnDJjsZn87k75DGoQ LKZkRV1M4AbWMRz2SQVvL15f5SkxrsW6FKsBkRCV/MEtVjM+t0SNFt+I37CDCqhDPPIU vArcyi1BYAtcNfsRIDTO/9ndGqpTXruwjgmZEOHl0vgM+6TgVgFO8P2q1NjJ2jTOx6fo HIBurMXnQHYS2r/rAPsgPgV/mJQxn7hfr9HrDNNpPQAuMmWx7VoMnydjX0XwaoZohu+P M1Vg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Fhvndsuc; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6e442b065asi8373866b.938.2024.06.06.21.58.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 21:58:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Fhvndsuc; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-wireless+bounces-8659-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8659-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 193D11F26A32 for ; Fri, 7 Jun 2024 04:58:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6EB7838D; Fri, 7 Jun 2024 04:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Fhvndsuc" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 DA3621CA84 for ; Fri, 7 Jun 2024 04:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717736084; cv=none; b=d/6Bhl12HcAoxOwB9UnszRQ6u6sXuRA3jorOjQMRoOSuTOAkbSXl6YvwVBRVT0WVcs1MoiraBrCSfmvyvQLLykQoFyVm894+yOoDgUdHzeXDMG0KGUq6Ypjc8FbDvb5TFf7ofBxfynLKoM7PVCWgwIvUqaO6ywh0C8d5obSGmC4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717736084; c=relaxed/simple; bh=ogbih2B8j8djwFMCMRZpSIVAB+Kt3fpCZ738P6IZRPw=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=CjHSsvB/VgHfZPTFS0vzus8QibDba+HxEbWHdMayQolKEKReXZgxALCvwVBkbDjbkboo9wIwgWk2bGx2d9Iy8Obfjc2dQ7bbfxqgh2qzFsbvClUwv2Bg3Y0f4bL+m1LrvNTjUnPk+887BQpBGvz/e/qClTjDDgtjpmDKt2FsvJA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Fhvndsuc; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 456I1dAI030512; Fri, 7 Jun 2024 04:54:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= kTDhFd+78pMcDuSu6yIkaJahSKZqTdviJjzyFbzHJdI=; b=Fhvndsuc6Hlzi7N/ Td2k1bj6y6o0DhgFgOSioNlJ8v+SMr+b4Sc5hBtb4NYcZ6+hPKBQIuSHLuOEIxaF qAHDvLFlM3C5bPujjslmAT3dou5UEuUXRlrjlSt27H4SO7AjbAKJO5GX/NDLWSM0 2yKDhGataeISgZX0eWYtaMuRlsopqbXcVztCjRmChIHToRTUZD8j5shlVGR6z9nH +4dK86+hxFG8eEPS5jGka+KoKVqh83j0ueQJq1qQpCHJlNly39eB8eNwhEsdKNQt LRTuBVTqZyrYvoHtIdneNf0UdfyZ7NYoeyAEbkXC9+S8KSe2u9RLMgtB1pBfsbf4 eY3Z3g== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3yk8tcadr2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 07 Jun 2024 04:54:35 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 4574sXcG009855 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Jun 2024 04:54:33 GMT Received: from [10.152.205.142] (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.1544.9; Thu, 6 Jun 2024 21:54:31 -0700 Message-ID: Date: Fri, 7 Jun 2024 10:24:27 +0530 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC v3 4/8] wifi: mac80211: add support for DFS with multiple radios Content-Language: en-US To: Felix Fietkau , CC: , , References: <7cc3d89225f365c85b363874725cfbc77c9c1db5.1717696995.git-series.nbd@nbd.name> <2014e488-b930-43ff-86a6-c5a4801b82f5@quicinc.com> <21956735-3a04-4f29-8f13-0f84ed93cda2@nbd.name> From: Karthikeyan Periyasamy In-Reply-To: <21956735-3a04-4f29-8f13-0f84ed93cda2@nbd.name> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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-ORIG-GUID: lRNKnO5T5doTfq00LqmXjlUKbfLytThQ X-Proofpoint-GUID: lRNKnO5T5doTfq00LqmXjlUKbfLytThQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-06_20,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 suspectscore=0 phishscore=0 impostorscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405170001 definitions=main-2406070033 On 6/7/2024 10:05 AM, Felix Fietkau wrote: > On 07.06.24 06:25, Karthikeyan Periyasamy wrote: >> >> >> On 6/6/2024 11:37 PM, Felix Fietkau wrote: >>> DFS can be supported with multi-channel combinations, as long as each >>> DFS >>> capable radio only supports one channel. >>> >>> Signed-off-by: Felix Fietkau >>> --- >>>   net/mac80211/main.c | 32 ++++++++++++++++++++++++-------- >>>   1 file changed, 24 insertions(+), 8 deletions(-) >>> >>> diff --git a/net/mac80211/main.c b/net/mac80211/main.c >>> index 40fbf397ce74..e9c4cf611e94 100644 >>> --- a/net/mac80211/main.c >>> +++ b/net/mac80211/main.c >> >> ... >> >>>   int ieee80211_register_hw(struct ieee80211_hw *hw) >>>   { >>>       struct ieee80211_local *local = hw_to_local(hw); >>> @@ -1173,17 +1188,18 @@ int ieee80211_register_hw(struct ieee80211_hw >>> *hw) >>>               if (comb->num_different_channels > 1) >>>                   return -EINVAL; >>>           } >>> -    } else { >>> -        /* DFS is not supported with multi-channel combinations yet */ >>> -        for (i = 0; i < local->hw.wiphy->n_iface_combinations; i++) { >>> -            const struct ieee80211_iface_combination *comb; >>> - >>> -            comb = &local->hw.wiphy->iface_combinations[i]; >>> +    } else if (hw->wiphy->n_radio) { >>> +        for (i = 0; i < hw->wiphy->n_radio; i++) { >>> +            const struct wiphy_radio *radio = &hw->wiphy->radio[i]; >>> -            if (comb->radar_detect_widths && >>> -                comb->num_different_channels > 1) >>> +            if >>> (!ieee80211_ifcomb_check_radar(radio->iface_combinations, >>> +                              radio->n_iface_combinations)) >>>                   return -EINVAL; >>>           } >>> +    } else { >>> +        if >>> (!ieee80211_ifcomb_check_radar(hw->wiphy->iface_combinations, >>> +                          hw->wiphy->n_iface_combinations)) >>> +            return -EINVAL; >>>       } >>>       /* Only HW csum features are currently compatible with mac80211 */ >> >> Are we omitting the "wiphy->iface_combinations" if the radio specific >> iface combination advertised ? >> >> If so, it looks like unused "wiphy->iface_combinations" for radio >> specific combination advertised. > > This patch series assumes that you have both wiphy->iface_combinations > and radio->iface_combinations set. wiphy->iface_combinations applies to > the full wiphy, whereas radio->iface_combinations only applies to vifs > assigned to the radio. If radio->iface_combinations is set then always vifs assigned to the radio. so wiphy->iface_combinations get avoid for all the use cases. Ultimately either of one combination only get used by this proposal. or I am missing something here ? > > - Felix -- Karthikeyan Periyasamy -- கார்த்திகேயன் பெரியசாமி