diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-08-26 10:29:35 -0400 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 06:31:32 -0500 |
commit | 3b98c7f49b675eb13e723967cf1264e3d562c480 (patch) | |
tree | f7d4a5d83720e3d63355fb8f4f2c6f327669b491 | |
parent | 0c2c885200057c44ac5660d123e199192689ca5d (diff) |
iwlegacy: s/TABLE/TBL/
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-3945-fh.h | 32 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-3945.c | 52 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-4965-calib.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-4965-rs.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-4965.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-commands.h | 44 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-csr.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-dev.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-hcmd.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-legacy-rs.h | 30 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-power.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-prph.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-sta.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl3945-base.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl4965-base.c | 2 |
15 files changed, 99 insertions, 99 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945-fh.h b/drivers/net/wireless/iwlegacy/iwl-3945-fh.h index b98cabb2ee10..aa44a9036201 100644 --- a/drivers/net/wireless/iwlegacy/iwl-3945-fh.h +++ b/drivers/net/wireless/iwlegacy/iwl-3945-fh.h | |||
@@ -74,25 +74,25 @@ | |||
74 | #define FH39_MEM_LOWER_BOUND (0x0800) | 74 | #define FH39_MEM_LOWER_BOUND (0x0800) |
75 | #define FH39_MEM_UPPER_BOUND (0x1000) | 75 | #define FH39_MEM_UPPER_BOUND (0x1000) |
76 | 76 | ||
77 | #define FH39_CBCC_TABLE (FH39_MEM_LOWER_BOUND + 0x140) | 77 | #define FH39_CBCC_TBL (FH39_MEM_LOWER_BOUND + 0x140) |
78 | #define FH39_TFDB_TABLE (FH39_MEM_LOWER_BOUND + 0x180) | 78 | #define FH39_TFDB_TBL (FH39_MEM_LOWER_BOUND + 0x180) |
79 | #define FH39_RCSR_TABLE (FH39_MEM_LOWER_BOUND + 0x400) | 79 | #define FH39_RCSR_TBL (FH39_MEM_LOWER_BOUND + 0x400) |
80 | #define FH39_RSSR_TABLE (FH39_MEM_LOWER_BOUND + 0x4c0) | 80 | #define FH39_RSSR_TBL (FH39_MEM_LOWER_BOUND + 0x4c0) |
81 | #define FH39_TCSR_TABLE (FH39_MEM_LOWER_BOUND + 0x500) | 81 | #define FH39_TCSR_TBL (FH39_MEM_LOWER_BOUND + 0x500) |
82 | #define FH39_TSSR_TABLE (FH39_MEM_LOWER_BOUND + 0x680) | 82 | #define FH39_TSSR_TBL (FH39_MEM_LOWER_BOUND + 0x680) |
83 | 83 | ||
84 | /* TFDB (Transmit Frame Buffer Descriptor) */ | 84 | /* TFDB (Transmit Frame Buffer Descriptor) */ |
85 | #define FH39_TFDB(_ch, buf) (FH39_TFDB_TABLE + \ | 85 | #define FH39_TFDB(_ch, buf) (FH39_TFDB_TBL + \ |
86 | ((_ch) * 2 + (buf)) * 0x28) | 86 | ((_ch) * 2 + (buf)) * 0x28) |
87 | #define FH39_TFDB_CHNL_BUF_CTRL_REG(_ch) (FH39_TFDB_TABLE + 0x50 * (_ch)) | 87 | #define FH39_TFDB_CHNL_BUF_CTRL_REG(_ch) (FH39_TFDB_TBL + 0x50 * (_ch)) |
88 | 88 | ||
89 | /* CBCC channel is [0,2] */ | 89 | /* CBCC channel is [0,2] */ |
90 | #define FH39_CBCC(_ch) (FH39_CBCC_TABLE + (_ch) * 0x8) | 90 | #define FH39_CBCC(_ch) (FH39_CBCC_TBL + (_ch) * 0x8) |
91 | #define FH39_CBCC_CTRL(_ch) (FH39_CBCC(_ch) + 0x00) | 91 | #define FH39_CBCC_CTRL(_ch) (FH39_CBCC(_ch) + 0x00) |
92 | #define FH39_CBCC_BASE(_ch) (FH39_CBCC(_ch) + 0x04) | 92 | #define FH39_CBCC_BASE(_ch) (FH39_CBCC(_ch) + 0x04) |
93 | 93 | ||
94 | /* RCSR channel is [0,2] */ | 94 | /* RCSR channel is [0,2] */ |
95 | #define FH39_RCSR(_ch) (FH39_RCSR_TABLE + (_ch) * 0x40) | 95 | #define FH39_RCSR(_ch) (FH39_RCSR_TBL + (_ch) * 0x40) |
96 | #define FH39_RCSR_CONFIG(_ch) (FH39_RCSR(_ch) + 0x00) | 96 | #define FH39_RCSR_CONFIG(_ch) (FH39_RCSR(_ch) + 0x00) |
97 | #define FH39_RCSR_RBD_BASE(_ch) (FH39_RCSR(_ch) + 0x04) | 97 | #define FH39_RCSR_RBD_BASE(_ch) (FH39_RCSR(_ch) + 0x04) |
98 | #define FH39_RCSR_WPTR(_ch) (FH39_RCSR(_ch) + 0x20) | 98 | #define FH39_RCSR_WPTR(_ch) (FH39_RCSR(_ch) + 0x20) |
@@ -101,19 +101,19 @@ | |||
101 | #define FH39_RSCSR_CHNL0_WPTR (FH39_RCSR_WPTR(0)) | 101 | #define FH39_RSCSR_CHNL0_WPTR (FH39_RCSR_WPTR(0)) |
102 | 102 | ||
103 | /* RSSR */ | 103 | /* RSSR */ |
104 | #define FH39_RSSR_CTRL (FH39_RSSR_TABLE + 0x000) | 104 | #define FH39_RSSR_CTRL (FH39_RSSR_TBL + 0x000) |
105 | #define FH39_RSSR_STATUS (FH39_RSSR_TABLE + 0x004) | 105 | #define FH39_RSSR_STATUS (FH39_RSSR_TBL + 0x004) |
106 | 106 | ||
107 | /* TCSR */ | 107 | /* TCSR */ |
108 | #define FH39_TCSR(_ch) (FH39_TCSR_TABLE + (_ch) * 0x20) | 108 | #define FH39_TCSR(_ch) (FH39_TCSR_TBL + (_ch) * 0x20) |
109 | #define FH39_TCSR_CONFIG(_ch) (FH39_TCSR(_ch) + 0x00) | 109 | #define FH39_TCSR_CONFIG(_ch) (FH39_TCSR(_ch) + 0x00) |
110 | #define FH39_TCSR_CREDIT(_ch) (FH39_TCSR(_ch) + 0x04) | 110 | #define FH39_TCSR_CREDIT(_ch) (FH39_TCSR(_ch) + 0x04) |
111 | #define FH39_TCSR_BUFF_STTS(_ch) (FH39_TCSR(_ch) + 0x08) | 111 | #define FH39_TCSR_BUFF_STTS(_ch) (FH39_TCSR(_ch) + 0x08) |
112 | 112 | ||
113 | /* TSSR */ | 113 | /* TSSR */ |
114 | #define FH39_TSSR_CBB_BASE (FH39_TSSR_TABLE + 0x000) | 114 | #define FH39_TSSR_CBB_BASE (FH39_TSSR_TBL + 0x000) |
115 | #define FH39_TSSR_MSG_CONFIG (FH39_TSSR_TABLE + 0x008) | 115 | #define FH39_TSSR_MSG_CONFIG (FH39_TSSR_TBL + 0x008) |
116 | #define FH39_TSSR_TX_STATUS (FH39_TSSR_TABLE + 0x010) | 116 | #define FH39_TSSR_TX_STATUS (FH39_TSSR_TBL + 0x010) |
117 | 117 | ||
118 | 118 | ||
119 | /* DBM */ | 119 | /* DBM */ |
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945.c b/drivers/net/wireless/iwlegacy/iwl-3945.c index 96a762804944..b6abf3473fac 100644 --- a/drivers/net/wireless/iwlegacy/iwl-3945.c +++ b/drivers/net/wireless/iwlegacy/iwl-3945.c | |||
@@ -60,8 +60,8 @@ | |||
60 | RATE_##rn##M_IDX, \ | 60 | RATE_##rn##M_IDX, \ |
61 | RATE_##pp##M_IDX, \ | 61 | RATE_##pp##M_IDX, \ |
62 | RATE_##np##M_IDX, \ | 62 | RATE_##np##M_IDX, \ |
63 | RATE_##r##M_IDX_TABLE, \ | 63 | RATE_##r##M_IDX_TBL, \ |
64 | RATE_##ip##M_IDX_TABLE } | 64 | RATE_##ip##M_IDX_TBL } |
65 | 65 | ||
66 | /* | 66 | /* |
67 | * Parameter order: | 67 | * Parameter order: |
@@ -1330,7 +1330,7 @@ static void il3945_hw_reg_set_scan_power(struct il_priv *il, u32 scan_tbl_idx, | |||
1330 | /* use this channel group's 6Mbit clipping/saturation pwr, | 1330 | /* use this channel group's 6Mbit clipping/saturation pwr, |
1331 | * but cap at regulatory scan power restriction (set during init | 1331 | * but cap at regulatory scan power restriction (set during init |
1332 | * based on eeprom channel data) for this channel. */ | 1332 | * based on eeprom channel data) for this channel. */ |
1333 | power = min(ch_info->scan_power, clip_pwrs[RATE_6M_IDX_TABLE]); | 1333 | power = min(ch_info->scan_power, clip_pwrs[RATE_6M_IDX_TBL]); |
1334 | 1334 | ||
1335 | power = min(power, il->tx_power_user_lmt); | 1335 | power = min(power, il->tx_power_user_lmt); |
1336 | scan_power_info->requested_power = power; | 1336 | scan_power_info->requested_power = power; |
@@ -1342,7 +1342,7 @@ static void il3945_hw_reg_set_scan_power(struct il_priv *il, u32 scan_tbl_idx, | |||
1342 | * *idx*. */ | 1342 | * *idx*. */ |
1343 | power_idx = ch_info->power_info[rate_idx].power_table_idx | 1343 | power_idx = ch_info->power_info[rate_idx].power_table_idx |
1344 | - (power - ch_info->power_info | 1344 | - (power - ch_info->power_info |
1345 | [RATE_6M_IDX_TABLE].requested_power) * 2; | 1345 | [RATE_6M_IDX_TBL].requested_power) * 2; |
1346 | 1346 | ||
1347 | /* store reference idx that we use when adjusting *all* scan | 1347 | /* store reference idx that we use when adjusting *all* scan |
1348 | * powers. So we can accommodate user (all channel) or spectrum | 1348 | * powers. So we can accommodate user (all channel) or spectrum |
@@ -1394,7 +1394,7 @@ static int il3945_send_tx_power(struct il_priv *il) | |||
1394 | } | 1394 | } |
1395 | 1395 | ||
1396 | if (!il_is_channel_valid(ch_info)) { | 1396 | if (!il_is_channel_valid(ch_info)) { |
1397 | D_POWER("Not calling TX_PWR_TABLE_CMD on " | 1397 | D_POWER("Not calling TX_PWR_TBL_CMD on " |
1398 | "non-Tx channel.\n"); | 1398 | "non-Tx channel.\n"); |
1399 | return 0; | 1399 | return 0; |
1400 | } | 1400 | } |
@@ -1428,7 +1428,7 @@ static int il3945_send_tx_power(struct il_priv *il) | |||
1428 | txpower.power[i].rate); | 1428 | txpower.power[i].rate); |
1429 | } | 1429 | } |
1430 | 1430 | ||
1431 | return il_send_cmd_pdu(il, REPLY_TX_PWR_TABLE_CMD, | 1431 | return il_send_cmd_pdu(il, REPLY_TX_PWR_TBL_CMD, |
1432 | sizeof(struct il3945_txpowertable_cmd), | 1432 | sizeof(struct il3945_txpowertable_cmd), |
1433 | &txpower); | 1433 | &txpower); |
1434 | 1434 | ||
@@ -1466,7 +1466,7 @@ static int il3945_hw_reg_set_new_power(struct il_priv *il, | |||
1466 | power_info = ch_info->power_info; | 1466 | power_info = ch_info->power_info; |
1467 | 1467 | ||
1468 | /* update OFDM Txpower settings */ | 1468 | /* update OFDM Txpower settings */ |
1469 | for (i = RATE_6M_IDX_TABLE; i <= RATE_54M_IDX_TABLE; | 1469 | for (i = RATE_6M_IDX_TBL; i <= RATE_54M_IDX_TBL; |
1470 | i++, ++power_info) { | 1470 | i++, ++power_info) { |
1471 | int delta_idx; | 1471 | int delta_idx; |
1472 | 1472 | ||
@@ -1490,14 +1490,14 @@ static int il3945_hw_reg_set_new_power(struct il_priv *il, | |||
1490 | * ... all CCK power settings for a given channel are the *same*. */ | 1490 | * ... all CCK power settings for a given channel are the *same*. */ |
1491 | if (power_changed) { | 1491 | if (power_changed) { |
1492 | power = | 1492 | power = |
1493 | ch_info->power_info[RATE_12M_IDX_TABLE]. | 1493 | ch_info->power_info[RATE_12M_IDX_TBL]. |
1494 | requested_power + IL_CCK_FROM_OFDM_POWER_DIFF; | 1494 | requested_power + IL_CCK_FROM_OFDM_POWER_DIFF; |
1495 | 1495 | ||
1496 | /* do all CCK rates' il3945_channel_power_info structures */ | 1496 | /* do all CCK rates' il3945_channel_power_info structures */ |
1497 | for (i = RATE_1M_IDX_TABLE; i <= RATE_11M_IDX_TABLE; i++) { | 1497 | for (i = RATE_1M_IDX_TBL; i <= RATE_11M_IDX_TBL; i++) { |
1498 | power_info->requested_power = power; | 1498 | power_info->requested_power = power; |
1499 | power_info->base_power_idx = | 1499 | power_info->base_power_idx = |
1500 | ch_info->power_info[RATE_12M_IDX_TABLE]. | 1500 | ch_info->power_info[RATE_12M_IDX_TBL]. |
1501 | base_power_idx + IL_CCK_FROM_OFDM_IDX_DIFF; | 1501 | base_power_idx + IL_CCK_FROM_OFDM_IDX_DIFF; |
1502 | ++power_info; | 1502 | ++power_info; |
1503 | } | 1503 | } |
@@ -1597,7 +1597,7 @@ static int il3945_hw_reg_comp_txpower_temp(struct il_priv *il) | |||
1597 | for (scan_tbl_idx = 0; | 1597 | for (scan_tbl_idx = 0; |
1598 | scan_tbl_idx < IL_NUM_SCAN_RATES; scan_tbl_idx++) { | 1598 | scan_tbl_idx < IL_NUM_SCAN_RATES; scan_tbl_idx++) { |
1599 | s32 actual_idx = (scan_tbl_idx == 0) ? | 1599 | s32 actual_idx = (scan_tbl_idx == 0) ? |
1600 | RATE_1M_IDX_TABLE : RATE_6M_IDX_TABLE; | 1600 | RATE_1M_IDX_TBL : RATE_6M_IDX_TBL; |
1601 | il3945_hw_reg_set_scan_power(il, scan_tbl_idx, | 1601 | il3945_hw_reg_set_scan_power(il, scan_tbl_idx, |
1602 | actual_idx, clip_pwrs, | 1602 | actual_idx, clip_pwrs, |
1603 | ch_info, a_band); | 1603 | ch_info, a_band); |
@@ -2012,19 +2012,19 @@ static void il3945_hw_reg_init_channel_groups(struct il_priv *il) | |||
2012 | for (rate_idx = 0; | 2012 | for (rate_idx = 0; |
2013 | rate_idx < RATE_COUNT_3945; rate_idx++, clip_pwrs++) { | 2013 | rate_idx < RATE_COUNT_3945; rate_idx++, clip_pwrs++) { |
2014 | switch (rate_idx) { | 2014 | switch (rate_idx) { |
2015 | case RATE_36M_IDX_TABLE: | 2015 | case RATE_36M_IDX_TBL: |
2016 | if (i == 0) /* B/G */ | 2016 | if (i == 0) /* B/G */ |
2017 | *clip_pwrs = satur_pwr; | 2017 | *clip_pwrs = satur_pwr; |
2018 | else /* A */ | 2018 | else /* A */ |
2019 | *clip_pwrs = satur_pwr - 5; | 2019 | *clip_pwrs = satur_pwr - 5; |
2020 | break; | 2020 | break; |
2021 | case RATE_48M_IDX_TABLE: | 2021 | case RATE_48M_IDX_TBL: |
2022 | if (i == 0) | 2022 | if (i == 0) |
2023 | *clip_pwrs = satur_pwr - 7; | 2023 | *clip_pwrs = satur_pwr - 7; |
2024 | else | 2024 | else |
2025 | *clip_pwrs = satur_pwr - 10; | 2025 | *clip_pwrs = satur_pwr - 10; |
2026 | break; | 2026 | break; |
2027 | case RATE_54M_IDX_TABLE: | 2027 | case RATE_54M_IDX_TBL: |
2028 | if (i == 0) | 2028 | if (i == 0) |
2029 | *clip_pwrs = satur_pwr - 9; | 2029 | *clip_pwrs = satur_pwr - 9; |
2030 | else | 2030 | else |
@@ -2139,7 +2139,7 @@ int il3945_txpower_set_from_eeprom(struct il_priv *il) | |||
2139 | } | 2139 | } |
2140 | 2140 | ||
2141 | /* set tx power for CCK rates, based on OFDM 12 Mbit settings*/ | 2141 | /* set tx power for CCK rates, based on OFDM 12 Mbit settings*/ |
2142 | pwr_info = &ch_info->power_info[RATE_12M_IDX_TABLE]; | 2142 | pwr_info = &ch_info->power_info[RATE_12M_IDX_TBL]; |
2143 | power = pwr_info->requested_power + | 2143 | power = pwr_info->requested_power + |
2144 | IL_CCK_FROM_OFDM_POWER_DIFF; | 2144 | IL_CCK_FROM_OFDM_POWER_DIFF; |
2145 | pwr_idx = pwr_info->power_table_idx + | 2145 | pwr_idx = pwr_info->power_table_idx + |
@@ -2169,7 +2169,7 @@ int il3945_txpower_set_from_eeprom(struct il_priv *il) | |||
2169 | for (scan_tbl_idx = 0; | 2169 | for (scan_tbl_idx = 0; |
2170 | scan_tbl_idx < IL_NUM_SCAN_RATES; scan_tbl_idx++) { | 2170 | scan_tbl_idx < IL_NUM_SCAN_RATES; scan_tbl_idx++) { |
2171 | s32 actual_idx = (scan_tbl_idx == 0) ? | 2171 | s32 actual_idx = (scan_tbl_idx == 0) ? |
2172 | RATE_1M_IDX_TABLE : RATE_6M_IDX_TABLE; | 2172 | RATE_1M_IDX_TBL : RATE_6M_IDX_TBL; |
2173 | il3945_hw_reg_set_scan_power(il, scan_tbl_idx, | 2173 | il3945_hw_reg_set_scan_power(il, scan_tbl_idx, |
2174 | actual_idx, clip_pwrs, ch_info, a_band); | 2174 | actual_idx, clip_pwrs, ch_info, a_band); |
2175 | } | 2175 | } |
@@ -2223,7 +2223,7 @@ static u16 il3945_get_hcmd_size(u8 cmd_id, u16 len) | |||
2223 | switch (cmd_id) { | 2223 | switch (cmd_id) { |
2224 | case REPLY_RXON: | 2224 | case REPLY_RXON: |
2225 | return sizeof(struct il3945_rxon_cmd); | 2225 | return sizeof(struct il3945_rxon_cmd); |
2226 | case POWER_TABLE_CMD: | 2226 | case POWER_TBL_CMD: |
2227 | return sizeof(struct il3945_powertable_cmd); | 2227 | return sizeof(struct il3945_powertable_cmd); |
2228 | default: | 2228 | default: |
2229 | return len; | 2229 | return len; |
@@ -2326,17 +2326,17 @@ int il3945_init_hw_rate_table(struct il_priv *il) | |||
2326 | D_RATE("Select A mode rate scale\n"); | 2326 | D_RATE("Select A mode rate scale\n"); |
2327 | /* If one of the following CCK rates is used, | 2327 | /* If one of the following CCK rates is used, |
2328 | * have it fall back to the 6M OFDM rate */ | 2328 | * have it fall back to the 6M OFDM rate */ |
2329 | for (i = RATE_1M_IDX_TABLE; | 2329 | for (i = RATE_1M_IDX_TBL; |
2330 | i <= RATE_11M_IDX_TABLE; i++) | 2330 | i <= RATE_11M_IDX_TBL; i++) |
2331 | table[i].next_rate_idx = | 2331 | table[i].next_rate_idx = |
2332 | il3945_rates[IL_FIRST_OFDM_RATE].table_rs_idx; | 2332 | il3945_rates[IL_FIRST_OFDM_RATE].table_rs_idx; |
2333 | 2333 | ||
2334 | /* Don't fall back to CCK rates */ | 2334 | /* Don't fall back to CCK rates */ |
2335 | table[RATE_12M_IDX_TABLE].next_rate_idx = | 2335 | table[RATE_12M_IDX_TBL].next_rate_idx = |
2336 | RATE_9M_IDX_TABLE; | 2336 | RATE_9M_IDX_TBL; |
2337 | 2337 | ||
2338 | /* Don't drop out of OFDM rates */ | 2338 | /* Don't drop out of OFDM rates */ |
2339 | table[RATE_6M_IDX_TABLE].next_rate_idx = | 2339 | table[RATE_6M_IDX_TBL].next_rate_idx = |
2340 | il3945_rates[IL_FIRST_OFDM_RATE].table_rs_idx; | 2340 | il3945_rates[IL_FIRST_OFDM_RATE].table_rs_idx; |
2341 | break; | 2341 | break; |
2342 | 2342 | ||
@@ -2349,14 +2349,14 @@ int il3945_init_hw_rate_table(struct il_priv *il) | |||
2349 | il_is_associated(il)) { | 2349 | il_is_associated(il)) { |
2350 | 2350 | ||
2351 | idx = IL_FIRST_CCK_RATE; | 2351 | idx = IL_FIRST_CCK_RATE; |
2352 | for (i = RATE_6M_IDX_TABLE; | 2352 | for (i = RATE_6M_IDX_TBL; |
2353 | i <= RATE_54M_IDX_TABLE; i++) | 2353 | i <= RATE_54M_IDX_TBL; i++) |
2354 | table[i].next_rate_idx = | 2354 | table[i].next_rate_idx = |
2355 | il3945_rates[idx].table_rs_idx; | 2355 | il3945_rates[idx].table_rs_idx; |
2356 | 2356 | ||
2357 | idx = RATE_11M_IDX_TABLE; | 2357 | idx = RATE_11M_IDX_TBL; |
2358 | /* CCK shouldn't fall back to OFDM... */ | 2358 | /* CCK shouldn't fall back to OFDM... */ |
2359 | table[idx].next_rate_idx = RATE_5M_IDX_TABLE; | 2359 | table[idx].next_rate_idx = RATE_5M_IDX_TBL; |
2360 | } | 2360 | } |
2361 | break; | 2361 | break; |
2362 | 2362 | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965-calib.c b/drivers/net/wireless/iwlegacy/iwl-4965-calib.c index d622b2781088..1d873a68830e 100644 --- a/drivers/net/wireless/iwlegacy/iwl-4965-calib.c +++ b/drivers/net/wireless/iwlegacy/iwl-4965-calib.c | |||
@@ -429,18 +429,18 @@ static int il4965_sensitivity_write(struct il_priv *il) | |||
429 | il4965_prepare_legacy_sensitivity_tbl(il, data, &cmd.table[0]); | 429 | il4965_prepare_legacy_sensitivity_tbl(il, data, &cmd.table[0]); |
430 | 430 | ||
431 | /* Update uCode's "work" table, and copy it to DSP */ | 431 | /* Update uCode's "work" table, and copy it to DSP */ |
432 | cmd.control = SENSITIVITY_CMD_CONTROL_WORK_TABLE; | 432 | cmd.control = SENSITIVITY_CMD_CONTROL_WORK_TBL; |
433 | 433 | ||
434 | /* Don't send command to uCode if nothing has changed */ | 434 | /* Don't send command to uCode if nothing has changed */ |
435 | if (!memcmp(&cmd.table[0], &(il->sensitivity_tbl[0]), | 435 | if (!memcmp(&cmd.table[0], &(il->sensitivity_tbl[0]), |
436 | sizeof(u16)*HD_TABLE_SIZE)) { | 436 | sizeof(u16)*HD_TBL_SIZE)) { |
437 | D_CALIB("No change in SENSITIVITY_CMD\n"); | 437 | D_CALIB("No change in SENSITIVITY_CMD\n"); |
438 | return 0; | 438 | return 0; |
439 | } | 439 | } |
440 | 440 | ||
441 | /* Copy table for comparison next time */ | 441 | /* Copy table for comparison next time */ |
442 | memcpy(&(il->sensitivity_tbl[0]), &(cmd.table[0]), | 442 | memcpy(&(il->sensitivity_tbl[0]), &(cmd.table[0]), |
443 | sizeof(u16)*HD_TABLE_SIZE); | 443 | sizeof(u16)*HD_TBL_SIZE); |
444 | 444 | ||
445 | return il_send_cmd(il, &cmd_out); | 445 | return il_send_cmd(il, &cmd_out); |
446 | } | 446 | } |
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965-rs.c b/drivers/net/wireless/iwlegacy/iwl-4965-rs.c index b8f80641f788..4a543114372b 100644 --- a/drivers/net/wireless/iwlegacy/iwl-4965-rs.c +++ b/drivers/net/wireless/iwlegacy/iwl-4965-rs.c | |||
@@ -1001,11 +1001,11 @@ static void il4965_rs_set_stay_in_table(struct il_priv *il, u8 is_legacy, | |||
1001 | D_RATE("we are staying in the same table\n"); | 1001 | D_RATE("we are staying in the same table\n"); |
1002 | lq_sta->stay_in_tbl = 1; /* only place this gets set */ | 1002 | lq_sta->stay_in_tbl = 1; /* only place this gets set */ |
1003 | if (is_legacy) { | 1003 | if (is_legacy) { |
1004 | lq_sta->table_count_limit = IL_LEGACY_TABLE_COUNT; | 1004 | lq_sta->table_count_limit = IL_LEGACY_TBL_COUNT; |
1005 | lq_sta->max_failure_limit = IL_LEGACY_FAILURE_LIMIT; | 1005 | lq_sta->max_failure_limit = IL_LEGACY_FAILURE_LIMIT; |
1006 | lq_sta->max_success_limit = IL_LEGACY_SUCCESS_LIMIT; | 1006 | lq_sta->max_success_limit = IL_LEGACY_SUCCESS_LIMIT; |
1007 | } else { | 1007 | } else { |
1008 | lq_sta->table_count_limit = IL_NONE_LEGACY_TABLE_COUNT; | 1008 | lq_sta->table_count_limit = IL_NONE_LEGACY_TBL_COUNT; |
1009 | lq_sta->max_failure_limit = IL_NONE_LEGACY_FAILURE_LIMIT; | 1009 | lq_sta->max_failure_limit = IL_NONE_LEGACY_FAILURE_LIMIT; |
1010 | lq_sta->max_success_limit = IL_NONE_LEGACY_SUCCESS_LIMIT; | 1010 | lq_sta->max_success_limit = IL_NONE_LEGACY_SUCCESS_LIMIT; |
1011 | } | 1011 | } |
@@ -1916,7 +1916,7 @@ static void il4965_rs_rate_scale_perform(struct il_priv *il, | |||
1916 | * continuing to use the setup that we've been trying. */ | 1916 | * continuing to use the setup that we've been trying. */ |
1917 | if (win->average_tpt > lq_sta->last_tpt) { | 1917 | if (win->average_tpt > lq_sta->last_tpt) { |
1918 | 1918 | ||
1919 | D_RATE("LQ: SWITCHING TO NEW TABLE " | 1919 | D_RATE("LQ: SWITCHING TO NEW TBL " |
1920 | "suc=%d cur-tpt=%d old-tpt=%d\n", | 1920 | "suc=%d cur-tpt=%d old-tpt=%d\n", |
1921 | win->success_ratio, | 1921 | win->success_ratio, |
1922 | win->average_tpt, | 1922 | win->average_tpt, |
@@ -1932,7 +1932,7 @@ static void il4965_rs_rate_scale_perform(struct il_priv *il, | |||
1932 | /* Else poor success; go back to mode in "active" table */ | 1932 | /* Else poor success; go back to mode in "active" table */ |
1933 | } else { | 1933 | } else { |
1934 | 1934 | ||
1935 | D_RATE("LQ: GOING BACK TO THE OLD TABLE " | 1935 | D_RATE("LQ: GOING BACK TO THE OLD TBL " |
1936 | "suc=%d cur-tpt=%d old-tpt=%d\n", | 1936 | "suc=%d cur-tpt=%d old-tpt=%d\n", |
1937 | win->success_ratio, | 1937 | win->success_ratio, |
1938 | win->average_tpt, | 1938 | win->average_tpt, |
diff --git a/drivers/net/wireless/iwlegacy/iwl-4965.c b/drivers/net/wireless/iwlegacy/iwl-4965.c index 8fd383ea58b8..bdfb3a616fdc 100644 --- a/drivers/net/wireless/iwlegacy/iwl-4965.c +++ b/drivers/net/wireless/iwlegacy/iwl-4965.c | |||
@@ -1010,7 +1010,7 @@ static int il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, | |||
1010 | } | 1010 | } |
1011 | 1011 | ||
1012 | /* for each of 33 bit-rates (including 1 for CCK) */ | 1012 | /* for each of 33 bit-rates (including 1 for CCK) */ |
1013 | for (i = 0; i < POWER_TABLE_NUM_ENTRIES; i++) { | 1013 | for (i = 0; i < POWER_TBL_NUM_ENTRIES; i++) { |
1014 | u8 is_mimo_rate; | 1014 | u8 is_mimo_rate; |
1015 | union il4965_tx_power_dual_stream tx_power; | 1015 | union il4965_tx_power_dual_stream tx_power; |
1016 | 1016 | ||
@@ -1072,7 +1072,7 @@ static int il4965_fill_txpower_tbl(struct il_priv *il, u8 band, u16 channel, | |||
1072 | power_idx += 9; | 1072 | power_idx += 9; |
1073 | 1073 | ||
1074 | /* CCK, rate 32, reduce txpower for CCK */ | 1074 | /* CCK, rate 32, reduce txpower for CCK */ |
1075 | if (i == POWER_TABLE_CCK_ENTRY) | 1075 | if (i == POWER_TBL_CCK_ENTRY) |
1076 | power_idx += | 1076 | power_idx += |
1077 | IL_TX_POWER_CCK_COMPENSATION_C_STEP; | 1077 | IL_TX_POWER_CCK_COMPENSATION_C_STEP; |
1078 | 1078 | ||
@@ -1144,7 +1144,7 @@ static int il4965_send_tx_power(struct il_priv *il) | |||
1144 | goto out; | 1144 | goto out; |
1145 | 1145 | ||
1146 | ret = il_send_cmd_pdu(il, | 1146 | ret = il_send_cmd_pdu(il, |
1147 | REPLY_TX_PWR_TABLE_CMD, sizeof(cmd), &cmd); | 1147 | REPLY_TX_PWR_TBL_CMD, sizeof(cmd), &cmd); |
1148 | 1148 | ||
1149 | out: | 1149 | out: |
1150 | return ret; | 1150 | return ret; |
diff --git a/drivers/net/wireless/iwlegacy/iwl-commands.h b/drivers/net/wireless/iwlegacy/iwl-commands.h index 408391295fbd..e6688b166ada 100644 --- a/drivers/net/wireless/iwlegacy/iwl-commands.h +++ b/drivers/net/wireless/iwlegacy/iwl-commands.h | |||
@@ -114,7 +114,7 @@ enum { | |||
114 | SPECTRUM_MEASURE_NOTIFICATION = 0x75, | 114 | SPECTRUM_MEASURE_NOTIFICATION = 0x75, |
115 | 115 | ||
116 | /* Power Management */ | 116 | /* Power Management */ |
117 | POWER_TABLE_CMD = 0x77, | 117 | POWER_TBL_CMD = 0x77, |
118 | PM_SLEEP_NOTIFICATION = 0x7A, | 118 | PM_SLEEP_NOTIFICATION = 0x7A, |
119 | PM_DEBUG_STATISTIC_NOTIFIC = 0x7B, | 119 | PM_DEBUG_STATISTIC_NOTIFIC = 0x7B, |
120 | 120 | ||
@@ -130,7 +130,7 @@ enum { | |||
130 | REPLY_TX_BEACON = 0x91, | 130 | REPLY_TX_BEACON = 0x91, |
131 | 131 | ||
132 | /* Miscellaneous commands */ | 132 | /* Miscellaneous commands */ |
133 | REPLY_TX_PWR_TABLE_CMD = 0x97, | 133 | REPLY_TX_PWR_TBL_CMD = 0x97, |
134 | 134 | ||
135 | /* Bluetooth device coexistence config command */ | 135 | /* Bluetooth device coexistence config command */ |
136 | REPLY_BT_CONFIG = 0x9b, | 136 | REPLY_BT_CONFIG = 0x9b, |
@@ -214,7 +214,7 @@ struct il_cmd_header { | |||
214 | /** | 214 | /** |
215 | * struct il3945_tx_power | 215 | * struct il3945_tx_power |
216 | * | 216 | * |
217 | * Used in REPLY_TX_PWR_TABLE_CMD, REPLY_SCAN_CMD, REPLY_CHANNEL_SWITCH | 217 | * Used in REPLY_TX_PWR_TBL_CMD, REPLY_SCAN_CMD, REPLY_CHANNEL_SWITCH |
218 | * | 218 | * |
219 | * Each entry contains two values: | 219 | * Each entry contains two values: |
220 | * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained | 220 | * 1) DSP gain (or sometimes called DSP attenuation). This is a fine-grained |
@@ -233,7 +233,7 @@ struct il3945_tx_power { | |||
233 | /** | 233 | /** |
234 | * struct il3945_power_per_rate | 234 | * struct il3945_power_per_rate |
235 | * | 235 | * |
236 | * Used in REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH | 236 | * Used in REPLY_TX_PWR_TBL_CMD, REPLY_CHANNEL_SWITCH |
237 | */ | 237 | */ |
238 | struct il3945_power_per_rate { | 238 | struct il3945_power_per_rate { |
239 | u8 rate; /* plcp */ | 239 | u8 rate; /* plcp */ |
@@ -326,9 +326,9 @@ struct il3945_power_per_rate { | |||
326 | #define RATE_MCS_ANT_ABC_MSK (RATE_MCS_ANT_AB_MSK | RATE_MCS_ANT_C_MSK) | 326 | #define RATE_MCS_ANT_ABC_MSK (RATE_MCS_ANT_AB_MSK | RATE_MCS_ANT_C_MSK) |
327 | #define RATE_ANT_NUM 3 | 327 | #define RATE_ANT_NUM 3 |
328 | 328 | ||
329 | #define POWER_TABLE_NUM_ENTRIES 33 | 329 | #define POWER_TBL_NUM_ENTRIES 33 |
330 | #define POWER_TABLE_NUM_HT_OFDM_ENTRIES 32 | 330 | #define POWER_TBL_NUM_HT_OFDM_ENTRIES 32 |
331 | #define POWER_TABLE_CCK_ENTRY 32 | 331 | #define POWER_TBL_CCK_ENTRY 32 |
332 | 332 | ||
333 | #define IL_PWR_NUM_HT_OFDM_ENTRIES 24 | 333 | #define IL_PWR_NUM_HT_OFDM_ENTRIES 24 |
334 | #define IL_PWR_CCK_ENTRIES 2 | 334 | #define IL_PWR_CCK_ENTRIES 2 |
@@ -336,7 +336,7 @@ struct il3945_power_per_rate { | |||
336 | /** | 336 | /** |
337 | * union il4965_tx_power_dual_stream | 337 | * union il4965_tx_power_dual_stream |
338 | * | 338 | * |
339 | * Host format used for REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH | 339 | * Host format used for REPLY_TX_PWR_TBL_CMD, REPLY_CHANNEL_SWITCH |
340 | * Use __le32 version (struct tx_power_dual_stream) when building command. | 340 | * Use __le32 version (struct tx_power_dual_stream) when building command. |
341 | * | 341 | * |
342 | * Driver provides radio gain and DSP attenuation settings to device in pairs, | 342 | * Driver provides radio gain and DSP attenuation settings to device in pairs, |
@@ -360,7 +360,7 @@ union il4965_tx_power_dual_stream { | |||
360 | /** | 360 | /** |
361 | * struct tx_power_dual_stream | 361 | * struct tx_power_dual_stream |
362 | * | 362 | * |
363 | * Table entries in REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH | 363 | * Table entries in REPLY_TX_PWR_TBL_CMD, REPLY_CHANNEL_SWITCH |
364 | * | 364 | * |
365 | * Same format as il_tx_power_dual_stream, but __le32 | 365 | * Same format as il_tx_power_dual_stream, but __le32 |
366 | */ | 366 | */ |
@@ -371,10 +371,10 @@ struct tx_power_dual_stream { | |||
371 | /** | 371 | /** |
372 | * struct il4965_tx_power_db | 372 | * struct il4965_tx_power_db |
373 | * | 373 | * |
374 | * Entire table within REPLY_TX_PWR_TABLE_CMD, REPLY_CHANNEL_SWITCH | 374 | * Entire table within REPLY_TX_PWR_TBL_CMD, REPLY_CHANNEL_SWITCH |
375 | */ | 375 | */ |
376 | struct il4965_tx_power_db { | 376 | struct il4965_tx_power_db { |
377 | struct tx_power_dual_stream power_tbl[POWER_TABLE_NUM_ENTRIES]; | 377 | struct tx_power_dual_stream power_tbl[POWER_TBL_NUM_ENTRIES]; |
378 | } __packed; | 378 | } __packed; |
379 | 379 | ||
380 | /****************************************************************************** | 380 | /****************************************************************************** |
@@ -653,7 +653,7 @@ enum { | |||
653 | * channel. | 653 | * channel. |
654 | * | 654 | * |
655 | * NOTE: All RXONs wipe clean the internal txpower table. Driver must | 655 | * NOTE: All RXONs wipe clean the internal txpower table. Driver must |
656 | * issue a new REPLY_TX_PWR_TABLE_CMD after each REPLY_RXON (0x10), | 656 | * issue a new REPLY_TX_PWR_TBL_CMD after each REPLY_RXON (0x10), |
657 | * regardless of whether RXON_FILTER_ASSOC_MSK is set. | 657 | * regardless of whether RXON_FILTER_ASSOC_MSK is set. |
658 | */ | 658 | */ |
659 | 659 | ||
@@ -1067,7 +1067,7 @@ struct il_addsta_cmd { | |||
1067 | 1067 | ||
1068 | 1068 | ||
1069 | #define ADD_STA_SUCCESS_MSK 0x1 | 1069 | #define ADD_STA_SUCCESS_MSK 0x1 |
1070 | #define ADD_STA_NO_ROOM_IN_TABLE 0x2 | 1070 | #define ADD_STA_NO_ROOM_IN_TBL 0x2 |
1071 | #define ADD_STA_NO_BLOCK_ACK_RESOURCE 0x4 | 1071 | #define ADD_STA_NO_BLOCK_ACK_RESOURCE 0x4 |
1072 | #define ADD_STA_MODIFY_NON_EXIST_STA 0x8 | 1072 | #define ADD_STA_MODIFY_NON_EXIST_STA 0x8 |
1073 | /* | 1073 | /* |
@@ -1271,7 +1271,7 @@ struct il_rx_mpdu_res_start { | |||
1271 | * command, as set up by the REPLY_RATE_SCALE (for 3945) or | 1271 | * command, as set up by the REPLY_RATE_SCALE (for 3945) or |
1272 | * REPLY_TX_LINK_QUALITY_CMD (4965). | 1272 | * REPLY_TX_LINK_QUALITY_CMD (4965). |
1273 | * | 1273 | * |
1274 | * Driver sets up transmit power for various rates via REPLY_TX_PWR_TABLE_CMD. | 1274 | * Driver sets up transmit power for various rates via REPLY_TX_PWR_TBL_CMD. |
1275 | * This command must be executed after every RXON command, before Tx can occur. | 1275 | * This command must be executed after every RXON command, before Tx can occur. |
1276 | *****************************************************************************/ | 1276 | *****************************************************************************/ |
1277 | 1277 | ||
@@ -1754,7 +1754,7 @@ struct il_compressed_ba_resp { | |||
1754 | } __packed; | 1754 | } __packed; |
1755 | 1755 | ||
1756 | /* | 1756 | /* |
1757 | * REPLY_TX_PWR_TABLE_CMD = 0x97 (command, has simple generic response) | 1757 | * REPLY_TX_PWR_TBL_CMD = 0x97 (command, has simple generic response) |
1758 | * | 1758 | * |
1759 | * See details under "TXPOWER" in iwl-4965-hw.h. | 1759 | * See details under "TXPOWER" in iwl-4965-hw.h. |
1760 | */ | 1760 | */ |
@@ -1909,7 +1909,7 @@ struct il_link_qual_agg_params { | |||
1909 | * procedures are possible, and may work better for particular environments. | 1909 | * procedures are possible, and may work better for particular environments. |
1910 | * | 1910 | * |
1911 | * | 1911 | * |
1912 | * FILLING THE RATE TABLE | 1912 | * FILLING THE RATE TBL |
1913 | * | 1913 | * |
1914 | * Given a particular initial rate and mode, as determined by the rate | 1914 | * Given a particular initial rate and mode, as determined by the rate |
1915 | * scaling algorithm described below, the Linux driver uses the following | 1915 | * scaling algorithm described below, the Linux driver uses the following |
@@ -2263,7 +2263,7 @@ struct il_spectrum_notification { | |||
2263 | * struct il_powertable_cmd - Power Table Command | 2263 | * struct il_powertable_cmd - Power Table Command |
2264 | * @flags: See below: | 2264 | * @flags: See below: |
2265 | * | 2265 | * |
2266 | * POWER_TABLE_CMD = 0x77 (command, has simple generic response) | 2266 | * POWER_TBL_CMD = 0x77 (command, has simple generic response) |
2267 | * | 2267 | * |
2268 | * PM allow: | 2268 | * PM allow: |
2269 | * bit 0 - '0' Driver not allow power management | 2269 | * bit 0 - '0' Driver not allow power management |
@@ -2290,7 +2290,7 @@ struct il_spectrum_notification { | |||
2290 | * '10' force xtal sleep | 2290 | * '10' force xtal sleep |
2291 | * '11' Illegal set | 2291 | * '11' Illegal set |
2292 | * | 2292 | * |
2293 | * NOTE: if sleep_interval[SLEEP_INTRVL_TABLE_SIZE-1] > DTIM period then | 2293 | * NOTE: if sleep_interval[SLEEP_INTRVL_TBL_SIZE-1] > DTIM period then |
2294 | * ucode assume sleep over DTIM is allowed and we don't need to wake up | 2294 | * ucode assume sleep over DTIM is allowed and we don't need to wake up |
2295 | * for every DTIM. | 2295 | * for every DTIM. |
2296 | */ | 2296 | */ |
@@ -3219,7 +3219,7 @@ struct il_missed_beacon_notif { | |||
3219 | /* | 3219 | /* |
3220 | * Table entries in SENSITIVITY_CMD (struct il_sensitivity_cmd) | 3220 | * Table entries in SENSITIVITY_CMD (struct il_sensitivity_cmd) |
3221 | */ | 3221 | */ |
3222 | #define HD_TABLE_SIZE (11) /* number of entries */ | 3222 | #define HD_TBL_SIZE (11) /* number of entries */ |
3223 | #define HD_MIN_ENERGY_CCK_DET_IDX (0) /* table idxes */ | 3223 | #define HD_MIN_ENERGY_CCK_DET_IDX (0) /* table idxes */ |
3224 | #define HD_MIN_ENERGY_OFDM_DET_IDX (1) | 3224 | #define HD_MIN_ENERGY_OFDM_DET_IDX (1) |
3225 | #define HD_AUTO_CORR32_X1_TH_ADD_MIN_IDX (2) | 3225 | #define HD_AUTO_CORR32_X1_TH_ADD_MIN_IDX (2) |
@@ -3233,8 +3233,8 @@ struct il_missed_beacon_notif { | |||
3233 | #define HD_OFDM_ENERGY_TH_IN_IDX (10) | 3233 | #define HD_OFDM_ENERGY_TH_IN_IDX (10) |
3234 | 3234 | ||
3235 | /* Control field in struct il_sensitivity_cmd */ | 3235 | /* Control field in struct il_sensitivity_cmd */ |
3236 | #define SENSITIVITY_CMD_CONTROL_DEFAULT_TABLE cpu_to_le16(0) | 3236 | #define SENSITIVITY_CMD_CONTROL_DEFAULT_TBL cpu_to_le16(0) |
3237 | #define SENSITIVITY_CMD_CONTROL_WORK_TABLE cpu_to_le16(1) | 3237 | #define SENSITIVITY_CMD_CONTROL_WORK_TBL cpu_to_le16(1) |
3238 | 3238 | ||
3239 | /** | 3239 | /** |
3240 | * struct il_sensitivity_cmd | 3240 | * struct il_sensitivity_cmd |
@@ -3245,7 +3245,7 @@ struct il_missed_beacon_notif { | |||
3245 | */ | 3245 | */ |
3246 | struct il_sensitivity_cmd { | 3246 | struct il_sensitivity_cmd { |
3247 | __le16 control; /* always use "1" */ | 3247 | __le16 control; /* always use "1" */ |
3248 | __le16 table[HD_TABLE_SIZE]; /* use HD_* as idx */ | 3248 | __le16 table[HD_TBL_SIZE]; /* use HD_* as idx */ |
3249 | } __packed; | 3249 | } __packed; |
3250 | 3250 | ||
3251 | 3251 | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-csr.h b/drivers/net/wireless/iwlegacy/iwl-csr.h index 34edec329367..4db04297560c 100644 --- a/drivers/net/wireless/iwlegacy/iwl-csr.h +++ b/drivers/net/wireless/iwlegacy/iwl-csr.h | |||
@@ -357,7 +357,7 @@ | |||
357 | /* HPET MEM debug */ | 357 | /* HPET MEM debug */ |
358 | #define CSR_DBG_HPET_MEM_REG_VAL (0xFFFF0000) | 358 | #define CSR_DBG_HPET_MEM_REG_VAL (0xFFFF0000) |
359 | 359 | ||
360 | /* DRAM INT TABLE */ | 360 | /* DRAM INT TBL */ |
361 | #define CSR_DRAM_INT_TBL_ENABLE (1 << 31) | 361 | #define CSR_DRAM_INT_TBL_ENABLE (1 << 31) |
362 | #define CSR_DRAM_INIT_TBL_WRAP_CHECK (1 << 27) | 362 | #define CSR_DRAM_INIT_TBL_WRAP_CHECK (1 << 27) |
363 | 363 | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-dev.h b/drivers/net/wireless/iwlegacy/iwl-dev.h index 2555f9fe9be2..7c86d198e89d 100644 --- a/drivers/net/wireless/iwlegacy/iwl-dev.h +++ b/drivers/net/wireless/iwlegacy/iwl-dev.h | |||
@@ -1060,7 +1060,7 @@ struct il_priv { | |||
1060 | u8 start_calib; | 1060 | u8 start_calib; |
1061 | struct il_sensitivity_data sensitivity_data; | 1061 | struct il_sensitivity_data sensitivity_data; |
1062 | struct il_chain_noise_data chain_noise_data; | 1062 | struct il_chain_noise_data chain_noise_data; |
1063 | __le16 sensitivity_tbl[HD_TABLE_SIZE]; | 1063 | __le16 sensitivity_tbl[HD_TBL_SIZE]; |
1064 | 1064 | ||
1065 | struct il_ht_config current_ht_config; | 1065 | struct il_ht_config current_ht_config; |
1066 | 1066 | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-hcmd.c b/drivers/net/wireless/iwlegacy/iwl-hcmd.c index e63777b2f6e9..0b11f2f549ca 100644 --- a/drivers/net/wireless/iwlegacy/iwl-hcmd.c +++ b/drivers/net/wireless/iwlegacy/iwl-hcmd.c | |||
@@ -58,7 +58,7 @@ const char *il_get_cmd_string(u8 cmd) | |||
58 | IL_CMD(CHANNEL_SWITCH_NOTIFICATION); | 58 | IL_CMD(CHANNEL_SWITCH_NOTIFICATION); |
59 | IL_CMD(REPLY_SPECTRUM_MEASUREMENT_CMD); | 59 | IL_CMD(REPLY_SPECTRUM_MEASUREMENT_CMD); |
60 | IL_CMD(SPECTRUM_MEASURE_NOTIFICATION); | 60 | IL_CMD(SPECTRUM_MEASURE_NOTIFICATION); |
61 | IL_CMD(POWER_TABLE_CMD); | 61 | IL_CMD(POWER_TBL_CMD); |
62 | IL_CMD(PM_SLEEP_NOTIFICATION); | 62 | IL_CMD(PM_SLEEP_NOTIFICATION); |
63 | IL_CMD(PM_DEBUG_STATISTIC_NOTIFIC); | 63 | IL_CMD(PM_DEBUG_STATISTIC_NOTIFIC); |
64 | IL_CMD(REPLY_SCAN_CMD); | 64 | IL_CMD(REPLY_SCAN_CMD); |
@@ -68,7 +68,7 @@ const char *il_get_cmd_string(u8 cmd) | |||
68 | IL_CMD(SCAN_COMPLETE_NOTIFICATION); | 68 | IL_CMD(SCAN_COMPLETE_NOTIFICATION); |
69 | IL_CMD(BEACON_NOTIFICATION); | 69 | IL_CMD(BEACON_NOTIFICATION); |
70 | IL_CMD(REPLY_TX_BEACON); | 70 | IL_CMD(REPLY_TX_BEACON); |
71 | IL_CMD(REPLY_TX_PWR_TABLE_CMD); | 71 | IL_CMD(REPLY_TX_PWR_TBL_CMD); |
72 | IL_CMD(REPLY_BT_CONFIG); | 72 | IL_CMD(REPLY_BT_CONFIG); |
73 | IL_CMD(REPLY_STATISTICS_CMD); | 73 | IL_CMD(REPLY_STATISTICS_CMD); |
74 | IL_CMD(STATISTICS_NOTIFICATION); | 74 | IL_CMD(STATISTICS_NOTIFICATION); |
diff --git a/drivers/net/wireless/iwlegacy/iwl-legacy-rs.h b/drivers/net/wireless/iwlegacy/iwl-legacy-rs.h index bc09a5dc6d89..58e04cb8b0ed 100644 --- a/drivers/net/wireless/iwlegacy/iwl-legacy-rs.h +++ b/drivers/net/wireless/iwlegacy/iwl-legacy-rs.h | |||
@@ -80,19 +80,19 @@ enum { | |||
80 | }; | 80 | }; |
81 | 81 | ||
82 | enum { | 82 | enum { |
83 | RATE_6M_IDX_TABLE = 0, | 83 | RATE_6M_IDX_TBL = 0, |
84 | RATE_9M_IDX_TABLE, | 84 | RATE_9M_IDX_TBL, |
85 | RATE_12M_IDX_TABLE, | 85 | RATE_12M_IDX_TBL, |
86 | RATE_18M_IDX_TABLE, | 86 | RATE_18M_IDX_TBL, |
87 | RATE_24M_IDX_TABLE, | 87 | RATE_24M_IDX_TBL, |
88 | RATE_36M_IDX_TABLE, | 88 | RATE_36M_IDX_TBL, |
89 | RATE_48M_IDX_TABLE, | 89 | RATE_48M_IDX_TBL, |
90 | RATE_54M_IDX_TABLE, | 90 | RATE_54M_IDX_TBL, |
91 | RATE_1M_IDX_TABLE, | 91 | RATE_1M_IDX_TBL, |
92 | RATE_2M_IDX_TABLE, | 92 | RATE_2M_IDX_TBL, |
93 | RATE_5M_IDX_TABLE, | 93 | RATE_5M_IDX_TBL, |
94 | RATE_11M_IDX_TABLE, | 94 | RATE_11M_IDX_TBL, |
95 | RATE_INVM_IDX_TABLE = RATE_INVM_IDX - 1, | 95 | RATE_INVM_IDX_TBL = RATE_INVM_IDX - 1, |
96 | }; | 96 | }; |
97 | 97 | ||
98 | enum { | 98 | enum { |
@@ -213,11 +213,11 @@ enum { | |||
213 | * searching for a new modulation mode */ | 213 | * searching for a new modulation mode */ |
214 | #define IL_LEGACY_FAILURE_LIMIT 160 | 214 | #define IL_LEGACY_FAILURE_LIMIT 160 |
215 | #define IL_LEGACY_SUCCESS_LIMIT 480 | 215 | #define IL_LEGACY_SUCCESS_LIMIT 480 |
216 | #define IL_LEGACY_TABLE_COUNT 160 | 216 | #define IL_LEGACY_TBL_COUNT 160 |
217 | 217 | ||
218 | #define IL_NONE_LEGACY_FAILURE_LIMIT 400 | 218 | #define IL_NONE_LEGACY_FAILURE_LIMIT 400 |
219 | #define IL_NONE_LEGACY_SUCCESS_LIMIT 4500 | 219 | #define IL_NONE_LEGACY_SUCCESS_LIMIT 4500 |
220 | #define IL_NONE_LEGACY_TABLE_COUNT 1500 | 220 | #define IL_NONE_LEGACY_TBL_COUNT 1500 |
221 | 221 | ||
222 | /* Success ratio (ACKed / attempted tx frames) values (perfect is 128 * 100) */ | 222 | /* Success ratio (ACKed / attempted tx frames) values (perfect is 128 * 100) */ |
223 | #define IL_RS_GOOD_RATIO 12800 /* 100% */ | 223 | #define IL_RS_GOOD_RATIO 12800 /* 100% */ |
diff --git a/drivers/net/wireless/iwlegacy/iwl-power.c b/drivers/net/wireless/iwlegacy/iwl-power.c index 6c6e5e70c96f..051623ab1147 100644 --- a/drivers/net/wireless/iwlegacy/iwl-power.c +++ b/drivers/net/wireless/iwlegacy/iwl-power.c | |||
@@ -88,7 +88,7 @@ il_set_power(struct il_priv *il, struct il_powertable_cmd *cmd) | |||
88 | le32_to_cpu(cmd->sleep_interval[3]), | 88 | le32_to_cpu(cmd->sleep_interval[3]), |
89 | le32_to_cpu(cmd->sleep_interval[4])); | 89 | le32_to_cpu(cmd->sleep_interval[4])); |
90 | 90 | ||
91 | return il_send_cmd_pdu(il, POWER_TABLE_CMD, | 91 | return il_send_cmd_pdu(il, POWER_TBL_CMD, |
92 | sizeof(struct il_powertable_cmd), cmd); | 92 | sizeof(struct il_powertable_cmd), cmd); |
93 | } | 93 | } |
94 | 94 | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-prph.h b/drivers/net/wireless/iwlegacy/iwl-prph.h index 8128c87262e9..e34d9073a99e 100644 --- a/drivers/net/wireless/iwlegacy/iwl-prph.h +++ b/drivers/net/wireless/iwlegacy/iwl-prph.h | |||
@@ -189,7 +189,7 @@ | |||
189 | * procedure. | 189 | * procedure. |
190 | * | 190 | * |
191 | * This save/restore method is mostly for autonomous power management during | 191 | * This save/restore method is mostly for autonomous power management during |
192 | * normal operation (result of POWER_TABLE_CMD). Platform suspend/resume and | 192 | * normal operation (result of POWER_TBL_CMD). Platform suspend/resume and |
193 | * RFKILL should use complete restarts (with total re-initialization) of uCode, | 193 | * RFKILL should use complete restarts (with total re-initialization) of uCode, |
194 | * allowing total shutdown (including BSM memory). | 194 | * allowing total shutdown (including BSM memory). |
195 | * | 195 | * |
@@ -494,7 +494,7 @@ | |||
494 | * When queue is in Scheduler-ACK mode, frames placed in a that queue must be | 494 | * When queue is in Scheduler-ACK mode, frames placed in a that queue must be |
495 | * for only one combination of receiver address (RA) and traffic ID (TID), i.e. | 495 | * for only one combination of receiver address (RA) and traffic ID (TID), i.e. |
496 | * one QOS priority level destined for one station (for this wireless link, | 496 | * one QOS priority level destined for one station (for this wireless link, |
497 | * not final destination). The SCD_TRANSLATE_TABLE area provides 16 16-bit | 497 | * not final destination). The SCD_TRANSLATE_TBL area provides 16 16-bit |
498 | * mappings, one for each of the 16 queues. If queue is not in Scheduler-ACK | 498 | * mappings, one for each of the 16 queues. If queue is not in Scheduler-ACK |
499 | * mode, the device ignores the mapping value. | 499 | * mode, the device ignores the mapping value. |
500 | * | 500 | * |
diff --git a/drivers/net/wireless/iwlegacy/iwl-sta.c b/drivers/net/wireless/iwlegacy/iwl-sta.c index a7fe9ea80aa5..ffb966bf836d 100644 --- a/drivers/net/wireless/iwlegacy/iwl-sta.c +++ b/drivers/net/wireless/iwlegacy/iwl-sta.c | |||
@@ -83,7 +83,7 @@ static int il_process_add_sta_resp(struct il_priv *il, | |||
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; |
86 | case ADD_STA_NO_ROOM_IN_TABLE: | 86 | case ADD_STA_NO_ROOM_IN_TBL: |
87 | IL_ERR("Adding station %d failed, no room in table.\n", | 87 | IL_ERR("Adding station %d failed, no room in table.\n", |
88 | sta_id); | 88 | sta_id); |
89 | break; | 89 | break; |
diff --git a/drivers/net/wireless/iwlegacy/iwl3945-base.c b/drivers/net/wireless/iwlegacy/iwl3945-base.c index 924420870a2f..41104e72d299 100644 --- a/drivers/net/wireless/iwlegacy/iwl3945-base.c +++ b/drivers/net/wireless/iwlegacy/iwl3945-base.c | |||
@@ -885,7 +885,7 @@ static void il3945_setup_rx_handlers(struct il_priv *il) | |||
885 | * Rx theory of operation | 885 | * Rx theory of operation |
886 | * | 886 | * |
887 | * The host allocates 32 DMA target addresses and passes the host address | 887 | * The host allocates 32 DMA target addresses and passes the host address |
888 | * to the firmware at register IL_RFDS_TABLE_LOWER + N * RFD_SIZE where N is | 888 | * to the firmware at register IL_RFDS_TBL_LOWER + N * RFD_SIZE where N is |
889 | * 0 to 31 | 889 | * 0 to 31 |
890 | * | 890 | * |
891 | * Rx Queue Indexes | 891 | * Rx Queue Indexes |
diff --git a/drivers/net/wireless/iwlegacy/iwl4965-base.c b/drivers/net/wireless/iwlegacy/iwl4965-base.c index afdec783333c..043d51e9d59e 100644 --- a/drivers/net/wireless/iwlegacy/iwl4965-base.c +++ b/drivers/net/wireless/iwlegacy/iwl4965-base.c | |||
@@ -1470,7 +1470,7 @@ static const char * const desc_lookup_text[] = { | |||
1470 | "HW_ERROR_TUNE_LOCK", | 1470 | "HW_ERROR_TUNE_LOCK", |
1471 | "HW_ERROR_TEMPERATURE", | 1471 | "HW_ERROR_TEMPERATURE", |
1472 | "ILLEGAL_CHAN_FREQ", | 1472 | "ILLEGAL_CHAN_FREQ", |
1473 | "VCC_NOT_STABLE", | 1473 | "VCC_NOT_STBL", |
1474 | "FH_ERROR", | 1474 | "FH_ERROR", |
1475 | "NMI_INTERRUPT_HOST", | 1475 | "NMI_INTERRUPT_HOST", |
1476 | "NMI_INTERRUPT_ACTION_PT", | 1476 | "NMI_INTERRUPT_ACTION_PT", |