From mboxrd@z Thu Jan 1 00:00:00 1970 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 B0DCE3537F6 for ; Fri, 3 Jul 2026 07:46:30 +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=1783064791; cv=none; b=Y0yVmChgxYwTk+GjIbfGiSiuPgjjLf4hSKBVg0qbZha9UnNko7oImXBxIMtyH24uMC7vrjWxsYEs9lRldsOkm5X1yElCObs0MJDwyp5NUE6GIT8gEhyfPBwnK1SJIcuImZRgUgDrJWOCUBtaw6dkH/JZeXFFbJh0Go7Bn7+vFAE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783064791; c=relaxed/simple; bh=P1ytk5/PcGkcJOVgETbfScYbP+Q1q4KJH/BVIhcYMvQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=AEKO3fnS9Jgre5Azt/yBkEBwWDv8DslkcFA3U4VKBT1DrBRpkhlkyOWvLVLBE2ao1ZnzxvwOaqgA3xazzt31EwTg/lMt9Y9bL6pZYvsloTX+crhw9UaW9av9cxUnqHK4BsLZ5+YFr4wPHxf7NLCOM9taybDXykR/D3rY5ZPbAxg= 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=OWmroleq; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=jjY1GbFS; arc=none smtp.client-ip=205.220.168.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="OWmroleq"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="jjY1GbFS" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6637ITcd3195080 for ; Fri, 3 Jul 2026 07:46:30 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= ngijrW1o66RPMM4l7xoEqLhLY7J5j0WjVIKSD1HqKY0=; b=OWmroleqjOQlzNVT hcm8Jmx2h34kH/oard7T8UMcrd7OuaLWw0fMqNI1Wp4zGEhoUlwvM6uQLNpn078i H8LD50c54FYuH3tQ0pq6IpRx+9H1sYCtgEVqXp0oZeQEz94wo8WMk4FkUX7Y0zMM 7bXgB7wYTZ4Kh3AIqYXCXrKtVVmOgGuQ1YuA6m7i3yRZ+gFN3sizrVs8J2TbWD7X HtHyYmEvPAJ5c5afF88PifMiLEjznynhQx+UnM5W05xNbnayZNwdFpW+Ex6sz2A8 EkTtbzyDR+JrG8xl7QJ7B5AApVABfJcInlsQWKpC8T5xoS3ODpygo6cQXmmH6jCW sweSiA== Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f68jyr3c2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 03 Jul 2026 07:46:29 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2c8284701c2so3641505ad.1 for ; Fri, 03 Jul 2026 00:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783064789; x=1783669589; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=ngijrW1o66RPMM4l7xoEqLhLY7J5j0WjVIKSD1HqKY0=; b=jjY1GbFSXdSie+62IAO7Hp35dt/zZ16MSKcVlvlp70CYy7/uXCajTyOI7I8kmAK1xP Qw4ucevMagSoDWtkHa3epVlZF77Z6gWZsAl7K8/NdRNXgU4a2tim8cHeG4x/nQI95Qlk e/khpbQMMDLFSiEb12aAVfRDtPeqgMX2IbEDd6hA2BZR/NNBPgqJE1mdSLyDBc3Q2wHS gbPa2cLXXHQ3WMzV+RYZQ+P3kWCQ/FCfiFvQLrXzcRuKeSg+3uaIibS7ozJ5YiYMZGz/ XXmBlbluR8i/xBzzIJDUqfPmzRNF3NSuGqw7y8+6xWdGB2Np3iM3hRZFRZXj0dcUzJuM yrvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783064789; x=1783669589; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ngijrW1o66RPMM4l7xoEqLhLY7J5j0WjVIKSD1HqKY0=; b=maZVNszcKPrGpfY+fzGFldvLuihVX1HDOWmVepVltvNiUUXYKDvHRYmOmW4PB6NxGU 2j/mSmYwxQQgbzhQRJVw+ma5ZZeRKs3GGn940190Vb4u3SLKUN2kZGAzo6KrlRaGFivn GsH9xoIcBmyHcMivGapYacyxOMkPD2ywZlSW/yeST5+wFx/L+BjpklnLBuZ6cbHxHDut rUG2gOp7QQjD9zWxQ05M6GiREMa4owVI9aCTVuHHgu3osqf+CPx7yt1Zz4jRkQWPBVYw r0lB9kgH6qjAAWIqwDA4n/x9CLJOiqQAvbmecAr4n+SyWqZLwtyhFgev3QD6aamgumXA 2NdA== X-Forwarded-Encrypted: i=1; AHgh+Ro9NceKz79CH3feq3U2qsU6xSfXdm0/SlxM5mKvpMlUheDMJ3losfWnBWt8BQc8dhmTH82cj6HYJw2fO4M=@vger.kernel.org X-Gm-Message-State: AOJu0YzTotdZT0jOhnybD9ll6I0NhsWneWLxYmZzf2tLZYjA8v538r/S weeUffxuNmcS1F6unnvSFhphaxqxAmbx76xhhqE+XR11FMjaNpH2ppzqvpAvuHxf4I2x5SLKcvT b2vZEJ7KOzrwR97OqINQnu5POatHUrz2Lbk5nFCEMoX0737h6csi1tU/bjkxIgGso5dw= X-Gm-Gg: AfdE7cn6mnCnVOBnGHMUIpmvSvkPBP5kJ+VYh3ZK7N6dTMA3/wf8B8Ep1ZuuvYzjDh7 kPKpfWThVrqWn3cp5630YduOdsXwKswvouKeR4HeWDsujDnnjn7ysXqb23CvbsK8bayRfXRS1Vu HLrWh6uxVb46eJR7/pFGxPYRGU3jhQrCk4iPiiiXkkKVyObna6CBJjvoWvphMw1afJuufaKSj/i HMyCxdNw5h+pV+E/L2tU5X6ot1M2Q8Z9jASvpkUs1Z2zyIW1H5+hVY7HmrehUaWO1lKxSzoP7Hq l3fHFaZjHgn35n/eJHngJPPYW5B3Dd2zfmVVUR5b6ix3k0Lqxhy7IJjVAaExyPrkFh/1jI4KM4c M5NnTg+pIUY0fUz6okxlvf+sEmZThHYDKpabWkI7WMWgj5L/TG7EigCHf5vaPCaxgJd6Q+Ce00h pHKNxmLyxg X-Received: by 2002:a17:903:3848:b0:2ca:d873:3b34 with SMTP id d9443c01a7336-2cad87346f8mr12510735ad.36.1783064789279; Fri, 03 Jul 2026 00:46:29 -0700 (PDT) X-Received: by 2002:a17:903:3848:b0:2ca:d873:3b34 with SMTP id d9443c01a7336-2cad87346f8mr12510515ad.36.1783064788820; Fri, 03 Jul 2026 00:46:28 -0700 (PDT) Received: from [10.133.33.211] (tpe-colo-wan-fw-bordernet.qualcomm.com. [103.229.16.4]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cad6bd7611sm5516185ad.0.2026.07.03.00.46.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 00:46:28 -0700 (PDT) Message-ID: <46b956ba-a168-4594-823e-3f27b5daadd6@oss.qualcomm.com> Date: Fri, 3 Jul 2026 15:46:25 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] wifi: ath12k: fix scan command endianness on big endian To: Alexander Wilhelm , Jeff Johnson Cc: linux-wireless@vger.kernel.org, ath12k@lists.infradead.org, linux-kernel@vger.kernel.org References: <20260703-fix-channel-list-copy-v2-1-372c39306d79@westermo.com> From: Baochen Qiang Content-Language: en-US In-Reply-To: <20260703-fix-channel-list-copy-v2-1-372c39306d79@westermo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzAzMDA3MiBTYWx0ZWRfX0dl480TmJ33f T1sXrukjJl3TDVq8BfcxmTJPqFcheByOWitGjW4EVEPV5P9bTj0v24ZKOvjL7gkxQSVOMAjmMxZ 5APy7G0S0bL1sWCgmu7hueTEwu80nxhOOYb99ZgkikAkjsnUxTVZ+e2XqgB1ULlaMr3wqJMjMRe 3zKrIsA7htJRL2GY8YcKo1Cv8vDDEhsB88vqxt071HHFGzBnFLa9YQCGVNXifv0voRQYmw5DapQ A0iGS72Q31ZztBQlUWr1T+hmzq8bH4ywO7sUuBP0w/0iT9oawJpm+/xWGJtrcLyrjuMZlWRIByv 9n06LF9hXPu3EVV6a8qpzA9PhwCqjOtQTexCAozqCttDfVuAB7iqbGfVe85J6jL+xYuf661dIQI XqJrXUKRzPguT47usr90VtD5TB1KsqMJj4rjS3PM4uf9ClpZkuhNFC4DhGZBUaW5dSSzrNZhr6a dS+tKYftO+FmXslQlcw== X-Proofpoint-GUID: PsdG0X-R2HX5DiZPYfwVw4d03y4CGiOr X-Authority-Analysis: v=2.4 cv=QbFWeMbv c=1 sm=1 tr=0 ts=6a4768d5 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=nuhDOHQX5FNHPW3J6Bj6AA==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=N9GNhs4bAAAA:8 a=EUspDBNiAAAA:8 a=gTOcNWQQRDhoJBoYzwgA:9 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 a=PZhj9NlD-CKO8hVp7yCs:22 X-Proofpoint-ORIG-GUID: PsdG0X-R2HX5DiZPYfwVw4d03y4CGiOr X-Proofpoint-Spam-Info: AW1haW4tMjYwNzAzMDA3MiBTYWx0ZWRfX2eAZfslYq0i8 +9gcZ5b1q1xUR4aobRvt+vgwZ6U+AN38VeCNEWphUHGKPOL8MYCeUYgOsaSjbbfAFdPr9ZJBrCE blYNopOIlKxdjH9Jp+rE8edzHZ+q1g0= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-07-03_02,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 malwarescore=0 suspectscore=0 clxscore=1015 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607030072 On 7/3/2026 3:35 PM, Alexander Wilhelm wrote: > ath12k_wmi_scan_req_arg stores scan parameters in CPU-native byte order, > while ath12k_wmi_send_scan_start_cmd() writes them into a WMI command > buffer whose contents must be in little-endian format. The existing code > copies the channel list and writes s_ssid and hint_bssid related values to > the command buffer without endian conversion. As a result, scan requests > contain invalid parameters on big-endian systems and fail. > > Convert the channel list as well as the s_ssid and hint_bssid related > values to little-endian before writing them to the WMI command buffer. This > preserves the existing behaviour on little-endian systems while fixing scan > requests on big-endian architectures. > > Signed-off-by: Alexander Wilhelm Reviewed-by: Baochen Qiang