Message ID | 20240905023511.362-1-quic_kangyang@quicinc.com (mailing list archive) |
---|---|
Headers | show
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 01B5D1FDA for <linux-wireless@vger.kernel.org>; Thu, 5 Sep 2024 02:36:15 +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=1725503777; cv=none; b=dTNpvDJDoBubI3BJT/OJOBVYnAxvJX7ps2MqoKgDCHgK8yrSm++Imgq9hNuZkySmencpPwmAqNejvotIgaIu837fyYU9PDY42Y74W4NOTq723QrYSbUNG538hvAGC0Zm3mNV/56ADn0tSn0fhPUUiZYV5vkRQh1dRHQ42vquSc0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725503777; c=relaxed/simple; bh=4B4cJECYdUTBTZp6AquBxM/08vic2x6basW7XEACBGQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=oYGqpVJ5h/FSXXSIT0M8rtlddSpAojww2jcRe3lOS/w2wVessujBlFHuGxsbA7lacHa49lWnBsqtVPgUoigOBcZU/X5M9RYBYcN8NCzRxn4idn2hcTWaCP1GYT3E7YI8X2MDy17XpEO74Cz3xHPfXhhBjFFG+o2kGoashVGaWn4= 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=VZ3Ngtw+; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="VZ3Ngtw+" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4850e3fQ014645; Thu, 5 Sep 2024 02:36:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=E/8N2PgWE5PGwxAEvKnVK9 s+98xuAZorkeqnN4f5N9s=; b=VZ3Ngtw+9AzEMVbswDsKtQiHqZuOi1PgPuf5zO GPIYlr5JB+HicOG3iaxmHBiya+2bkMKxoEoWeVqB04KK985l50/k0LjqqPY7L3AK lzW22o4W8+2RFJFHeb6bJlHwDHqI94i5ckO/+tgTStlA/fYQ7IMY6kmBY9CTrQjc KEXiZZa5XpxUtMx30U5zlWqCjIUYSay2ja29eUwQ+eUBsLejQjQETwMYRprQlF7j DtixdvQJivfhajsq7EikcvKmrmB4gZziD9dOgcydk89aB+xoFaw8lsU2Eel8ywWA HczJn/FyZXTDZx2SgXgVkJGL4xelnCcXXDTUd+4KH2uUV55A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41dt69ennb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Sep 2024 02:36:10 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4852a9uE017221 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Sep 2024 02:36:09 GMT Received: from kangyang.ap.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Wed, 4 Sep 2024 19:36:08 -0700 From: Kang Yang <quic_kangyang@quicinc.com> To: <ath12k@lists.infradead.org> CC: <linux-wireless@vger.kernel.org>, <quic_kangyang@quicinc.com> Subject: [PATCH v3 0/4] wifi: ath12k: add 11d scan offload support and handle country code for WCN7850 Date: Thu, 5 Sep 2024 10:35:07 +0800 Message-ID: <20240905023511.362-1-quic_kangyang@quicinc.com> X-Mailer: git-send-email 2.34.1.windows.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: <linux-wireless.vger.kernel.org> List-Subscribe: <mailto:linux-wireless+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-wireless+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: q1ESeDmkPx07Ppfh2MOg1kqwMcroQsvl X-Proofpoint-ORIG-GUID: q1ESeDmkPx07Ppfh2MOg1kqwMcroQsvl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-05_01,2024-09-04_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 mlxlogscore=866 mlxscore=0 lowpriorityscore=0 phishscore=0 priorityscore=1501 malwarescore=0 adultscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2409050018 |
Series |
wifi: ath12k: add 11d scan offload support and handle country code for WCN7850
|
expand
|
From: Kang Yang <kangyang@qti-qualcomm.corp-partner.google.com> This patch-set is mainly does four things: 1. Add handler to send WMI_SET_CURRENT_COUNTRY_CMDID to firmware. 2. Implement 11d scan offload, and report country code to firmware by WMI command WMI_SET_CURRENT_COUNTRY_CMDID. 3. Use WMI_SET_CURRENT_COUNTRY_CMDID to set country code for WCN7850. 4. Store country code, and update it to firmware after device recovery. With this patch-set, WCN7850 can do 11d offload scan and update country code to firmware successfully. Note: This patch-set is an old patch-set in public review written by Wen Gong. Just continue sending it for him. Link: https://patchwork.kernel.org/project/linux-wireless/cover/20230914090746.23560-1-quic_wgong@quicinc.com/ v3: 1. use wiphy::mtx lock instead of adding a new lock(patch#2). 2. rename struct according to wmi naming convention(patch#1, #2). 3. update copyright in reg.h 4. modifiy patch#3, #4 due to struct name change. v2: change per Jeff. 1. change alpha2 length from 3 to 2. 2. change wmi_11d_new_cc_ev to wmi_11d_new_cc_event. Wen Gong (4): wifi: ath12k: add configure country code for WCN7850 wifi: ath12k: add 11d scan offload support wifi: ath12k: use correct WMI command to set country code for WCN7850 wifi: ath12k: store and send country code to firmware after recovery drivers/net/wireless/ath/ath12k/core.c | 34 ++++- drivers/net/wireless/ath/ath12k/core.h | 17 +++ drivers/net/wireless/ath/ath12k/hw.c | 3 + drivers/net/wireless/ath/ath12k/hw.h | 1 + drivers/net/wireless/ath/ath12k/mac.c | 167 ++++++++++++++++++++++++- drivers/net/wireless/ath/ath12k/mac.h | 7 ++ drivers/net/wireless/ath/ath12k/reg.c | 70 ++++++++--- drivers/net/wireless/ath/ath12k/reg.h | 4 +- drivers/net/wireless/ath/ath12k/wmi.c | 158 ++++++++++++++++++++++- drivers/net/wireless/ath/ath12k/wmi.h | 38 ++++++ 10 files changed, 477 insertions(+), 22 deletions(-) base-commit: ec6d091977c2c19283e39f27529b100cc17a3320