From nobody Sat Jul 25 21:24:27 2026 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 7AFDF33689A for ; Mon, 13 Jul 2026 16:15:59 +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=1783959369; cv=none; b=kKkjpQFRQtntmdMNhuVc0OVL4k8skVkUg9uTrkN/jtcYnDvmZc6lBjx3rZxrEtTDNGYsRpUx9tUPp9Mta0pNFFnT0SG5tnPGZVvJgHWlg18Rd3I5a6Tf8DPM0cyO5roI5ojkUeliGaR/jhlACIwt6qN8MeqBv5k9XEjyYXkD4Lc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783959369; c=relaxed/simple; bh=pfCOKpJkzAPPABkt6Kvshpp3Cs+cx+pFhUyTtXT45Uw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bwpCf8IWCXrjF1Y3ttNLWstJK14PQAl0SiqCLD6aExNEPtYSfQ7WlZylHMJv/jASXbqpgTJFzBT3B+z8omNwP4Ru7tOjAW1uaqeyR9jODWRDDCMClvRMZP6LoOeCwplm/QQeprBiznYzocyiaaJ96OQfaR2PMCN/YIX8EFxxKcw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=EzLrYT3Z; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=RaUnJE4I; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="EzLrYT3Z"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="RaUnJE4I" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66DF8J5J1860728 for ; Mon, 13 Jul 2026 16:15:57 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= /SEIS1vL/+8nOxtKCLA1mNY2y1cK6U6iZy+GY0kR19c=; b=EzLrYT3Zxjwtibuk TyoLLNMqGzSEyXeBi2kgCSRqSD3boQivLX0NERvsUnK92Bb32PXuhvot0R96N0R5 /h/G9pCNy506wiBZIJuJwY58jptG31REWXNxiZm3yz++paCV0tbJ5rqvihA0HrE4 fWtCqxWdUqa7y0BASOc8pMGqB+aCxOUGUpNsLk8pG84I0nLm/Y+fyzEb88fXU1dJ Z5NFfW/ltI72MxahmRnZWTedg+1ZRRs09BfLQ8dQifS9uutrJVC4Kp/YCbdDyh/0 jsP9JobK7cC6k2LhG5JBOvvXwhheGum0yqwScI8TMHfmmTLzk8MxmijRfV/VRTKp CnF9YA== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fcuj025dy-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 13 Jul 2026 16:15:57 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-384419c6c74so4598979a91.1 for ; Mon, 13 Jul 2026 09:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783959357; x=1784564157; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=/SEIS1vL/+8nOxtKCLA1mNY2y1cK6U6iZy+GY0kR19c=; b=RaUnJE4ITsHIy4LgBqkzdMCC5A0n9Be/Mtsg7I9ElAzR9shkn50ZSYT+QEoWreP+Us rNd2QrTTK66I5eqojn/zrWZ98n6km1MG38wFnO/aPslwlPTsp1z85zlb0rHNWTLFoZvn Hq1xIt6C23xZfBFmEvS4jBrrT9EyXFVsF9gP43aFRveD5K5ineXZq36aaZsoqexlZ8Uo TGGyLonitp3aiIy9mXInFHgkCGE/a8n7wt3p8ZsIfJcvyNTVyxq24mFlG7vt0n3pMXlw YeYZFKX31/+5efNUD1RZZI4Dc3YsXB+kKY4Bx73Wlhf6zyMxnYK4H3UsUe48N3aL7RTj XuXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783959357; x=1784564157; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=/SEIS1vL/+8nOxtKCLA1mNY2y1cK6U6iZy+GY0kR19c=; b=S+yJM+antQ02J1OnqfuSeJdaVolsYvxLHqT5TwOUDmZNND80YmYI4rQh+9Dm5PgBCZ uFlD0XF1FkhhL/w+aYQTvvsrGpC9qg6x/7Oc/VMhLldFxCaGtl94YzIYxPacD1efykFw Fj8UeTFFkRc60jR5P+TWFXT4Q7jCZM2uQyZEASUkw1vKK2I5KX+2LSSd2GZw7ePC0LhI vw+5c4tUK6TfsqRdvzYtnbDayraFp8f59v2rCRTTOBNUST2EbOH1DpyeBzsuZcIeiZWt pnzVEi72U9YZ7DLUSpl+4Hibcq9NOwY0JX58oJAC8dZ55NT4T286zDXLtjTu01mLZWpL sH1g== X-Forwarded-Encrypted: i=1; AHgh+RpppBJ8twYJ3Ihsv0X3EVOnZINGl84OqODgbdtgIHL+kPK1t6v9V1oY19ogk/eDWR0WYOkwXyvkvcwVMbo=@vger.kernel.org X-Gm-Message-State: AOJu0Yzma6n13DstLoQpseslASx96xncAxnb/MZEiFmniEHEn+ii17xG lkAcyMZMRwulmwhrJZBw4c1kYrvf/Dmv7KKgFbdYkfzIIbOC94TaeVLntMDEp8h/ygHDKl/k5vk /bChs5AYAO6wd7ynIkE262hLsZ1Ho0xhCdPRhrFCcZQmdo94X4ABDJs9B/yoSz0vT1n8= X-Gm-Gg: AfdE7cktG3cg41Etb5LD6tsrNTbPNR12lkGvYGift0d+eGcRGoMg+cm8c1DYEFcNUlG i5qlq2HUPzCteE37nL1rvurgLuaP+UpmRcv9s4lUpiLHorafCBZ8Q+fPAlcD4FaGLzxxqQf5cQJ hkovcjUjAW9rXWvLQ5w6WboeSeGBsiNBABjqoYo32dkW9rIVtdF6z4q6FgYCKWrZ5c/3EG0vPOU Q2jLCFVLexYPojrCe12F0WuaiUmi6oKZMLx4uChiC/wZaHZTHVRsT1sdSRfvg2qE5hrvS+gFNuq SESQnArlxESTiopX9GUcDeoa0G4tFDGlfWdjB5fxljRymp34zInLTnAhAxBnihx5Fwu9d2rQMni 4/9ytZa9+BrXS7j4RuLCzAXifP22S7OZgIVc4vCXG/iTbYa1Cjth++3SaURM+0B9iHQ== X-Received: by 2002:a17:90b:3903:b0:387:df8f:1409 with SMTP id 98e67ed59e1d1-38dc77d8a8fmr8610355a91.42.1783959356555; Mon, 13 Jul 2026 09:15:56 -0700 (PDT) X-Received: by 2002:a17:90b:3903:b0:387:df8f:1409 with SMTP id 98e67ed59e1d1-38dc77d8a8fmr8610324a91.42.1783959356092; Mon, 13 Jul 2026 09:15:56 -0700 (PDT) Received: from hu-jjohnson-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3118389d9bcsm60877039eec.20.2026.07.13.09.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 09:15:52 -0700 (PDT) From: Jeff Johnson Date: Mon, 13 Jul 2026 09:15:49 -0700 Subject: [PATCH ath-next 1/2] wifi: ath12k: Correctly copy the hint BSSID in WMI scan request Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-1-4ffc4a472992@oss.qualcomm.com> References: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-0-4ffc4a472992@oss.qualcomm.com> In-Reply-To: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-0-4ffc4a472992@oss.qualcomm.com> To: Jeff Johnson Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, Baochen Qiang , Jeff Johnson X-Mailer: b4 0.14.3 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzEzMDE2OCBTYWx0ZWRfXyQ/EEmfqDHA9 D7BxN7vpVFI+NoTXDidRAELd8mQw4F6fWmORLs2Xc2NPb4AWAbTsZPVFiJ64CI2NTamEsd8ZCBN BSTTnqIMyfg0kBjyZJrnVzt+yUQrJ54= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzEzMDE2OCBTYWx0ZWRfX/RjUErNOi7XP 912ZT/hTQ388dfZ+p39c06skxZ52zyrJNjaDYIbis8KVyl17pOa+6ziWyERqUfdRlzV/8+Vh8Yp 4eXqrObG+Vz62M+5ZtnDzobNgl6gh9q7sGuSiGHgeL4NEAzD/QmJo368Ux5OmH9u/PzmYBszoNS 1yCJxdEVp+DlVG48aIsmnzKZ6KskdV39oQz6t3/gKTa6HUYaXATf3bNJvgnSWMYSQ9ZHd+wMm+z HeGhEXzDq5aWyQCLJwDZFe/rJt7QR3f9wGiPNghd5DUJz/ZFqA7d6LM7n4b6ncJwR4n2bmL4Sn8 npSMSv8RzSDcn/zNlvR4cWzj0KfF8/ju1U2pwJBiz3TOI4tEwSHT7JkaH8G/43xH0z1tKoDBXBy 5s1mLQgYlk6jx4A9z6XWMvMvDBFtIdwD7dofOVYgsDWlTmnO26FvHbqIScXsCABU4+WQyIqGY4D H1ONolMFKNJi5bEfxUg== X-Proofpoint-ORIG-GUID: sH5r3LE27Pq98v-K50CeQOrCM9eqeiW_ X-Authority-Analysis: v=2.4 cv=DbcnbPtW c=1 sm=1 tr=0 ts=6a550f3d cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=vlSVdC5Z7QfGigt1aOQA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: sH5r3LE27Pq98v-K50CeQOrCM9eqeiW_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-13_04,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 priorityscore=1501 phishscore=0 suspectscore=0 bulkscore=0 adultscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607130168 Currently, in ath12k_wmi_send_scan_start_cmd(), the logic to populate the hint_bssid copies the BSSID in the wrong direction, from the firmware message to the argument buffer. Swap the parameters so that the BSSID is correctly populated in the firmware message from the argument buffer. Compile tested only. Reported-by: Baochen Qiang Closes: https://lore.kernel.org/linux-wireless/afbff608-a005-43c4-af76-968a= 58bf0cc3@oss.qualcomm.com/ Fixes: f40abb4788a2 ("ath12k: New driver for Qualcomm 11be hw family") Assisted-by: Claude:claude-sonnet-4-6 Signed-off-by: Jeff Johnson Reviewed-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram --- drivers/net/wireless/ath/ath12k/wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath12k/wmi.c b/drivers/net/wireless/a= th/ath12k/wmi.c index ad739bffcf88..fe9394d561f1 100644 --- a/drivers/net/wireless/ath/ath12k/wmi.c +++ b/drivers/net/wireless/ath/ath12k/wmi.c @@ -2796,8 +2796,8 @@ int ath12k_wmi_send_scan_start_cmd(struct ath12k *ar, for (i =3D 0; i < arg->num_hint_bssid; ++i) { hint_bssid->freq_flags =3D arg->hint_bssid[i].freq_flags; - ether_addr_copy(&arg->hint_bssid[i].bssid.addr[0], - &hint_bssid->bssid.addr[0]); + ether_addr_copy(&hint_bssid->bssid.addr[0], + &arg->hint_bssid[i].bssid.addr[0]); hint_bssid++; } } --=20 2.43.0 From nobody Sat Jul 25 21:24:27 2026 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 12FE433EB17 for ; Mon, 13 Jul 2026 16:16:02 +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=1783959372; cv=none; b=paYDYJpY60OrDJbFDHVjYCmd4KTQOsTsuBmDv8UcnQGQuUhqp9trFT6HGYB56RGd/SyhDhMZQanNGmp4z9HJQZZdN/7nEHXQ0+MKkpn3v4ggEnWamX4N8IKuBgVXRxPedlkef51atGmIGU9qvUbIG33BwVbL/h3IbBdLGpU73ds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783959372; c=relaxed/simple; bh=0eK9WLBIPXbMsczna7fU0yi1o5+hZ/IM8BkNE+Lj16A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=prDCOKqx0gnwFWxBCW4NyPmnhYgH5HR9mS83GVwMKXp8J2+DuCmPL+MdyWZ0j/i32zndVw/8D5vLaiujMl6MERKgOJXKrae/n1M0+yKBTajnHJdMt+8n5xmYssZ2WbSAAlRyXOReYrL6etkT2bvYHRxlIuuVwG2bjyAX6lh5bxg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=hcLhYbqL; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Y8wJF5yd; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="hcLhYbqL"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Y8wJF5yd" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66DF8HtU1709152 for ; Mon, 13 Jul 2026 16:15:59 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Q2FVNtgJupCOGgrImLEh9tbVWBpZqEe14ORG5Bzq4qE=; b=hcLhYbqLG6LCHeiT DYDuabS7eA22M1iSy//7y5P2G9tnNh2FTXn1GFXHyRy3/7v/2NP+27bTYoi5fmzU r6w6iD31zeE8/CvuE2ie4ZRYTs2HObr8itnhWLk8L6tDnoFeWOIh89I//mDErJhY AfNGVOzITzjXfOEI4AZoTDOKNnss/nm18q1/3L/IULO51IHTUc8cmlUzPRFRd1F3 eMj1Auc+jULhlRAOFsc92WCDBttS1oJhExj/NPcU8g70j9uZWMj39SsoPMAWZ5vR vEYgidHVKZ1g9wfUSYYrLY2n+tOCJ938S2BsdCNKI3yvM1IKH21V7orC/iYo9SLb bufq1A== Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fcwk9sjrb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 13 Jul 2026 16:15:59 +0000 (GMT) Received: by mail-pf1-f199.google.com with SMTP id d2e1a72fcca58-848d21bbb55so4037155b3a.0 for ; Mon, 13 Jul 2026 09:15:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783959358; x=1784564158; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Q2FVNtgJupCOGgrImLEh9tbVWBpZqEe14ORG5Bzq4qE=; b=Y8wJF5yd9FFuruOc8w2UmWwcvhah+LEAHTMECtc42hq0GoIyjk6da/U9UszkV+n3oW hzFPGrh/bgJXvEqf0R50IIdbBfl4lRAvh2c9TL5v+Jo4dPMDp5ljdNsqXxsWwv/Licoa 1Z64chy87rfbL9PtdY+IMUWiUHIQh3Mxw0Gjh74lKcJ7zgC45kdJK1o9gBblr8Ix0cXA YztK1SZqDU3c0K+t3kJyxObTRd7Pmkl3RlNQFd+U87Zb8VPEqOvSzRXl9axtyt5JWA/Y tLx84CarGeOlMqRsVw89rj/tM4Tzvlw0kFr/XVaiWsYd2GLXZWytBwlIXSnSef2gOWdW f5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783959358; x=1784564158; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Q2FVNtgJupCOGgrImLEh9tbVWBpZqEe14ORG5Bzq4qE=; b=UN9gaKfPDlnutFNsnjNW/LXwH4Jz2O2hFr79Wkx+Aokx3Z0KlfDNECxTYYke6bsVEE zny1Nwq2Rx4CBQdUxvgtT7Uj12tvw6e1+h+jhb8HqWOY9OY3AiSt9HegSdvFrw13nMJb pqIcJ0Sr2QBH5sR+qa2C2cffTjT4FACjFa8FAyJs44tSdyOCidLNDTfmB5rf4M/j+yJp JkrrFklz5gJHiKb+hBvMMtMfdS1ECzxl86nNc5avLKQwNueptQLKuJZJNPCaLU1SlI10 k01zX/rUukAFnM8DLw6ldZ6ffFS3CynPRsSH7xbt4wNJ93lYnBpP84YMh+6VVk1uF9Ui Sn7A== X-Forwarded-Encrypted: i=1; AHgh+RrA+67PZ8posVuQI1M8mYKkXUUUA4Dk+KjMu/Ac0PAP3XFDvuDxBLlt5L4+nMpznzDdJxMjAYpJm0s87Go=@vger.kernel.org X-Gm-Message-State: AOJu0YwL4LLO5p2seauUm1+bv1QslZX0BmQRa4QGizwC26QGfvtaCZsu prcAkEbEvxg8Yd5Xo4jLKs2Mocpv9rhQKk1vxUSmcbpAmsNRfED0UX6kzwAIR1+RcHNuX39Nuvf 2+m+LugmhpBPwuL5pRE68uyEW0BvS8h146EbgZr+iGnIGq1klvRsqaiEnDojYBJjcNBk= X-Gm-Gg: AfdE7ckIGY1e/3+Uz4NnOWnih4GgQxueSR+PDUTM1lrmrEldT1/FHZJiqwMS97wGmdf M7qbRvKgVUFXeJM+ydfUDaZIMl7I91MCDh2DpbuexMmB0x67dolr1R+ND5rGWoR+IVmcosq+7xs XH7f4qQUYju9UwM8pK5MBkaD8NSRRg/sAJCsdRE0AM4ADAhz2Bni9F4unfQf2nhdpFufaSJNyDy MATam+Bc7+KUhTKzR/UBrdMttNz3ls/UhOQVR5cciQTe5oicdrvQww6ik/E9Sh0libCgY35GzDb RV4OagPIuDA6To67jf75PH8fIagaHGMgzmRjR2DdJ6c5yBV+HoSpuB4/yFEDeFDhr4gBf9xw8LS MqvCeeweiCTgFF4QKi1YCNyyGBDqZBkcEApKMrr+43CjL7RGzxd3noVeJGhnrsvnX2g== X-Received: by 2002:a05:6a20:9190:b0:3bf:5b7a:fc8b with SMTP id adf61e73a8af0-3c10fd60400mr10508131637.0.1783959358301; Mon, 13 Jul 2026 09:15:58 -0700 (PDT) X-Received: by 2002:a05:6a20:9190:b0:3bf:5b7a:fc8b with SMTP id adf61e73a8af0-3c10fd60400mr10508101637.0.1783959357882; Mon, 13 Jul 2026 09:15:57 -0700 (PDT) Received: from hu-jjohnson-lv.qualcomm.com (Global_NAT1.qualcomm.com. [129.46.96.20]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3118389d9bcsm60877039eec.20.2026.07.13.09.15.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 09:15:56 -0700 (PDT) From: Jeff Johnson Date: Mon, 13 Jul 2026 09:15:50 -0700 Subject: [PATCH ath-next 2/2] wifi: ath11k: Correctly copy the hint BSSID in WMI scan request Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-2-4ffc4a472992@oss.qualcomm.com> References: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-0-4ffc4a472992@oss.qualcomm.com> In-Reply-To: <20260713-ath12k_wmi_send_scan_start_cmd-bad-hint_bssid-v1-0-4ffc4a472992@oss.qualcomm.com> To: Jeff Johnson Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org, Baochen Qiang , Jeff Johnson X-Mailer: b4 0.14.3 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzEzMDE2OCBTYWx0ZWRfX6zPf99CigQAC ujEkTJIBqY6dIP0/RWZUR2nO95+/rljkjEmBtEBQTBv+gGFydps7QBufm7++38nPSK/ihEwJA+s LWe8DFLEmVbWmiJBafFif7M8IFgYr+0mRrI2RlOolKR1v/Mz7Noqm9yQfed3aooIy10o2D02RPt UkrZkcSuh0hLhgQmFl6pPNkFYzT0bfpMtPNiTzJ8oVXkq9rRcVH16YINixUoeJMJEYgu1etCdnw vxtYHujyklRs/4Ly8vT7UJzFKStNu1apFDFj/rm7/X28zOw3uD5LTmPOBvfWN4gbFjjXELY9J3U 3TIap95LbIzzWHAVUC1lB07Bl+reR82QZIw8NMy51LAywD9lSjoSSboNX+K1AdYpzbk+7TUyEb0 dCwo+WAcb0+P3DPjhzGYk2igLalbM1x6xNW73ii+RFMilaGAjc0TgKDsn2Iew4y9vWgt7UItyxt 7+a/E5Pwod5pepPm1rQ== X-Proofpoint-ORIG-GUID: pOg00gMlsS0ZD17Q_puI6FYNvlCntac_ X-Authority-Analysis: v=2.4 cv=UMHt2ify c=1 sm=1 tr=0 ts=6a550f3f cx=c_pps a=WW5sKcV1LcKqjgzy2JUPuA==:117 a=ouPCqIW2jiPt+lZRy3xVPw==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=RxwCyRMQgNksxjula40A:9 a=QEXdDO2ut3YA:10 a=OpyuDcXvxspvyRM73sMx:22 X-Proofpoint-GUID: pOg00gMlsS0ZD17Q_puI6FYNvlCntac_ X-Proofpoint-Spam-Info: AW1haW4tMjYwNzEzMDE2OCBTYWx0ZWRfX3V6EC1px6ao0 YRJCRypLdPbM31y3Bs2t9OakNpdaHfkqxGZ2yvtlj18XUCXqTNF0aj5/MQjxmwu4ekn1ZI4i/1n RfUGuJjnyojPFFHde4pY3FSEb/eGKDs= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-13_04,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 impostorscore=0 spamscore=0 clxscore=1015 adultscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607130168 Currently, in ath11k_wmi_send_scan_start_cmd(), the logic to populate the hint_bssid copies the BSSID in the wrong direction, from the firmware message to the argument buffer. Swap the parameters so that the BSSID is correctly populated in the firmware message from the argument buffer. This issue was reported on ath12k, but exists in ath11k as well. Compile tested only. Reported-by: Baochen Qiang Closes: https://lore.kernel.org/linux-wireless/afbff608-a005-43c4-af76-968a= 58bf0cc3@oss.qualcomm.com/ Fixes: 74601ecfef6e ("ath11k: Add support for 6g scan hint") Assisted-by: Claude:claude-sonnet-4-6 Signed-off-by: Jeff Johnson Reviewed-by: Baochen Qiang Reviewed-by: Rameshkumar Sundaram --- drivers/net/wireless/ath/ath11k/wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/a= th/ath11k/wmi.c index dca6e011cc40..c54f50b98a13 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -2423,8 +2423,8 @@ int ath11k_wmi_send_scan_start_cmd(struct ath11k *ar, for (i =3D 0; i < params->num_hint_bssid; ++i) { hint_bssid->freq_flags =3D params->hint_bssid[i].freq_flags; - ether_addr_copy(¶ms->hint_bssid[i].bssid.addr[0], - &hint_bssid->bssid.addr[0]); + ether_addr_copy(&hint_bssid->bssid.addr[0], + ¶ms->hint_bssid[i].bssid.addr[0]); hint_bssid++; } } --=20 2.43.0