Skip to content

Commit aa6c396

Browse files
committed
Merge tag 'wireless-2022-12-21' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless
Kalle Valo says: ==================== wireless fixes for v6.2 First set of fixes for v6.2. Fix for a link error in mt76, fix for an iwlwifi firmware crash and two cleanups. * tag 'wireless-2022-12-21' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless: wifi: ath9k: use proper statements in conditionals wifi: mt76: mt7996: select CONFIG_RELAY wifi: iwlwifi: fw: skip PPAG for JF wifi: ti: remove obsolete lines in the Makefile ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 609d3bc + b7dc753 commit aa6c396

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

drivers/net/wireless/ath/ath9k/htc.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,9 @@ static inline struct ath9k_htc_tx_ctl *HTC_SKB_CB(struct sk_buff *skb)
327327
}
328328

329329
#ifdef CONFIG_ATH9K_HTC_DEBUGFS
330-
#define __STAT_SAFE(hif_dev, expr) ((hif_dev)->htc_handle->drv_priv ? (expr) : 0)
331-
#define CAB_STAT_INC(priv) ((priv)->debug.tx_stats.cab_queued++)
332-
#define TX_QSTAT_INC(priv, q) ((priv)->debug.tx_stats.queue_stats[q]++)
330+
#define __STAT_SAFE(hif_dev, expr) do { ((hif_dev)->htc_handle->drv_priv ? (expr) : 0); } while (0)
331+
#define CAB_STAT_INC(priv) do { ((priv)->debug.tx_stats.cab_queued++); } while (0)
332+
#define TX_QSTAT_INC(priv, q) do { ((priv)->debug.tx_stats.queue_stats[q]++); } while (0)
333333

334334
#define TX_STAT_INC(hif_dev, c) \
335335
__STAT_SAFE((hif_dev), (hif_dev)->htc_handle->drv_priv->debug.tx_stats.c++)
@@ -378,10 +378,10 @@ void ath9k_htc_get_et_stats(struct ieee80211_hw *hw,
378378
struct ethtool_stats *stats, u64 *data);
379379
#else
380380

381-
#define TX_STAT_INC(hif_dev, c)
382-
#define TX_STAT_ADD(hif_dev, c, a)
383-
#define RX_STAT_INC(hif_dev, c)
384-
#define RX_STAT_ADD(hif_dev, c, a)
381+
#define TX_STAT_INC(hif_dev, c) do { } while (0)
382+
#define TX_STAT_ADD(hif_dev, c, a) do { } while (0)
383+
#define RX_STAT_INC(hif_dev, c) do { } while (0)
384+
#define RX_STAT_ADD(hif_dev, c, a) do { } while (0)
385385

386386
#define CAB_STAT_INC(priv)
387387
#define TX_QSTAT_INC(priv, c)

drivers/net/wireless/intel/iwlwifi/fw/acpi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,11 @@ int iwl_read_ppag_table(struct iwl_fw_runtime *fwrt, union iwl_ppag_table_cmd *c
11061106
int i, j, num_sub_bands;
11071107
s8 *gain;
11081108

1109+
/* many firmware images for JF lie about this */
1110+
if (CSR_HW_RFID_TYPE(fwrt->trans->hw_rf_id) ==
1111+
CSR_HW_RFID_TYPE(CSR_HW_RF_ID_TYPE_JF))
1112+
return -EOPNOTSUPP;
1113+
11091114
if (!fw_has_capa(&fwrt->fw->ucode_capa, IWL_UCODE_TLV_CAPA_SET_PPAG)) {
11101115
IWL_DEBUG_RADIO(fwrt,
11111116
"PPAG capability not supported by FW, command not sent.\n");

drivers/net/wireless/mediatek/mt76/mt7996/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config MT7996E
33
tristate "MediaTek MT7996 (PCIe) support"
44
select MT76_CONNAC_LIB
5+
select RELAY
56
depends on MAC80211
67
depends on PCI
78
help

drivers/net/wireless/ti/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@ obj-$(CONFIG_WLCORE) += wlcore/
33
obj-$(CONFIG_WL12XX) += wl12xx/
44
obj-$(CONFIG_WL1251) += wl1251/
55
obj-$(CONFIG_WL18XX) += wl18xx/
6-
7-
# small builtin driver bit
8-
obj-$(CONFIG_WILINK_PLATFORM_DATA) += wilink_platform_data.o

0 commit comments

Comments
 (0)