-/* $OpenBSD: qwx.c,v 1.7 2024/01/25 10:11:04 stsp Exp $ */
+/* $OpenBSD: qwx.c,v 1.8 2024/01/25 17:00:20 stsp Exp $ */
/*
* Copyright 2023 Stefan Sperling <stsp@openbsd.org>
.hw_rev = ATH11K_HW_IPQ8074,
.name = "ipq8074 hw2.0",
.fw = {
- .dir = "IPQ8074/hw2.0",
+ .dir = "ipq8074-hw2.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.hw_rev = ATH11K_HW_IPQ6018_HW10,
.name = "ipq6018 hw1.0",
.fw = {
- .dir = "IPQ6018/hw1.0",
+ .dir = "ipq6018-hw1.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.name = "qca6390 hw2.0",
.hw_rev = ATH11K_HW_QCA6390_HW20,
.fw = {
- .dir = "QCA6390/hw2.0",
+ .dir = "qca6390-hw2.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.name = "qcn9074 hw1.0",
.hw_rev = ATH11K_HW_QCN9074_HW10,
.fw = {
- .dir = "QCN9074/hw1.0",
+ .dir = "qcn9074-hw1.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.name = "wcn6855 hw2.0",
.hw_rev = ATH11K_HW_WCN6855_HW20,
.fw = {
- .dir = "WCN6855/hw2.0",
+ .dir = "wcn6855-hw2.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.name = "wcn6855 hw2.1",
.hw_rev = ATH11K_HW_WCN6855_HW21,
.fw = {
- .dir = "WCN6855/hw2.1",
+ .dir = "wcn6855-hw2.1",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
.name = "wcn6750 hw1.0",
.hw_rev = ATH11K_HW_WCN6750_HW10,
.fw = {
- .dir = "WCN6750/hw1.0",
+ .dir = "wcn6750-hw1.0",
.board_size = 256 * 1024,
.cal_offset = 128 * 1024,
},
char boardname[200];
int ret;
- ret = snprintf(path, sizeof(path), "%s/%s/%s",
+ ret = snprintf(path, sizeof(path), "%s-%s-%s",
ATH11K_FW_DIR, sc->hw_params.fw.dir, filename);
if (ret < 0 || ret >= sizeof(path))
return ENOSPC;
char path[PATH_MAX];
int ret;
- ret = snprintf(path, sizeof(path), "%s/%s/%s",
+ ret = snprintf(path, sizeof(path), "%s-%s-%s",
ATH11K_FW_DIR, sc->hw_params.fw.dir, ATH11K_M3_FILE);
if (ret < 0 || ret >= sizeof(path))
return ENOSPC;
-/* $OpenBSD: qwxvar.h,v 1.4 2024/01/25 10:11:04 stsp Exp $ */
+/* $OpenBSD: qwxvar.h,v 1.5 2024/01/25 17:00:21 stsp Exp $ */
/*
* Copyright (c) 2018-2019 The Linux Foundation.
#define ATH11K_FW_DIR "qwx"
#define ATH11K_BOARD_MAGIC "QCA-ATH11K-BOARD"
-#define ATH11K_BOARD_API2_FILE "board-2.bin"
-#define ATH11K_DEFAULT_BOARD_FILE "board.bin"
-#define ATH11K_DEFAULT_CAL_FILE "caldata.bin"
-#define ATH11K_AMSS_FILE "amss.bin"
-#define ATH11K_M3_FILE "m3.bin"
-#define ATH11K_REGDB_FILE "regdb.bin"
+#define ATH11K_BOARD_API2_FILE "board-2"
+#define ATH11K_DEFAULT_BOARD_FILE "board"
+#define ATH11K_DEFAULT_CAL_FILE "caldata"
+#define ATH11K_AMSS_FILE "amss"
+#define ATH11K_M3_FILE "m3"
+#define ATH11K_REGDB_FILE "regdb"
#define QWX_FW_BUILD_ID_MASK "QC_IMAGE_VERSION_STRING="