Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2733997lqo; Mon, 20 May 2024 15:11:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVL+CGUZ32rUXC9ZATwg3F1YUHj8kkiGVYhyj1fUMmEq1NdiolgY1lXhBwzVptyBrcbCKCIH+nghswijGPgexGmvgVd4YgpOE2j/2kn3g== X-Google-Smtp-Source: AGHT+IGFZFuBP0hhPTJZmVmQLfKjxY5USAvaAcEQySH/2KFl8BDvyX+l2Rps7YkzMk/9GdXe2aDa X-Received: by 2002:a05:6a20:d48e:b0:1b1:d7b3:dc57 with SMTP id adf61e73a8af0-1b1d7b3de60mr5629882637.33.1716243110243; Mon, 20 May 2024 15:11:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716243110; cv=pass; d=google.com; s=arc-20160816; b=dyUXNQlhbehdSG9XEur3zHsalvxsavILALHaU2U3okN2d/imGkCJCTfrRCAGPfrzpx nBncT1uvqMIJ12Qev9ru4KZKbk05cb6P+KsSLDznrFIDTVRff+7wzlXlxx2z4h1MIRzG LSipc7BWomXn86wFY1NL20x4ZgBoDaZZYDp/DWycrgJ2Y4nsARKq93zjXIpLRRd/OLAA vUg+5n1Yq4VXy0pToxshJNJYT6f5iiM5Y+LBoxTtnKCD/7WZfUcF+AJh9yBX1pIebloH BWNyeCjezeU7VvoGnmlBuSuvl/ePuUkaX7VUThT49/TWiYGhohXKwCfHiIdt+p8w1qo+ wb7Q== 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=RG24D0jMSArkJ8aKcIz8aY1W+LtHL4YLsFY1SjgX/Mg=; fh=lP+FyPnTPmJOMA/wP4iC1fr6HzuBVIppIk9dmo9v2y0=; b=Hm6dWXvq7pvyit9eCipNAa7wVK7HCskrZc+z0iUpe6Rqw0zP9LAFjs5vJZCSBr1MJv UJqbhv9pLPCHb2/i5XPp3tPMwtwnTZDi/I0KP6YK6BfdYKzEqV7fzr6d3NAAL/zj1lyz X1qcHxpsjd45hZ1DNKm9zVM/A6fl5F3bIMd7ENizUL+V3HlYC9IZLMBMzSqLjsCs/zEV 8Oj4JsmMjzuHMutSc+6pUjW7mC8brI3sNhrL8I7+f5jmZ1qbIFoS7Yr0nllF6sOVCELG A62OTvrY87oeKy6K6cfeYA54HxBrtMhPAqUUWErUi+U9V1qeaSRx9h55sYxHZwg2MIXi ZWpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RzK8LiaG; 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-7851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7851-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341404f8c8si23432619a12.893.2024.05.20.15.11.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 15:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=RzK8LiaG; 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-7851-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7851-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D798C2823BE for ; Mon, 20 May 2024 22:11:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A57801CD3B; Mon, 20 May 2024 22:11:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="RzK8LiaG" X-Original-To: linux-wireless@vger.kernel.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.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 2878213959D for ; Mon, 20 May 2024 22:11:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716243104; cv=none; b=XZVr4sLQRdqtwVK/bVnpa4W34zpfIs3HjsQ6a5sqEZcyZ+yTZArII5NXJESVcJ09GYNMmF/1XyhIwb/bceassp/XXXx1HoaLVAqSbdsj1hPEmSX7Gbv5Z/XfSMFnoh3s0vIOwhoCr9gQT0i7czwwLy9GlIWfNEeXJxshM1GdSkA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716243104; c=relaxed/simple; bh=OaEqYVaakxGBkrfheJ1vaFSrrlilld+hF6C/Tb4Y1Xo=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=a5ABWADDNPY9lRNYo6Oz1kdoIfNO9K9Nk2cDudRp5/GVJS3rw4t9EqOcXLwQ3V9KMSgUsp4pBbr84AEkOoMm2Fk4tUQr/xNQw0FWEzgyq2q9aRtxlICEQtyjDyQU0U52xyqwzW10mKkKPSjvt1QN/2aexo0XYLhQW7zayZQ7XuM= 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=RzK8LiaG; arc=none smtp.client-ip=205.220.168.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 (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 44KCePuR024457; Mon, 20 May 2024 22:11:39 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=RG24D0jMSArkJ8aKcIz8aY1W+LtHL4YLsFY1SjgX/Mg=; b=Rz K8LiaGRhel0jJRPbRUu64RfOkY0J/drOL+aEmE8cIhlxGlsbRIkd9Of1XsLrgVra 3NhZYFw3AHEk0tVfOzhjdsYuVT3EFbJbRVvogMfyBR7csuS6ANt2XFgiBKR0CxhO c9KFdrFCwk5KmF6iMQZn8NLck763O4C+lXfB3F2+0wWr0GZuSmF2Yre9Y7soRlaq fOxUJ98LDhUAKzU4NLdhC9ahCeMptlCwXQ4upDQ4gPmrhPf9UpD4oYjmNCkwoj9P 4YvkX/42WhbkzwLqo4oHtieLA5AGa4M+kYQ8joVbOubW0pOc1f66gc56eO5Dcg5v TrIzpNuucNrTDwiEflzw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3y6psncaeu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 22:11:39 +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 44KMBcPJ025047 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 20 May 2024 22:11:38 GMT Received: from [10.110.17.44] (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; Mon, 20 May 2024 15:11:37 -0700 Message-ID: Date: Mon, 20 May 2024 15:11:37 -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 2/2] wifi: ath11k: restore country code during resume Content-Language: en-US To: Baochen Qiang , CC: References: <20240520024148.5472-1-quic_bqiang@quicinc.com> <20240520024148.5472-3-quic_bqiang@quicinc.com> From: Jeff Johnson In-Reply-To: <20240520024148.5472-3-quic_bqiang@quicinc.com> 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-GUID: p85PPjyVbaavzQoJjSk9N558EQxij3U2 X-Proofpoint-ORIG-GUID: p85PPjyVbaavzQoJjSk9N558EQxij3U2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.12.28.16 definitions=2024-05-20_11,2024-05-17_03,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 clxscore=1015 priorityscore=1501 suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405200176 On 5/19/2024 7:41 PM, Baochen Qiang wrote: > We got report that regdomain is not correct after > return from hibernation: > > Before hibernation: > % iw reg get > [...] > phy#0 (self-managed) > country CH: DFS-ETSI > (2402 - 2482 @ 40), (N/A, 20), (N/A) > (5170 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW > (5250 - 5330 @ 80), (N/A, 23), (0 ms), NO-OUTDOOR, DFS, AUTO-BW > (5490 - 5590 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW > (5590 - 5650 @ 40), (N/A, 30), (600000 ms), DFS, AUTO-BW > (5650 - 5730 @ 80), (N/A, 30), (0 ms), DFS, AUTO-BW > (5735 - 5875 @ 80), (N/A, 14), (N/A), AUTO-BW > > After hibernation: > % iw reg get > [...] > phy#0 (self-managed) > country na: DFS-UNSET > (2402 - 2472 @ 40), (N/A, 20), (N/A) > (2457 - 2482 @ 20), (N/A, 20), (N/A), PASSIVE-SCAN > (5170 - 5330 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (5490 - 5730 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (5735 - 5895 @ 160), (N/A, 20), (N/A), AUTO-BW, PASSIVE-SCAN > (5945 - 7125 @ 160), (N/A, 30), (N/A), AUTO-BW, PASSIVE-SCAN > > The reason is, during resume, firmware is reinitialized but host does > not send current country code to firmware. So default reg rules with > country code set to 'na' is uploaded to host, as shown above. > > Fix it by restoring country code to firmware during resume. > > Tested-on: WCN6855 hw2.0 PCI WLAN.HSP.1.1-03125-QCAHSPSWPL_V1_V2_SILICONZ_LITE-3.6510.30 > > Fixes: 166a490f59ac ("wifi: ath11k: support hibernation") > Signed-off-by: Baochen Qiang Acked-by: Jeff Johnson