From patchwork Tue Jan 30 04:02:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kang Yang X-Patchwork-Id: 768427 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 AB037374F8 for ; Tue, 30 Jan 2024 04:03:32 +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=1706587414; cv=none; b=PNULOOhbO0JWBcXNZ6QzHuvgK5fUvFb7/fv+oZHUILCOa9JHgVN9yx/wA4x+i2P8n+2lrRAT1Fq7bBENTRfSmBsfsKgiL+3fGaemgvDHD9hJ9rcXbObP60sg+ZUV2Zwt8+/lfHmgMOWEUGVSJRpgQlXr3KQk4IkempRicRYNWHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706587414; c=relaxed/simple; bh=860igtthFIN345/GKB0lWMr+nY73TPAcRNCiWTD63SI=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=ptM9wgfe3j5Es/b9l0vq7B8pAkJQoHmUk264+kMIkOmfD+G6rr60EBD3fgs8EKcOYxiCpmdufovQFxRyFZNFJWnI/B6iRSGoz+CIq8aMvWq6CuBk1X7G1BpXAi8ypJy3rmy7fFWN+SJv/0eZr26XH8yK+7g1KRhjtur+D9gUX8U= 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=mpmhk3fV; 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="mpmhk3fV" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 40TNt2Bc029321; Tue, 30 Jan 2024 04:03:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=qcppdkim1; bh=AxEbFMO FeW0GnYcW8HYKRmgzB0sqrscRRRUvW7sQ0Ms=; b=mpmhk3fVJmFzGEZURg3n1vk 1doAAlEnwHsDzhdeveWsa5ECWnt3b5utBTN0kaNaPN0XBdtIItK0vt5v+ZKUE58z /m1LfI2jwwP7WHrFsiz2mnkWiPoEorclnYtcUOGSrl6c9NGNhYf5pR9ul8Ue4ca0 F/8XyeJPLjqBztV/0OFtXawDUJEZdPAokj1PhEAaLP8nvF5xENCWOoG7/hPHRq3h hL3WaPsFWgASoNaolm+ANqBW+mleAjlE1xLqMLQQv+LdfCLedXJ6cauMXoCzxbx1 yOAyBXDT8zMp/Df6x728MriGU/3SIAaYl5fNnn8HgW4ha699ZJs6yk72TQ2ijZQ= = Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vx86htkd1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 04:03:26 +0000 (GMT) Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 40U43P4N026770 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 Jan 2024 04:03:25 GMT Received: from yk-E5440.qca.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.1118.40; Mon, 29 Jan 2024 20:03:24 -0800 From: Kang Yang To: CC: , Subject: [PATCH v6 00/11] wifi: ath12k: P2P support for WCN7850 Date: Tue, 30 Jan 2024 12:02:52 +0800 Message-ID: <20240130040303.370590-1-quic_kangyang@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-ORIG-GUID: RgLLsdWEkc9jnhi8he3k6qArfvKPpbn4 X-Proofpoint-GUID: RgLLsdWEkc9jnhi8he3k6qArfvKPpbn4 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-01-29_15,2024-01-29_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 spamscore=0 impostorscore=0 adultscore=0 clxscore=1015 mlxlogscore=999 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401190000 definitions=main-2401300026 Add P2P support for WCN7850. Kang Yang (11): wifi: ath12k: fix broken structure wmi_vdev_create_cmd wifi: ath12k: fix incorrect logic of calculating vdev_stats_id wifi: ath12k: change interface combination for P2P mode wifi: ath12k: add P2P IE in beacon template wifi: ath12k: implement handling of P2P NoA event wifi: ath12k: implement remain on channel for P2P mode wifi: ath12k: change WLAN_SCAN_PARAMS_MAX_IE_LEN from 256 to 512 wifi: ath12k: allow specific mgmt frame tx while vdev is not up wifi: ath12k: move peer delete after vdev stop of station for WCN7850 wifi: ath12k: designating channel frequency for ROC scan wifi: ath12k: advertise P2P dev support for WCN7850 v6: move patch #7, #8 to patch #1, #2(Jeff). v5: 1. move patch #10 to patch #8. 2. change commit log for patch #6 and patch #8. 3. simplify assignment logic for patch #7(Jeff). v4: add a new patch #10 to fix warning(Kalle). v3: rebase on new ath-tag, use ath12k_ah_to_ar() get ar(Karthikeyan). v2: 1. add Tested-on tag of QCN9274. 2. update copyright in patch #1, #2, #4 and #10(Jeff). drivers/net/wireless/ath/ath12k/Makefile | 3 +- drivers/net/wireless/ath/ath12k/core.c | 1 + drivers/net/wireless/ath/ath12k/hw.c | 7 +- drivers/net/wireless/ath/ath12k/mac.c | 368 +++++++++++++++++++---- drivers/net/wireless/ath/ath12k/p2p.c | 142 +++++++++ drivers/net/wireless/ath/ath12k/p2p.h | 23 ++ drivers/net/wireless/ath/ath12k/wmi.c | 114 ++++++- drivers/net/wireless/ath/ath12k/wmi.h | 50 ++- 8 files changed, 642 insertions(+), 66 deletions(-) create mode 100644 drivers/net/wireless/ath/ath12k/p2p.c create mode 100644 drivers/net/wireless/ath/ath12k/p2p.h base-commit: 17f4b952f067b1f87d14e6df4c8c216fe7a245d1 Acked-by: Jeff Johnson Acked-by: Jeff Johnson Acked-by: Jeff Johnson