From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795967234; b=1Yt+GVEZlX6nhN6h0ei8/t/q1P7H7W0rFVcYWtAH+pv50A9g2jK2+/G9DbF7cZet/RzP GcGylekgk2yHpIxtF0daPCXIg2tWy/TkBx2CQVJ7kDXnC6fORqoMMDYZbpFgojzb5JoRR aKZpKvhVhqktLyRmej1eCBEa1Nz3JGiI0fKq8UKk4q1oidvnwYjhRWsm1qFZSWM+TBBAW CbcCIe/YEP9rm/t/M84Ud/XfbwWbq4E7tq2B8thGHRa+xTeAZ5+5vaJ0yK1GdTJeCssMy bvV3URupGzE5bf0anN4bL1A7CJXptBBA3x83y5nvMcYTKpuJUbCEiNf3lDkuOxeO1NQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795967234; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:To:Cc:Subject: Date:Message-ID:X-Mailer:MIME-Version:Content-Transfer-Encoding; bh=bYlWzDttEa0tex+UFrh+DyySuV8PV5o1Ho/kp6xz+cw=; b=CSQpHrF6C/6lBDyzov62J1T0aBrluiPNYNkHJZEbRMKmbrmo2aGwWb9wk7XMoK5vEy0o EJs6CXm2GRnoDLQXjz72QuGljcru5WJ7tPA13suygtZe6IdqhKL6z4NbB144QuHT6buag NwEsYfAOJR3UXn00xI13DddpJViVvQcWdjdQRsWWWh0Qv4NgzQh+tXIUPSWBU3XRLFpAF 0fijr4V5sUbDUKfE3pbiAhctgG1xGSIUevUEqeaoG4sw5vIII1C1jpztbKRSujOmHu+lX Y7w/7TXdaxmapjAKb2u8Z4dNQtxZWvZ6plHavjAUCXjXddza66Frw5tgwpWEI5jATiA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pD4UcxsS; arc=none smtp.remote-ip=209.85.128.53 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D3B7606A31C for ; Sun, 29 Nov 2026 15:47:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1D3B7606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=pD4UcxsS Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4bb69f5b161so64230415e9.0 for ; Sun, 29 Nov 2026 07:47:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795967232; x=1796572032; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=bYlWzDttEa0tex+UFrh+DyySuV8PV5o1Ho/kp6xz+cw=; b=pD4UcxsSHGl1WqUcG2nGXcGdoeAQrzm2pTkiPaNQ7CAeITczDJAe9XMySm3gwlYz5M eTBQqGnM4jLH2j1js8D22Dcte2fqjvVatXfBNHatTnaPriwKFH2gPMbMraB+r1qzZiuo w3iYuQavsoMgvU2bs1CEEU6mGqw+Yah5kZWe57c69v52IRuMn4jEt3gNDQXwFnNmNTwr mwLIQ1VqnWwTPZ7BLP9NEVTFHL4CyLD0fhSjiW9QeBOnm46vwH/jg+zVa2LOLVt3J/zk 5r00rU4IDlw1LU1z9GaECwcHxTn+JRzE8e4x651KJ3PeVWY+PgK59AOaLxMU2FQz13lt TPKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795967232; x=1796572032; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=bYlWzDttEa0tex+UFrh+DyySuV8PV5o1Ho/kp6xz+cw=; b=kolEfzEC5nl80ufER7YflbPWRUqyMU0IZ10BvP5PYyABqE/BKVDVkI9alQAiqTTk13 H5dW250+JyMTG43eed+JOIqMp1L6O/DFzs9O1NiuYwOuJ5z1aUV43IKkozkFO0tFlL55 Qurw6QmJ5aqhfZtKDnPg+l1lxmzLTbyau7BqJaJKMPB0nOJMiFSdIBKXaay2dGRG2qHg LjWvNZbfdJRXrIoWAJzQB9gtZhtbSD9tZxXeQZtJxrDPv1h2epu7NCLxuR9q7HIglBL1 Nscp2zObLGH2AmER94Ga9mDxZx4w78+LYg2KKriNeqGxSCEl3BzWvBUpUn/e+AcdneGk PtGg== X-Gm-Message-State: APuU4Z+e4ZdeT/RNDCUY20sSmsu8LSYAX9sYjG2lX42wQ3Ivczd5QfnI IRCFXqMRHTj//hHJ70pMamoR0j17d706BgyHf0gjoc4v7uVPKQddfMAWy/kz0JV4 X-Gm-Gg: AZFdTZeGqhRy0bcEH1KIKuKQLNCAZjMOx8QoaJ+e17GTKb9BM3pKy6hzYTacANUxDDY 9zTLHvK7fgtLAetbQM2RVH5Jao3yxi3y2+MyOoB0us3f33STesDOWK3qy8InGMuoiY4Egzhm+Zu UrVpb3ETp8hOtOozPuEMW9mD2P41NUXPp7d1KiwK8Vxie2nS9XJPhVySbBsoS9+zpIJC0BBjSbH xyMgwEZ6OjzGXn4pqpXkpfUONYKFeEX12pZEQsqIPi/vHb+WtDv5MIWooXL7o5OKrmEe+DIAQnN uazDsbOS0mMyTPIR/9NtpDt3y4sAfMFYVPibSHVlqw0ZUpo8T9fCT7DyMlOGF0gRpZaE9ryEK1o 8fFPp9SNadukHD+X4vejTZAKxypusiXGOOcfEYP6ibPLX0qa53FYTz93Hz3/Js/3YvVB8fGpJOq xXSasciNr2pzqGDI1A1P6JMezKN8me1jDpvqoIpJsar3VfKPAnB7pwbPsF4n6/nq8167JfDbuKm FOgx2CQ0J9tcMKhhFt/84/Xn38o+baWQo0HVBIqIXkRIWsv3AhI9/U8mNp+PIMpkR6BD3+DGvN5 /tFm9o1z4CVSQ/motAJjrNu9QtlgaokhPR+ffs2I75faO7caEfHetdDNpEF/bwMYEpKtJ66XoOo +uAoLm61AFE+kUVZlSw7jOppSwFA4ti8C+/GZ3nOu9WVAqX0DHPLG1ro242ZAWwkpQ7HuKkMMns 7MR9V/TU6obXEOOHSgUkjlGZvYjsiN+G60o2tP54XpMDArMv50gOJA X-Received: by 2002:a05:600c:46c4:b0:4bb:6a5a:7834 with SMTP id 5b1f17b1804b1-4bb888106damr635612475e9.20.1795967232189; Sun, 29 Nov 2026 07:47:12 -0800 (PST) Received: from localhost.localdomain (dynamic-2a00-1028-8388-a84e-1080-8fd8-c252-0ba8.ipv6.o2.cz. [2a00:1028:8388:a84e:1080:8fd8:c252:ba8]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb8526cbd0sm1161558905e9.0.2026.11.29.07.47.11 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 29 Nov 2026 07:47:11 -0800 (PST) From: Josef Schlehofer To: Jeff Johnson Cc: linux-wireless@vger.kernel.org Subject: [PATCH ath-next 0/3] wifi: ath6kl: fix issues found on big-endian MIPS Date: Sun, 29 Nov 2026 16:47:07 +0100 Message-ID: <20261129154710.86640-1-pepe.schlehofer@gmail.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit While bringing up an AR6006 on a big-endian MIPS router (QCA9563), I found three issues in ath6kl that do not depend on the new chip: - BMI command fields are sent in host byte order. - API 1 firmware is freed with vfree() although kmemdup() allocated it. - Firmware capabilities are read as bytes instead of with test_bit(). All three fixes were tested on the router with backports 6.18.55 (OpenWrt 25.12, kernel 6.12), using local AR6006 support patches. On ath-next they build cleanly with W=1 for big- and little-endian MIPS. AR6006 support will follow separately. The firmware question is here: https://lore.kernel.org/r/20261129142154.53536-1-pepe.schlehofer@gmail.com Josef Schlehofer (3): wifi: ath6kl: use little-endian BMI command fields wifi: ath6kl: use kvfree() for firmware wifi: ath6kl: use test_bit() for firmware capabilities drivers/net/wireless/ath/ath6kl/bmi.c | 55 ++++++++++++++------------ drivers/net/wireless/ath/ath6kl/core.c | 2 +- drivers/net/wireless/ath/ath6kl/init.c | 11 +----- 3 files changed, 32 insertions(+), 36 deletions(-) base-commit: 18d0bedbb5f0538396cb7f763ed9cd1dd69c5b23 -- 2.54.0 (Apple Git-157)