Turn off Interference Mitigation/Ambient Noise Imunity when the HAL is not in Station...
[madwifi/.git] / ath / if_athvar.h
index a54846137f6c4c969d50d24778698400f742b1f7..17392972e2d93e6bfa1d41e4b05c089a678d4ce9 100644 (file)
@@ -104,9 +104,13 @@ typedef void irqreturn_t;
 #endif /* !defined(IRQ_NONE) */
 
 #ifndef SET_MODULE_OWNER
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
 #define        SET_MODULE_OWNER(dev) do {              \
        dev->owner = THIS_MODULE;               \
 } while (0)
+#else
+#define SET_MODULE_OWNER(dev) do { } while (0)
+#endif
 #endif
 
 #ifndef SET_NETDEV_DEV
@@ -578,8 +582,9 @@ struct ath_softc {
                        sc_hasclrkey:1,         /* CLR key supported */
                        sc_devstopped:1,        /* stopped due to of no tx bufs */
                        sc_stagbeacons:1,       /* use staggered beacons */
-                       sc_dfswait:1,           /* waiting on channel for radar detect */
-                       sc_ackrate:1;           /* send acks at high bitrate */
+                       sc_dfswait:1,           /* waiting on channel for radar detect */
+                       sc_ackrate:1,           /* send acks at high bitrate */
+                       sc_hasintmit:1;         /* Interference mitigation */
        /* rate tables */
        const HAL_RATE_TABLE *sc_rates[IEEE80211_MODE_MAX];
        const HAL_RATE_TABLE *sc_currates;      /* current rate table */