* [PATCH v2] ath9k: fix DFS detector synchronization
@ 2018-02-14 11:14 Timothy Redaelli
2018-03-29 8:49 ` [v2] " Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Timothy Redaelli @ 2018-02-14 11:14 UTC (permalink / raw)
To: linux-wireless
Cc: QCA ath9k Development, Kalle Valo, Felix Fietkau, Zefir Kurtisi
some userspace programs (e.g. hostapd) need to set the regulatory domain
before selecting the operating channel. Synchronize DFS detector regardless of
the value of ah->curchan, to avoid situations where wireless scan can't be done
on some 5GHz sub-bands, because dfs_region is constantly UNSET.
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
---
drivers/net/wireless/ath/ath9k/init.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index e479fae5aab9..b71b16715f6a 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -257,6 +257,11 @@ static void ath9k_reg_notifier(struct wiphy *wiphy,
ath_reg_notifier_apply(wiphy, request, reg);
+ /* synchronize DFS detector if regulatory domain changed */
+ if (sc->dfs_detector != NULL)
+ sc->dfs_detector->set_dfs_domain(sc->dfs_detector,
+ request->dfs_region);
+
/* Set tx power */
if (!ah->curchan)
return;
@@ -267,10 +272,6 @@ static void ath9k_reg_notifier(struct wiphy *wiphy,
ath9k_cmn_update_txpow(ah, sc->cur_chan->cur_txpower,
sc->cur_chan->txpower,
&sc->cur_chan->cur_txpower);
- /* synchronize DFS detector if regulatory domain changed */
- if (sc->dfs_detector != NULL)
- sc->dfs_detector->set_dfs_domain(sc->dfs_detector,
- request->dfs_region);
ath9k_ps_restore(sc);
}
--
2.14.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [v2] ath9k: fix DFS detector synchronization
2018-02-14 11:14 [PATCH v2] ath9k: fix DFS detector synchronization Timothy Redaelli
@ 2018-03-29 8:49 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2018-03-29 8:49 UTC (permalink / raw)
To: Timothy Redaelli
Cc: linux-wireless, QCA ath9k Development, Felix Fietkau, Zefir Kurtisi
Timothy Redaelli <tredaelli@redhat.com> wrote:
> some userspace programs (e.g. hostapd) need to set the regulatory domain
> before selecting the operating channel. Synchronize DFS detector regardless of
> the value of ah->curchan, to avoid situations where wireless scan can't be done
> on some 5GHz sub-bands, because dfs_region is constantly UNSET.
>
> Acked-by: Felix Fietkau <nbd@nbd.name>
> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Patch applied to ath-next branch of ath.git, thanks.
4415d58c47e5 ath9k: fix DFS detector synchronization
--
https://patchwork.kernel.org/patch/10218409/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-29 8:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-14 11:14 [PATCH v2] ath9k: fix DFS detector synchronization Timothy Redaelli
2018-03-29 8:49 ` [v2] " 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.