diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-11-30 12:41:22 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-08 18:54:07 -0500 |
commit | 7f62cd17e0ed90f8a1e9fbbb6480fa48ebc4c0a6 (patch) | |
tree | e8aa3033a9e5bcd70566565b1e9ca89cb4f3542f | |
parent | d332f591daca5f5301782bad69f94e160b5fa665 (diff) |
iwlwifi: minor cleanup
Remove the defines only used by legacy devices
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-sta.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 58 |
2 files changed, 15 insertions, 47 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-sta.c b/drivers/net/wireless/iwlwifi/iwl-agn-sta.c index 626ed701100e..63d948d21c04 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-sta.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-sta.c | |||
@@ -135,8 +135,8 @@ static u16 iwlagn_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data) | |||
135 | u16 size = (u16)sizeof(struct iwl_addsta_cmd); | 135 | u16 size = (u16)sizeof(struct iwl_addsta_cmd); |
136 | struct iwl_addsta_cmd *addsta = (struct iwl_addsta_cmd *)data; | 136 | struct iwl_addsta_cmd *addsta = (struct iwl_addsta_cmd *)data; |
137 | memcpy(addsta, cmd, size); | 137 | memcpy(addsta, cmd, size); |
138 | /* resrved in 5000 */ | 138 | /* resrved in agn */ |
139 | addsta->rate_n_flags = cpu_to_le16(0); | 139 | addsta->legacy_reserved = cpu_to_le16(0); |
140 | return size; | 140 | return size; |
141 | } | 141 | } |
142 | 142 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index d98d09cc5df7..87bfdf6bdf6a 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -109,10 +109,10 @@ enum { | |||
109 | /* RX, TX, LEDs */ | 109 | /* RX, TX, LEDs */ |
110 | REPLY_TX = 0x1c, | 110 | REPLY_TX = 0x1c, |
111 | REPLY_LEDS_CMD = 0x48, | 111 | REPLY_LEDS_CMD = 0x48, |
112 | REPLY_TX_LINK_QUALITY_CMD = 0x4e, /* for 4965 and up */ | 112 | REPLY_TX_LINK_QUALITY_CMD = 0x4e, |
113 | 113 | ||
114 | /* WiMAX coexistence */ | 114 | /* WiMAX coexistence */ |
115 | COEX_PRIORITY_TABLE_CMD = 0x5a, /* for 5000 series and up */ | 115 | COEX_PRIORITY_TABLE_CMD = 0x5a, |
116 | COEX_MEDIUM_NOTIFICATION = 0x5b, | 116 | COEX_MEDIUM_NOTIFICATION = 0x5b, |
117 | COEX_EVENT_CMD = 0x5c, | 117 | COEX_EVENT_CMD = 0x5c, |
118 | 118 | ||
@@ -935,8 +935,7 @@ struct iwl_addsta_cmd { | |||
935 | * corresponding to bit (e.g. bit 5 controls TID 5). | 935 | * corresponding to bit (e.g. bit 5 controls TID 5). |
936 | * Set modify_mask bit STA_MODIFY_TID_DISABLE_TX to use this field. */ | 936 | * Set modify_mask bit STA_MODIFY_TID_DISABLE_TX to use this field. */ |
937 | __le16 tid_disable_tx; | 937 | __le16 tid_disable_tx; |
938 | 938 | __le16 legacy_reserved; | |
939 | __le16 rate_n_flags; /* 3945 only */ | ||
940 | 939 | ||
941 | /* TID for which to add block-ack support. | 940 | /* TID for which to add block-ack support. |
942 | * Set modify_mask bit STA_MODIFY_ADDBA_TID_MSK to use this field. */ | 941 | * Set modify_mask bit STA_MODIFY_ADDBA_TID_MSK to use this field. */ |
@@ -1166,8 +1165,7 @@ struct iwl_rx_mpdu_res_start { | |||
1166 | * | 1165 | * |
1167 | * uCode handles retrying Tx when an ACK is expected but not received. | 1166 | * uCode handles retrying Tx when an ACK is expected but not received. |
1168 | * This includes trying lower data rates than the one requested in the Tx | 1167 | * This includes trying lower data rates than the one requested in the Tx |
1169 | * command, as set up by the REPLY_RATE_SCALE (for 3945) or | 1168 | * command, as set up by the REPLY_TX_LINK_QUALITY_CMD (agn). |
1170 | * REPLY_TX_LINK_QUALITY_CMD (agn). | ||
1171 | * | 1169 | * |
1172 | * Driver sets up transmit power for various rates via REPLY_TX_PWR_TABLE_CMD. | 1170 | * Driver sets up transmit power for various rates via REPLY_TX_PWR_TABLE_CMD. |
1173 | * This command must be executed after every RXON command, before Tx can occur. | 1171 | * This command must be executed after every RXON command, before Tx can occur. |
@@ -1179,25 +1177,9 @@ struct iwl_rx_mpdu_res_start { | |||
1179 | * 1: Use RTS/CTS protocol or CTS-to-self if spec allows it | 1177 | * 1: Use RTS/CTS protocol or CTS-to-self if spec allows it |
1180 | * before this frame. if CTS-to-self required check | 1178 | * before this frame. if CTS-to-self required check |
1181 | * RXON_FLG_SELF_CTS_EN status. | 1179 | * RXON_FLG_SELF_CTS_EN status. |
1182 | * unused in 3945/4965, used in 5000 series and after | ||
1183 | */ | 1180 | */ |
1184 | #define TX_CMD_FLG_PROT_REQUIRE_MSK cpu_to_le32(1 << 0) | 1181 | #define TX_CMD_FLG_PROT_REQUIRE_MSK cpu_to_le32(1 << 0) |
1185 | 1182 | ||
1186 | /* | ||
1187 | * 1: Use Request-To-Send protocol before this frame. | ||
1188 | * Mutually exclusive vs. TX_CMD_FLG_CTS_MSK. | ||
1189 | * used in 3945/4965, unused in 5000 series and after | ||
1190 | */ | ||
1191 | #define TX_CMD_FLG_RTS_MSK cpu_to_le32(1 << 1) | ||
1192 | |||
1193 | /* | ||
1194 | * 1: Transmit Clear-To-Send to self before this frame. | ||
1195 | * Driver should set this for AUTH/DEAUTH/ASSOC-REQ/REASSOC mgmnt frames. | ||
1196 | * Mutually exclusive vs. TX_CMD_FLG_RTS_MSK. | ||
1197 | * used in 3945/4965, unused in 5000 series and after | ||
1198 | */ | ||
1199 | #define TX_CMD_FLG_CTS_MSK cpu_to_le32(1 << 2) | ||
1200 | |||
1201 | /* 1: Expect ACK from receiving station | 1183 | /* 1: Expect ACK from receiving station |
1202 | * 0: Don't expect ACK (MAC header's duration field s/b 0) | 1184 | * 0: Don't expect ACK (MAC header's duration field s/b 0) |
1203 | * Set this for unicast frames, but not broadcast/multicast. */ | 1185 | * Set this for unicast frames, but not broadcast/multicast. */ |
@@ -1215,18 +1197,8 @@ struct iwl_rx_mpdu_res_start { | |||
1215 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ | 1197 | * Set when Txing a block-ack request frame. Also set TX_CMD_FLG_ACK_MSK. */ |
1216 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) | 1198 | #define TX_CMD_FLG_IMM_BA_RSP_MASK cpu_to_le32(1 << 6) |
1217 | 1199 | ||
1218 | /* | 1200 | /* Tx antenna selection field; reserved (0) for agn devices. */ |
1219 | * 1: Frame requires full Tx-Op protection. | ||
1220 | * Set this if either RTS or CTS Tx Flag gets set. | ||
1221 | * used in 3945/4965, unused in 5000 series and after | ||
1222 | */ | ||
1223 | #define TX_CMD_FLG_FULL_TXOP_PROT_MSK cpu_to_le32(1 << 7) | ||
1224 | |||
1225 | /* Tx antenna selection field; used only for 3945, reserved (0) for agn devices. | ||
1226 | * Set field to "0" to allow 3945 uCode to select antenna (normal usage). */ | ||
1227 | #define TX_CMD_FLG_ANT_SEL_MSK cpu_to_le32(0xf00) | 1201 | #define TX_CMD_FLG_ANT_SEL_MSK cpu_to_le32(0xf00) |
1228 | #define TX_CMD_FLG_ANT_A_MSK cpu_to_le32(1 << 8) | ||
1229 | #define TX_CMD_FLG_ANT_B_MSK cpu_to_le32(1 << 9) | ||
1230 | 1202 | ||
1231 | /* 1: Ignore Bluetooth priority for this frame. | 1203 | /* 1: Ignore Bluetooth priority for this frame. |
1232 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ | 1204 | * 0: Delay Tx until Bluetooth device is done (normal usage). */ |
@@ -1572,7 +1544,6 @@ struct iwl_compressed_ba_resp { | |||
1572 | __le64 bitmap; | 1544 | __le64 bitmap; |
1573 | __le16 scd_flow; | 1545 | __le16 scd_flow; |
1574 | __le16 scd_ssn; | 1546 | __le16 scd_ssn; |
1575 | /* following only for 5000 series and up */ | ||
1576 | u8 txed; /* number of frames sent */ | 1547 | u8 txed; /* number of frames sent */ |
1577 | u8 txed_2_done; /* number of frames acked */ | 1548 | u8 txed_2_done; /* number of frames acked */ |
1578 | } __packed; | 1549 | } __packed; |
@@ -1674,7 +1645,7 @@ struct iwl_link_qual_agg_params { | |||
1674 | /* | 1645 | /* |
1675 | * REPLY_TX_LINK_QUALITY_CMD = 0x4e (command, has simple generic response) | 1646 | * REPLY_TX_LINK_QUALITY_CMD = 0x4e (command, has simple generic response) |
1676 | * | 1647 | * |
1677 | * For agn devices only; 3945 uses REPLY_RATE_SCALE. | 1648 | * For agn devices |
1678 | * | 1649 | * |
1679 | * Each station in the agn device's internal station table has its own table | 1650 | * Each station in the agn device's internal station table has its own table |
1680 | * of 16 | 1651 | * of 16 |
@@ -1923,7 +1894,7 @@ struct iwl_link_quality_cmd { | |||
1923 | /* | 1894 | /* |
1924 | * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) | 1895 | * REPLY_BT_CONFIG = 0x9b (command, has simple generic response) |
1925 | * | 1896 | * |
1926 | * 3945 and agn devices support hardware handshake with Bluetooth device on | 1897 | * agn devices support hardware handshake with Bluetooth device on |
1927 | * same platform. Bluetooth device alerts wireless device when it will Tx; | 1898 | * same platform. Bluetooth device alerts wireless device when it will Tx; |
1928 | * wireless device can delay or kill its own Tx to accommodate. | 1899 | * wireless device can delay or kill its own Tx to accommodate. |
1929 | */ | 1900 | */ |
@@ -2207,8 +2178,8 @@ struct iwl_spectrum_notification { | |||
2207 | 2178 | ||
2208 | struct iwl_powertable_cmd { | 2179 | struct iwl_powertable_cmd { |
2209 | __le16 flags; | 2180 | __le16 flags; |
2210 | u8 keep_alive_seconds; /* 3945 reserved */ | 2181 | u8 keep_alive_seconds; |
2211 | u8 debug_flags; /* 3945 reserved */ | 2182 | u8 debug_flags; |
2212 | __le32 rx_data_timeout; | 2183 | __le32 rx_data_timeout; |
2213 | __le32 tx_data_timeout; | 2184 | __le32 tx_data_timeout; |
2214 | __le32 sleep_interval[IWL_POWER_VEC_SIZE]; | 2185 | __le32 sleep_interval[IWL_POWER_VEC_SIZE]; |
@@ -2329,9 +2300,9 @@ struct iwl_scan_channel { | |||
2329 | /** | 2300 | /** |
2330 | * struct iwl_ssid_ie - directed scan network information element | 2301 | * struct iwl_ssid_ie - directed scan network information element |
2331 | * | 2302 | * |
2332 | * Up to 20 of these may appear in REPLY_SCAN_CMD (Note: Only 4 are in | 2303 | * Up to 20 of these may appear in REPLY_SCAN_CMD, |
2333 | * 3945 SCAN api), selected by "type" bit field in struct iwl_scan_channel; | 2304 | * selected by "type" bit field in struct iwl_scan_channel; |
2334 | * each channel may select different ssids from among the 20 (4) entries. | 2305 | * each channel may select different ssids from among the 20 entries. |
2335 | * SSID IEs get transmitted in reverse order of entry. | 2306 | * SSID IEs get transmitted in reverse order of entry. |
2336 | */ | 2307 | */ |
2337 | struct iwl_ssid_ie { | 2308 | struct iwl_ssid_ie { |
@@ -2340,7 +2311,6 @@ struct iwl_ssid_ie { | |||
2340 | u8 ssid[32]; | 2311 | u8 ssid[32]; |
2341 | } __packed; | 2312 | } __packed; |
2342 | 2313 | ||
2343 | #define PROBE_OPTION_MAX_3945 4 | ||
2344 | #define PROBE_OPTION_MAX 20 | 2314 | #define PROBE_OPTION_MAX 20 |
2345 | #define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF) | 2315 | #define TX_CMD_LIFE_TIME_INFINITE cpu_to_le32(0xFFFFFFFF) |
2346 | #define IWL_GOOD_CRC_TH_DISABLED 0 | 2316 | #define IWL_GOOD_CRC_TH_DISABLED 0 |
@@ -2421,8 +2391,6 @@ struct iwl_scan_cmd { | |||
2421 | * channel */ | 2391 | * channel */ |
2422 | __le32 suspend_time; /* pause scan this long (in "extended beacon | 2392 | __le32 suspend_time; /* pause scan this long (in "extended beacon |
2423 | * format") when returning to service chnl: | 2393 | * format") when returning to service chnl: |
2424 | * 3945; 31:24 # beacons, 19:0 additional usec, | ||
2425 | * 4965; 31:22 # beacons, 21:0 additional usec. | ||
2426 | */ | 2394 | */ |
2427 | __le32 flags; /* RXON_FLG_* */ | 2395 | __le32 flags; /* RXON_FLG_* */ |
2428 | __le32 filter_flags; /* RXON_FILTER_* */ | 2396 | __le32 filter_flags; /* RXON_FILTER_* */ |
@@ -2738,7 +2706,7 @@ struct statistics_div { | |||
2738 | 2706 | ||
2739 | struct statistics_general_common { | 2707 | struct statistics_general_common { |
2740 | __le32 temperature; /* radio temperature */ | 2708 | __le32 temperature; /* radio temperature */ |
2741 | __le32 temperature_m; /* for 5000 and up, this is radio voltage */ | 2709 | __le32 temperature_m; /* radio voltage */ |
2742 | struct statistics_dbg dbg; | 2710 | struct statistics_dbg dbg; |
2743 | __le32 sleep_time; | 2711 | __le32 sleep_time; |
2744 | __le32 slots_out; | 2712 | __le32 slots_out; |