aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>2008-12-18 21:37:21 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:06 -0500
commita78fe754e0e5a77ca968ee0c348f027e84659d8b (patch)
tree70df15e438763db92c3b0d0647f437331c9be2e5 /drivers/net/wireless/iwlwifi
parent85d4149533e07e5ca4c94010a52fe5496d998611 (diff)
iwl3945: remove duplicate structures from iwl-3945.h
The patch renames and deletes duplicate structure from iwl-3945.h. The following structures are renamed with iwlwifi counterparts: 1) iwl3945_ac_qos 2) iwl3945_ucode 3) iwl3945_qos_capabity Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h50
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c2
3 files changed, 4 insertions, 50 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index f51393046de3..4f8e6b83fdcc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -275,55 +275,9 @@ struct iwl3945_rx_queue {
275#define IWL_INVALID_RATE 0xFF 275#define IWL_INVALID_RATE 0xFF
276#define IWL_INVALID_VALUE -1 276#define IWL_INVALID_VALUE -1
277 277
278union iwl3945_ht_rate_supp {
279 u16 rates;
280 struct {
281 u8 siso_rate;
282 u8 mimo_rate;
283 };
284};
285
286union iwl3945_qos_capabity {
287 struct {
288 u8 edca_count:4; /* bit 0-3 */
289 u8 q_ack:1; /* bit 4 */
290 u8 queue_request:1; /* bit 5 */
291 u8 txop_request:1; /* bit 6 */
292 u8 reserved:1; /* bit 7 */
293 } q_AP;
294 struct {
295 u8 acvo_APSD:1; /* bit 0 */
296 u8 acvi_APSD:1; /* bit 1 */
297 u8 ac_bk_APSD:1; /* bit 2 */
298 u8 ac_be_APSD:1; /* bit 3 */
299 u8 q_ack:1; /* bit 4 */
300 u8 max_len:2; /* bit 5-6 */
301 u8 more_data_ack:1; /* bit 7 */
302 } q_STA;
303 u8 val;
304};
305
306/* QoS structures */
307struct iwl3945_qos_info {
308 int qos_active;
309 union iwl3945_qos_capabity qos_cap;
310 struct iwl_qosparam_cmd def_qos_parm;
311};
312
313#define STA_PS_STATUS_WAKE 0 278#define STA_PS_STATUS_WAKE 0
314#define STA_PS_STATUS_SLEEP 1 279#define STA_PS_STATUS_SLEEP 1
315 280
316/* uCode file layout */
317struct iwl3945_ucode {
318 __le32 ver; /* major/minor/API/serial */
319 __le32 inst_size; /* bytes of runtime instructions */
320 __le32 data_size; /* bytes of runtime data */
321 __le32 init_size; /* bytes of initialization instructions */
322 __le32 init_data_size; /* bytes of initialization data */
323 __le32 boot_size; /* bytes of bootstrap instructions */
324 u8 data[0]; /* data in same order as "size" elements */
325};
326
327struct iwl3945_ibss_seq { 281struct iwl3945_ibss_seq {
328 u8 mac[ETH_ALEN]; 282 u8 mac[ETH_ALEN];
329 u16 seq_num; 283 u16 seq_num;
@@ -561,7 +515,7 @@ struct iwl3945_priv {
561 515
562 /* uCode images, save to reload in case of failure */ 516 /* uCode images, save to reload in case of failure */
563 u32 ucode_ver; /* ucode version, copy of 517 u32 ucode_ver; /* ucode version, copy of
564 iwl3945_ucode.ver */ 518 iwl_ucode.ver */
565 struct fw_desc ucode_code; /* runtime inst */ 519 struct fw_desc ucode_code; /* runtime inst */
566 struct fw_desc ucode_data; /* runtime data original */ 520 struct fw_desc ucode_data; /* runtime data original */
567 struct fw_desc ucode_data_backup; /* runtime data save/restore */ 521 struct fw_desc ucode_data_backup; /* runtime data save/restore */
@@ -672,7 +626,7 @@ struct iwl3945_priv {
672 u16 assoc_capability; 626 u16 assoc_capability;
673 u8 ps_mode; 627 u8 ps_mode;
674 628
675 struct iwl3945_qos_info qos_data; 629 struct iwl_qos_info qos_data;
676 630
677 struct workqueue_struct *workqueue; 631 struct workqueue_struct *workqueue;
678 632
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 73318a953191..245f1d2fa327 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -429,7 +429,7 @@ struct iwl_hw_key {
429 u8 key[32]; 429 u8 key[32];
430}; 430};
431 431
432union iwl4965_ht_rate_supp { 432union iwl_ht_rate_supp {
433 u16 rates; 433 u16 rates;
434 struct { 434 struct {
435 u8 siso_rate; 435 u8 siso_rate;
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index c597c2422927..313826da45ca 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -5228,7 +5228,7 @@ static void iwl3945_nic_start(struct iwl3945_priv *priv)
5228 */ 5228 */
5229static int iwl3945_read_ucode(struct iwl3945_priv *priv) 5229static int iwl3945_read_ucode(struct iwl3945_priv *priv)
5230{ 5230{
5231 struct iwl3945_ucode *ucode; 5231 struct iwl_ucode *ucode;
5232 int ret = -EINVAL, index; 5232 int ret = -EINVAL, index;
5233 const struct firmware *ucode_raw; 5233 const struct firmware *ucode_raw;
5234 /* firmware file name contains uCode/driver compatibility version */ 5234 /* firmware file name contains uCode/driver compatibility version */