aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/iwl-sta.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-08-30 09:26:35 -0400
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 07:12:21 -0500
commit4d69c7521a90cba945b4720672b4511b1e541189 (patch)
tree4ea1c32726e8d97e30d40ab5aa474f18e1e63082 /drivers/net/wireless/iwlegacy/iwl-sta.c
parentdb7746f78cab25ee39dd20f61d9b2e6b5993d8fa (diff)
iwlegacy: rename REPLY_ to N_ or C_
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-sta.c')
-rw-r--r--drivers/net/wireless/iwlegacy/iwl-sta.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-sta.c b/drivers/net/wireless/iwlegacy/iwl-sta.c
index ffb966bf836d..58762e795f36 100644
--- a/drivers/net/wireless/iwlegacy/iwl-sta.c
+++ b/drivers/net/wireless/iwlegacy/iwl-sta.c
@@ -67,7 +67,7 @@ static int il_process_add_sta_resp(struct il_priv *il,
67 int ret = -EIO; 67 int ret = -EIO;
68 68
69 if (pkt->hdr.flags & IL_CMD_FAILED_MSK) { 69 if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
70 IL_ERR("Bad return from REPLY_ADD_STA (0x%08X)\n", 70 IL_ERR("Bad return from C_ADD_STA (0x%08X)\n",
71 pkt->hdr.flags); 71 pkt->hdr.flags);
72 return ret; 72 return ret;
73 } 73 }
@@ -79,7 +79,7 @@ static int il_process_add_sta_resp(struct il_priv *il,
79 79
80 switch (pkt->u.add_sta.status) { 80 switch (pkt->u.add_sta.status) {
81 case ADD_STA_SUCCESS_MSK: 81 case ADD_STA_SUCCESS_MSK:
82 D_INFO("REPLY_ADD_STA PASSED\n"); 82 D_INFO("C_ADD_STA PASSED\n");
83 il_sta_ucode_activate(il, sta_id); 83 il_sta_ucode_activate(il, sta_id);
84 ret = 0; 84 ret = 0;
85 break; 85 break;
@@ -97,7 +97,7 @@ static int il_process_add_sta_resp(struct il_priv *il,
97 sta_id); 97 sta_id);
98 break; 98 break;
99 default: 99 default:
100 D_ASSOC("Received REPLY_ADD_STA:(0x%08X)\n", 100 D_ASSOC("Received C_ADD_STA:(0x%08X)\n",
101 pkt->u.add_sta.status); 101 pkt->u.add_sta.status);
102 break; 102 break;
103 } 103 }
@@ -142,7 +142,7 @@ int il_send_add_sta(struct il_priv *il,
142 int ret = 0; 142 int ret = 0;
143 u8 data[sizeof(*sta)]; 143 u8 data[sizeof(*sta)];
144 struct il_host_cmd cmd = { 144 struct il_host_cmd cmd = {
145 .id = REPLY_ADD_STA, 145 .id = C_ADD_STA,
146 .flags = flags, 146 .flags = flags,
147 .data = data, 147 .data = data,
148 }; 148 };
@@ -290,7 +290,7 @@ u8 il_prep_station(struct il_priv *il, struct il_rxon_context *ctx,
290 sta_id, addr); 290 sta_id, addr);
291 il->num_stations++; 291 il->num_stations++;
292 292
293 /* Set up the REPLY_ADD_STA command to send to device */ 293 /* Set up the C_ADD_STA command to send to device */
294 memset(&station->sta, 0, sizeof(struct il_addsta_cmd)); 294 memset(&station->sta, 0, sizeof(struct il_addsta_cmd));
295 memcpy(station->sta.sta.addr, addr, ETH_ALEN); 295 memcpy(station->sta.sta.addr, addr, ETH_ALEN);
296 station->sta.mode = 0; 296 station->sta.mode = 0;
@@ -421,7 +421,7 @@ static int il_send_remove_station(struct il_priv *il,
421 struct il_rem_sta_cmd rm_sta_cmd; 421 struct il_rem_sta_cmd rm_sta_cmd;
422 422
423 struct il_host_cmd cmd = { 423 struct il_host_cmd cmd = {
424 .id = REPLY_REMOVE_STA, 424 .id = C_REM_STA,
425 .len = sizeof(struct il_rem_sta_cmd), 425 .len = sizeof(struct il_rem_sta_cmd),
426 .flags = CMD_SYNC, 426 .flags = CMD_SYNC,
427 .data = &rm_sta_cmd, 427 .data = &rm_sta_cmd,
@@ -440,7 +440,7 @@ static int il_send_remove_station(struct il_priv *il,
440 440
441 pkt = (struct il_rx_pkt *)cmd.reply_page; 441 pkt = (struct il_rx_pkt *)cmd.reply_page;
442 if (pkt->hdr.flags & IL_CMD_FAILED_MSK) { 442 if (pkt->hdr.flags & IL_CMD_FAILED_MSK) {
443 IL_ERR("Bad return from REPLY_REMOVE_STA (0x%08X)\n", 443 IL_ERR("Bad return from C_REM_STA (0x%08X)\n",
444 pkt->hdr.flags); 444 pkt->hdr.flags);
445 ret = -EIO; 445 ret = -EIO;
446 } 446 }
@@ -454,11 +454,11 @@ static int il_send_remove_station(struct il_priv *il,
454 spin_unlock_irqrestore(&il->sta_lock, 454 spin_unlock_irqrestore(&il->sta_lock,
455 flags_spin); 455 flags_spin);
456 } 456 }
457 D_ASSOC("REPLY_REMOVE_STA PASSED\n"); 457 D_ASSOC("C_REM_STA PASSED\n");
458 break; 458 break;
459 default: 459 default:
460 ret = -EIO; 460 ret = -EIO;
461 IL_ERR("REPLY_REMOVE_STA failed\n"); 461 IL_ERR("C_REM_STA failed\n");
462 break; 462 break;
463 } 463 }
464 } 464 }
@@ -753,7 +753,7 @@ int il_send_lq_cmd(struct il_priv *il, struct il_rxon_context *ctx,
753 unsigned long flags_spin; 753 unsigned long flags_spin;
754 754
755 struct il_host_cmd cmd = { 755 struct il_host_cmd cmd = {
756 .id = REPLY_TX_LINK_QUALITY_CMD, 756 .id = C_TX_LINK_QUALITY_CMD,
757 .len = sizeof(struct il_link_quality_cmd), 757 .len = sizeof(struct il_link_quality_cmd),
758 .flags = flags, 758 .flags = flags,
759 .data = lq, 759 .data = lq,