Make use of the IEEE80211_IS_CHAN_RADAR macro
[madwifi/.git] / net80211 / ieee80211_scan.c
index 9ed6c158aa634dc571fe905b78cc1b0dd9f1003b..d7ba734f55755b4b093e495d9e53376b711674d1 100644 (file)
@@ -1066,8 +1066,7 @@ ieee80211_scan_dfs_action(struct ieee80211vap *vap,
                /* Search for the first channel with no radar detected */
                int n = 0;
                for (n = 0; n < ic->ic_nchans; n++) {
-                       if (0 == (ic->ic_channels[n].ic_flags &
-                                               IEEE80211_CHAN_RADAR)) {
+                       if (!IEEE80211_IS_CHAN_RADAR(&ic->ic_channels[n])) {
                                new_channel = &ic->ic_channels[n];
                                break;
                        }