From: Zefir Kurtisi <zefir.kurt...@neratec.com>

Signed-off-by: Zefir Kurtisi <zefir.kurt...@neratec.com>
---
 drivers/net/wireless/ath/ath9k/init.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/init.c 
b/drivers/net/wireless/ath/ath9k/init.c
index f9130f7..6c4153c 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -298,6 +298,7 @@ static int ath9k_reg_notifier(struct wiphy *wiphy,
        struct ath_softc *sc = hw->priv;
        struct ath_hw *ah = sc->sc_ah;
        struct ath_regulatory *reg = ath9k_hw_regulatory(ah);
+       struct dfs_pattern_detector *dfs_detector = sc->dfs_detector;
        int ret;
 
        ret = ath_reg_notifier_apply(wiphy, request, reg);
@@ -311,6 +312,9 @@ static int ath9k_reg_notifier(struct wiphy *wiphy,
                ath9k_ps_restore(sc);
        }
 
+       if (dfs_detector != NULL)
+               dfs_detector->set_domain(dfs_detector, request->dfs_region);
+
        return ret;
 }
 
-- 
1.7.4.1

_______________________________________________
ath9k-devel mailing list
ath9k-devel@lists.ath9k.org
https://lists.ath9k.org/mailman/listinfo/ath9k-devel

Reply via email to