Skip to content

Commit 2af560e

Browse files
committed
Merge tag 'wireless-next-2023-03-10' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next
Johannes Berg says: ==================== wireless-next patches for 6.4 Major changes: cfg80211 * 6 GHz improvements * HW timestamping support * support for randomized auth/deauth TA for PASN privacy (also for mac80211) mac80211 * radiotap TLV and EHT support for the iwlwifi sniffer * HW timestamping support * per-link debugfs for multi-link brcmfmac * support for Apple (M1 Pro/Max) devices iwlwifi * support for a few new devices * EHT sniffer support rtw88 * better support for some SDIO devices (e.g. MAC address from efuse) rtw89 * HW scan support for 8852b * better support for 6 GHz scanning * tag 'wireless-next-2023-03-10' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next: (84 commits) wifi: iwlwifi: mvm: fix EOF bit reporting wifi: iwlwifi: Do not include radiotap EHT user info if not needed wifi: iwlwifi: mvm: add EHT RU allocation to radiotap wifi: iwlwifi: Update logs for yoyo reset sw changes wifi: iwlwifi: mvm: clean up duplicated defines wifi: iwlwifi: rs-fw: break out for unsupported bandwidth wifi: iwlwifi: Add support for B step of BnJ-Fm4 wifi: iwlwifi: mvm: make flush code a bit clearer wifi: iwlwifi: mvm: avoid UB shift of snif_queue wifi: iwlwifi: mvm: add primary 80 known for EHT radiotap wifi: iwlwifi: mvm: parse FW frame metadata for EHT sniffer mode wifi: iwlwifi: mvm: decode USIG_B1_B7 RU to nl80211 RU width wifi: iwlwifi: mvm: rename define to generic name wifi: iwlwifi: mvm: allow Microsoft to use TAS wifi: iwlwifi: mvm: add all EHT based on data0 info from HW wifi: iwlwifi: mvm: add EHT radiotap info based on rate_n_flags wifi: iwlwifi: mvm: add an helper function radiotap TLVs wifi: radiotap: separate vendor TLV into header/content wifi: iwlwifi: reduce verbosity of some logging events wifi: iwlwifi: Adding the code to get RF name for MsP device ... ==================== Link: https://lore.kernel.org/r/20230310120159.36518-1-johannes@sipsolutions.net Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2 parents 127cd68 + da11854 commit 2af560e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+2647
-645
lines changed

drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ brcmfmac-$(CONFIG_OF) += \
4848
of.o
4949
brcmfmac-$(CONFIG_DMI) += \
5050
dmi.o
51+
brcmfmac-$(CONFIG_ACPI) += \
52+
acpi.o
5153

5254
ifeq ($(CONFIG_BRCMFMAC),m)
5355
obj-m += wcc/
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// SPDX-License-Identifier: ISC
2+
/*
3+
* Copyright The Asahi Linux Contributors
4+
*/
5+
6+
#include <linux/acpi.h>
7+
#include "debug.h"
8+
#include "core.h"
9+
#include "common.h"
10+
11+
void brcmf_acpi_probe(struct device *dev, enum brcmf_bus_type bus_type,
12+
struct brcmf_mp_device *settings)
13+
{
14+
acpi_status status;
15+
const union acpi_object *o;
16+
struct acpi_buffer buf = {ACPI_ALLOCATE_BUFFER, NULL};
17+
struct acpi_device *adev = ACPI_COMPANION(dev);
18+
19+
if (!adev)
20+
return;
21+
22+
if (!ACPI_FAILURE(acpi_dev_get_property(adev, "module-instance",
23+
ACPI_TYPE_STRING, &o))) {
24+
brcmf_dbg(INFO, "ACPI module-instance=%s\n", o->string.pointer);
25+
settings->board_type = devm_kasprintf(dev, GFP_KERNEL,
26+
"apple,%s",
27+
o->string.pointer);
28+
} else {
29+
brcmf_dbg(INFO, "No ACPI module-instance\n");
30+
return;
31+
}
32+
33+
status = acpi_evaluate_object(adev->handle, "RWCV", NULL, &buf);
34+
o = buf.pointer;
35+
if (!ACPI_FAILURE(status) && o && o->type == ACPI_TYPE_BUFFER &&
36+
o->buffer.length >= 2) {
37+
char *antenna_sku = devm_kzalloc(dev, 3, GFP_KERNEL);
38+
39+
if (antenna_sku) {
40+
memcpy(antenna_sku, o->buffer.pointer, 2);
41+
brcmf_dbg(INFO, "ACPI RWCV data=%*phN antenna-sku=%s\n",
42+
(int)o->buffer.length, o->buffer.pointer,
43+
antenna_sku);
44+
settings->antenna_sku = antenna_sku;
45+
}
46+
47+
kfree(buf.pointer);
48+
} else {
49+
brcmf_dbg(INFO, "No ACPI antenna-sku\n");
50+
}
51+
}

drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ enum brcmf_bus_protocol_type {
5555
/* Firmware blobs that may be available */
5656
enum brcmf_blob_type {
5757
BRCMF_BLOB_CLM,
58+
BRCMF_BLOB_TXCAP,
5859
};
5960

6061
struct brcmf_mp_device;

0 commit comments

Comments
 (0)