diff mbox

[RFC] mac80211: Wait with enabling beacons on DFS channels

Message ID 15461044.40.1294756856032.JavaMail.wlan@CHBU500181 (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Wojciech Dubowik Jan. 11, 2011, 2:40 p.m. UTC
None
diff mbox

Patch

--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c 
@@ -285,8 +285,14 @@ 
 	ath9k_hw_set_interrupts(ah, ah->imask);
 
 	if (!(sc->sc_flags & (SC_OP_OFFCHANNEL))) {
-		if (sc->sc_flags & SC_OP_BEACONS)
-			ath_beacon_config(sc, NULL);
+
+		if (sc->sc_flags & SC_OP_BEACONS) {
+			if (channel->flags & IEEE80211_CHAN_RADAR 
+                            && !(channel->flags & IEEE80211_CHAN_NOL_FREE))
+				ieee80211_queue_delayed_work
+                                      (sc->hw, &sc->dfs_wait_cac_work, 0);
+			else
+				ath_beacon_config(sc, NULL);
+		}
+
 		ieee80211_queue_delayed_work(sc->hw, &sc->tx_complete_work, 0);
 		ath_start_ani(common);
 	}