+
+#define WL_OPMODE_AP "ap"
+#define WL_OPMODE_WDS "wds"
+#define WL_PREAMBLE_LONG "long"
+#define WL_PREAMBLE_SHORT "short"
+
+// TR69 overrides
+#define WL_TR69_BEACONTYPE_NONE 0
+#define WL_TR69_BEACONTYPE_BASIC 1
+#define WL_TR69_BEACONTYPE_WPA 2
+#define WL_TR69_BEACONTYPE_11I 3
+#define WL_TR69_BEACONTYPE_BASIC_AND_WPA 4
+#define WL_TR69_BEACONTYPE_BASIC_AND_11I 5
+#define WL_TR69_BEACONTYPE_WPA_AND_11I 6
+#define WL_TR69_BEACONTYPE_BASIC_AND_WPA_AND_11I 7
+
+#define WL_TR69_BASIC_ENCRYPTIONMODE_NONE 0
+#define WL_TR69_BASIC_ENCRYPTIONMODE_WEP 1
+
+#define WL_TR69_BASIC_AUTHENTICATION_NONE 0
+#define WL_TR69_BASIC_AUTHENTICATION_EAP 1
+
+#define WL_TR69_WPA_ENCRYPTION_MODES_WEP 0
+#define WL_TR69_WPA_ENCRYPTION_MODES_TKIP 1
+#define WL_TR69_WPA_ENCRYPTION_MODES_WEP_AND_TKIP 2
+#define WL_TR69_WPA_ENCRYPTION_MODES_AES 3
+#define WL_TR69_WPA_ENCRYPTION_MODES_WEP_AND_AES 4
+#define WL_TR69_WPA_ENCRYPTION_MODES_TKIP_AND_AES 5
+#define WL_TR69_WPA_ENCRYPTION_MODES_WEP_AND_TKIP_AES 6
+
+#define WL_TR69_WPA_AUTHENTICATION_MODE_PSK 0
+#define WL_TR69_WPA_AUTHENTICATION_MODE_EAP 1
+
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_WEP 0
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_TKIP 1
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_WEP_AND_TKIP 2
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_AES 3
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_WEP_AND_AES 4
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_TKIP_AND_AES 5
+#define WL_TR69_IEEE11I_ENCRYPTION_MODES_WEP_AND_TKIP_AES 6
+
+#define WL_TR69_IEEE11I_AUTHENTICATION_MODE_PSK 0
+#define WL_TR69_IEEE11I_AUTHENTICATION_MODE_EAP 1
+
+/* mimo */
+#define WL_CTL_SB_LOWER -1
+#define WL_CTL_SB_NONE 0
+#define WL_CTL_SB_UPPER 1
+/* defines used by the nrate iovar */
+#define NRATE_STF_MASK 0x0000ff00 /* stf mode mask: siso, cdd, stbc, sdm */
+#define NRATE_STF_SHIFT 8 /* stf mode shift */
+#define NRATE_MCS_INUSE 0x00000080 /* MSC in use,indicates b0-6 holds an mcs */
+#define NRATE_RATE_MASK 0x0000007f /* rate/mcs value */
+/* notify the average dma xfer rate (in kbps) to the driver */
+#define AVG_DMA_XFER_RATE 100000
+
+/* A chanspec holds the channel number, band, bandwidth and control sideband */
+typedef int chanspec_t;
+#define WL_CHANSPEC_CHAN_MASK 0x00ff
+
+#define WL_CHANSPEC_CTL_SB_MASK 0x0300
+#define WL_CHANSPEC_CTL_SB_SHIFT 8
+#define WL_CHANSPEC_CTL_SB_LOWER 0x0100
+#define WL_CHANSPEC_CTL_SB_UPPER 0x0200
+#define WL_CHANSPEC_CTL_SB_NONE 0x0300
+
+#define WL_CHANSPEC_BW_MASK 0x0C00
+#define WL_CHANSPEC_BW_SHIFT 10
+#define WL_CHANSPEC_BW_10 0x0400
+#define WL_CHANSPEC_BW_20 0x0800
+#define WL_CHANSPEC_BW_40 0x0C00
+
+#define WL_CHANSPEC_BAND_MASK 0xf000
+#define WL_CHANSPEC_BAND_SHIFT 12
+#define WL_CHANSPEC_BAND_5G 0x1000
+#define WL_CHANSPEC_BAND_2G 0x2000
+#define INVCHANSPEC 255
+