summaryrefslogtreecommitdiffstats
path: root/sys/dev/iwi/if_iwireg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/iwi/if_iwireg.h')
-rw-r--r--sys/dev/iwi/if_iwireg.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/iwi/if_iwireg.h b/sys/dev/iwi/if_iwireg.h
index daba524..f86e2b5 100644
--- a/sys/dev/iwi/if_iwireg.h
+++ b/sys/dev/iwi/if_iwireg.h
@@ -223,6 +223,8 @@ struct iwi_tx_desc {
#define IWI_DATA_FLAG_NEED_ACK 0x80
uint8_t xflags;
+#define IWI_DATA_XFLAG_QOS 0x10
+
uint8_t wep_txkey;
uint8_t wepkey[IEEE80211_KEYBUF_SIZE];
uint8_t rate;
@@ -254,11 +256,13 @@ struct iwi_cmd_desc {
#define IWI_CMD_ASSOCIATE 21
#define IWI_CMD_SET_RATES 22
#define IWI_CMD_ABORT_SCAN 23
+#define IWI_CMD_SET_WME_PARAMS 25
#define IWI_CMD_SET_OPTIE 31
#define IWI_CMD_DISABLE 33
#define IWI_CMD_SET_IV 34
#define IWI_CMD_SET_TX_POWER 35
#define IWI_CMD_SET_SENSITIVITY 42
+#define IWI_CMD_SET_WMEIE 84
uint8_t len;
uint16_t reserved;
@@ -308,7 +312,8 @@ struct iwi_associate {
uint8_t type;
uint8_t reserved1;
uint16_t policy;
-#define IWI_POLICY_OPTIE 2
+#define IWI_POLICY_WME 1
+#define IWI_POLICY_WPA 2
uint8_t plen;
uint8_t mode;
@@ -371,6 +376,15 @@ struct iwi_wep_key {
uint8_t key[IEEE80211_KEYBUF_SIZE];
} __packed;
+/* structure for command IWI_CMD_SET_WME_PARAMS */
+struct iwi_wme_params {
+ uint16_t logcwmin[WME_NUM_AC];
+ uint16_t logcwmax[WME_NUM_AC];
+ uint8_t aifsn[WME_NUM_AC];
+ uint8_t acm[WME_NUM_AC];
+ uint16_t txopLimit[WME_NUM_AC];
+} __packed;
+
#define IWI_MEM_EEPROM_CTL 0x00300040
#define IWI_EEPROM_MAC 0x21
OpenPOWER on IntegriCloud