* [PATCH] ath11k: Avoid frequency offset based sanity check in radar detection event
@ 2019-05-27 13:14 Sriram R
2019-05-29 15:08 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Sriram R @ 2019-05-27 13:14 UTC (permalink / raw)
To: ath11k; +Cc: Sriram R
Currently the detected radar is indicated to mac80211 only when the active
rx channel is indicated in the event through channel frequency and offset.
But in case there is a minor difference in this offset provided,say +/- 1,
the event will rejected.
Hence avoid having these checks to indicate radar to mac80211. Basically the
event from firmware is highly reliable and such sanity checks are not
necessary.
Signed-off-by: Sriram R <srirrama@codeaurora.org>
---
drivers/net/wireless/ath/ath11k/wmi.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c
index 4f2ac21..90d9560 100644
--- a/drivers/net/wireless/ath/ath11k/wmi.c
+++ b/drivers/net/wireless/ath/ath11k/wmi.c
@@ -5809,12 +5809,6 @@ ath11k_wmi_pdev_dfs_radar_detected_event(struct ath11k_base *ab,
goto exit;
}
- if (ar->rx_channel && ar->rx_channel->center_freq != (ev->chan_freq
- - ev->freq_offset)) {
- ath11k_warn(ab, "Radar detected in non-operating channel");
- goto exit;
- }
-
ath11k_dbg(ar->ab, ATH11K_DBG_REG, "DFS Radar Detected in pdev %d\n",
ev->pdev_id);
@@ -5826,6 +5820,7 @@ ath11k_wmi_pdev_dfs_radar_detected_event(struct ath11k_base *ab,
exit:
kfree(tb);
}
+
static void ath11k_wmi_tlv_op_rx(struct ath11k_base *ab, struct sk_buff *skb)
{
struct wmi_cmd_hdr *cmd_hdr;
--
2.7.4
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ath11k: Avoid frequency offset based sanity check in radar detection event
2019-05-27 13:14 [PATCH] ath11k: Avoid frequency offset based sanity check in radar detection event Sriram R
@ 2019-05-29 15:08 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-05-29 15:08 UTC (permalink / raw)
To: Sriram R; +Cc: ath11k
Sriram R <srirrama@codeaurora.org> wrote:
> Currently the detected radar is indicated to mac80211 only when the active
> rx channel is indicated in the event through channel frequency and offset.
> But in case there is a minor difference in this offset provided,say +/- 1,
> the event will rejected.
>
> Hence avoid having these checks to indicate radar to mac80211. Basically the
> event from firmware is highly reliable and such sanity checks are not
> necessary.
>
> Signed-off-by: Sriram R <srirrama@codeaurora.org>
Patch applied to ath.git, thanks.
48177eb4fb0e ath11k: Avoid frequency offset based sanity check in radar detection event
--
https://patchwork.kernel.org/patch/10963033/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-29 15:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-27 13:14 [PATCH] ath11k: Avoid frequency offset based sanity check in radar detection event Sriram R
2019-05-29 15:08 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.