mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 00:42:56 -04:00
wifi: ath12k: rename CAC_RUNNING flag
Rename the flag ATH12K_CAC_RUNNING to ATH12K_FLAG_CAC_RUNNING to correct the naming inconsistency in the enum ath12k_dev_flags. No functionality changes. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com> Acked-by: Kalle Valo <kvalo@kernel.org> Link: https://patch.msgid.link/20241218-ath12k_mlo_dfs-v1-1-058e783bcfc7@quicinc.com Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
committed by
Jeff Johnson
parent
578f6fc55c
commit
d31241cbd9
@@ -223,7 +223,7 @@ enum ath12k_hw_group_flags {
|
||||
};
|
||||
|
||||
enum ath12k_dev_flags {
|
||||
ATH12K_CAC_RUNNING,
|
||||
ATH12K_FLAG_CAC_RUNNING,
|
||||
ATH12K_FLAG_CRASH_FLUSH,
|
||||
ATH12K_FLAG_RAW_MODE,
|
||||
ATH12K_FLAG_HW_CRYPTO_DISABLED,
|
||||
|
||||
@@ -2632,7 +2632,7 @@ static void ath12k_dp_rx_process_received_packets(struct ath12k_base *ab,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (test_bit(ATH12K_CAC_RUNNING, &ar->dev_flags)) {
|
||||
if (test_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags)) {
|
||||
dev_kfree_skb_any(msdu);
|
||||
continue;
|
||||
}
|
||||
@@ -3484,7 +3484,7 @@ ath12k_dp_process_rx_err_buf(struct ath12k *ar, struct hal_reo_dest_ring *desc,
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (test_bit(ATH12K_CAC_RUNNING, &ar->dev_flags)) {
|
||||
if (test_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags)) {
|
||||
dev_kfree_skb_any(msdu);
|
||||
goto exit;
|
||||
}
|
||||
@@ -4037,7 +4037,7 @@ int ath12k_dp_rx_process_wbm_err(struct ath12k_base *ab,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (test_bit(ATH12K_CAC_RUNNING, &ar->dev_flags)) {
|
||||
if (test_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags)) {
|
||||
dev_kfree_skb_any(msdu);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -1323,8 +1323,8 @@ int ath12k_mac_vdev_stop(struct ath12k_link_vif *arvif)
|
||||
ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "vdev %pM stopped, vdev_id %d\n",
|
||||
ahvif->vif->addr, arvif->vdev_id);
|
||||
|
||||
if (test_bit(ATH12K_CAC_RUNNING, &ar->dev_flags)) {
|
||||
clear_bit(ATH12K_CAC_RUNNING, &ar->dev_flags);
|
||||
if (test_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags)) {
|
||||
clear_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags);
|
||||
ath12k_dbg(ar->ab, ATH12K_DBG_MAC, "CAC Stopped for vdev %d\n",
|
||||
arvif->vdev_id);
|
||||
}
|
||||
@@ -7475,7 +7475,7 @@ static void ath12k_mac_stop(struct ath12k *ar)
|
||||
ath12k_err(ar->ab, "failed to clear rx_filter for monitor status ring: (%d)\n",
|
||||
ret);
|
||||
|
||||
clear_bit(ATH12K_CAC_RUNNING, &ar->dev_flags);
|
||||
clear_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags);
|
||||
|
||||
cancel_delayed_work_sync(&ar->scan.timeout);
|
||||
wiphy_work_cancel(ath12k_ar_to_hw(ar)->wiphy, &ar->scan.vdev_clean_wk);
|
||||
@@ -8794,7 +8794,7 @@ ath12k_mac_vdev_start_restart(struct ath12k_link_vif *arvif,
|
||||
if (arvif->ahvif->vdev_type == WMI_VDEV_TYPE_AP &&
|
||||
chandef->chan->dfs_cac_ms &&
|
||||
chandef->chan->dfs_state == NL80211_DFS_USABLE) {
|
||||
set_bit(ATH12K_CAC_RUNNING, &ar->dev_flags);
|
||||
set_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags);
|
||||
ath12k_dbg(ab, ATH12K_DBG_MAC,
|
||||
"CAC Started in chan_freq %d for vdev %d\n",
|
||||
arg.freq, arg.vdev_id);
|
||||
|
||||
@@ -6212,7 +6212,7 @@ static void ath12k_mgmt_rx_event(struct ath12k_base *ab, struct sk_buff *skb)
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if ((test_bit(ATH12K_CAC_RUNNING, &ar->dev_flags)) ||
|
||||
if ((test_bit(ATH12K_FLAG_CAC_RUNNING, &ar->dev_flags)) ||
|
||||
(rx_ev.status & (WMI_RX_STATUS_ERR_DECRYPT |
|
||||
WMI_RX_STATUS_ERR_KEY_CACHE_MISS |
|
||||
WMI_RX_STATUS_ERR_CRC))) {
|
||||
|
||||
Reference in New Issue
Block a user