Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp640291lqp; Sat, 13 Apr 2024 12:15:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV8NzXgk8TcF0vYwBvDYyhebQAWpc2DVIO7hEQf/L3r6bD9b8Ko2gmour+lA8gJAJmJFYHcut+SucAa6WDeHOB2lWxLynqDKNA2J1mmVQ== X-Google-Smtp-Source: AGHT+IG1rn4dRPPrJKlpVqFTQGq73chkikXqIOFjeeuF36H+9Sreiueu5uJuGTnR51TvAUKtaWlP X-Received: by 2002:a05:6808:14cd:b0:3c5:f584:9ffb with SMTP id f13-20020a05680814cd00b003c5f5849ffbmr6519143oiw.39.1713035720752; Sat, 13 Apr 2024 12:15:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713035720; cv=pass; d=google.com; s=arc-20160816; b=VJ0Ultw05rVUt5o9XXg6f92nGdYWSQl3uDE7VVS+Qg9Y9laNz0+Ck9yPXBDPV9/2A3 5Myt331yHZomBPmhE+0AMpZg/rv7t3tUqlfuPchdOgY490YEvyzBO1IjU6/T3ciNQyPj kv2FdyfrQML75uDuUA6kig3qqqedD86DPlRvpeXrWbG6gHycFP48Oq9WR3bSmsoBeggF tWfaHa7J97A32q/rVlPAFJyOv0VtK5T4sTpQ9PYyI+Zn/at/6/94QZuN4rS7EMILiFU4 PHcoOkAlvQHCmn139LoexuyUsoq9TkyL1+L8h14OGGw1UZAAZEM1rx6UjTfzERqorStI Z/Zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=t5mgxfJuUw821fzqNDGvWmLREVXh2YOEXZBv9+bOMtY=; fh=v+ROWgMyECfWIObfZOtK2XSHaMp9mnxhJUEG4GOuWh0=; b=QMfa8dUjERcqCWMC26u7R9hqFvy3cvaxtbIUdMFfMIpUqZOgm6smyyO8BnAZKcT0sK KbteA88HTK/oT44paUoZGXEUewij78axOU5KSIG4MTlR03rJrSoZmCozWd2uSsVUaVPY xGqhTPEwAcBLUeT0Sk0c1W+QHbHA5eQUT3tn1p4G8l5paqj9qX9fK8lDQdNdSgo9xuG6 4J13zL08/wwOT4g//jE3jc038OMzjYTYh7wkN1oqdwP2E+BrttG/7JSiXiHWrd6hfi6T sauEtP3qAFcF8usOVU3C5FQWkLGQ+opTSGqcMTFe2Hi+FOugKPyUm6FAT7Wz2rFlhRJD xsNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U81LjPlo; 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-6277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6277-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c2-20020ac84e02000000b00432bfdd202asi6046924qtw.449.2024.04.13.12.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 12:15:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=U81LjPlo; 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-6277-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6277-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 516351C20848 for ; Sat, 13 Apr 2024 19:15:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F21EC4C637; Sat, 13 Apr 2024 19:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="U81LjPlo" 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 4F6292901 for ; Sat, 13 Apr 2024 19:15:16 +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=1713035717; cv=none; b=YQsRUk1mK1qgfx7Z7sFYLuNtxKFYJVH+78dV8zM6QP31sIgxAk06smWafR1RBEkRy0SiObJgdXp/LpinOux35oxAlGCM7io6whHPI7NvsnRdcPR0AH9upAMGH/3NEftqzZhe6Lf3ZNIi6B2RyI7lZH5ikFh7WtQ4GNEGp2XXIGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713035717; c=relaxed/simple; bh=tojD15hbjDlFL7EezZKmwP+uOEnDUhI9KiGCe05GDpQ=; h=Message-ID:Date:MIME-Version:Subject:From:To:CC:References: In-Reply-To:Content-Type; b=mDsA6/JyKvSPzOZIsPaxaCIIhVyZWG18xdXhUa6t9RChl7PqeoeJvhy0o6mLGqd12D4uEBjkvcII6TEPvw497t9jzvq6+3RxX8qVWvZEiUuWclnTtqTR78XafYYNkWgw9MftYm4UMWNqaFK46+yVw37qnmJcSL8TmjO4pmGusMI= 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=U81LjPlo; 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 (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 43DIrV6l003108; Sat, 13 Apr 2024 19:15:08 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:from:to:cc:references :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=t5mgxfJuUw821fzqNDGvWmLREVXh2YOEXZBv9+bOMtY=; b=U8 1LjPlovC8h4FnqFIrJbLe2iX3OZiM9/2e7g4RRd1G8E1KiD9MQoENL9+7FmQsxtb 7m7W3lPcEWJLVIlBDnJ4brdX8qnDLz/Z1eMLK+qxI1xiUzJB4eIWWNDt026Yharw HjvIKH+oVp03fgDqIFDtAJ+55UXYntckzGfzBW9m2uQDtXylLopafMUof5M49O+x NLNANhjb+ORlOgYt1/6MBaMU+FbWk6lP7FpsCQMP51G+045diQVQi/z2748dmMKI FkegS+6SWZMX/q1Op5NKfOpcX4Npn9LlVQMk8l/rK05PsRI5leRhdvjx7ENWRyQy ZGVhUVyx1QGkvVw1JfLw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xfhn40u5v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Apr 2024 19:15:08 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43DJF5g9030627 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Apr 2024 19:15:05 GMT Received: from [10.110.3.16] (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; Sat, 13 Apr 2024 12:15:04 -0700 Message-ID: Date: Sat, 13 Apr 2024 12:15:03 -0700 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] wifi: ath12k: enable WIPHY_FLAG_DISABLE_WEXT Content-Language: en-US From: Jeff Johnson To: Kalle Valo , CC: References: <20240411165645.4071238-1-kvalo@kernel.org> In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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: CPoA1wGJSe3daVJ02r0hym4RzI5L4xo7 X-Proofpoint-GUID: CPoA1wGJSe3daVJ02r0hym4RzI5L4xo7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-13_08,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 mlxlogscore=939 adultscore=0 mlxscore=0 clxscore=1015 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404130143 On 4/11/2024 1:59 PM, Jeff Johnson wrote: > On 4/11/2024 12:41 PM, Jeff Johnson wrote: >> On 4/11/2024 9:56 AM, Kalle Valo wrote: >>> From: Kalle Valo >>> >>> ath12k will support Multi-Link Operation (MLO) in the future but not yet. A >>> major change with MLO is that cfg80211 will disable Wireless Extension (WEXT) >>> user space interface. To avoid having inconsistent user experience, first >>> supporting WEXT and later not, disable WEXT already now. >>> >>> Now ath12k claims that WEXT is not supported: >>> >>> $ iwconfig wlan0 >>> wlan0 no wireless extensions. >>> >>> Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 >>> >>> Signed-off-by: Kalle Valo >>> --- >>> drivers/net/wireless/ath/ath12k/mac.c | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c >>> index f15dcd75157d..e989628d7d72 100644 >>> --- a/drivers/net/wireless/ath/ath12k/mac.c >>> +++ b/drivers/net/wireless/ath/ath12k/mac.c >>> @@ -8556,6 +8556,12 @@ static int ath12k_mac_hw_register(struct ath12k_hw *ah) >>> wiphy->features |= NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE | >>> NL80211_FEATURE_AP_SCAN; >>> >>> + /* MLO is not yet supported so disable Wireless Extensions for now >>> + * to make sure ath12k users don't use it. This flag can be removed >>> + * once WIPHY_FLAG_SUPPORTS_MLO is enabled. >>> + */ >>> + wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT; >>> + >>> hw->queues = ATH12K_HW_MAX_QUEUES; >>> wiphy->tx_queue_len = ATH12K_QUEUE_LEN; >>> hw->offchannel_tx_hw_queue = ATH12K_HW_MAX_QUEUES - 1; >>> >>> base-commit: 363e7193eaf258fe7f04e8db560bd8a282a12cd9 >> >> Currently on my version of Ubuntu when I switch to Hotspot mode I'm seeing: >> [ 55.189623] warning: `iwconfig' uses wireless extensions which will stop >> working for Wi-Fi 7 hardware; use nl80211 >> >> So are userspace folks aware of the need to move away from iwconfig? >> Is there a Ubuntu / Network Manager fix fir this? > > And I've confirmed that with this patch in place I cannot start the Hotspot. > So suggest you sit on that until userspace is ready. It turns out that once I configured the Hotspot explicitly for 2.4 GHz operation that it works even with this patch in place. So I have a separate issue somewhere with 5 GHz Hotspot operation. So this patch can go forward... Acked-by: Jeff Johnson