Make use of the IEEE80211_IS_CHAN_RADAR macro
[madwifi/.git] / net80211 / ieee80211_wireless.c
index 12cabf8634892c47270093c6719c76a5aea2513d..eb19f66b7a33f0d33cffeb1fb94bef3c3adef022 100644 (file)
@@ -730,7 +730,7 @@ ieee80211_ioctl_siwfreq(struct net_device *dev, struct iw_request_info *info,
                        return 0;                       /* no change, return */
 
                /* Don't allow to change to channel with radar found */
-               if (c->ic_flags & IEEE80211_CHAN_RADAR)
+               if (IEEE80211_IS_CHAN_RADAR(c))
                        return -EINVAL;
 
                /*