diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 07:09:01 -0500 |
---|---|---|
committer | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-11-15 07:09:01 -0500 |
commit | a6766ccdaf9cc80d565672516d429a562d1a732d (patch) | |
tree | d9a98acc6eef19ef41a7ef053117ba7df1c53324 /drivers/net/wireless/iwlegacy/4965-mac.c | |
parent | 6bbb1370c3083190cae8487c2c61c0d24f869e68 (diff) |
iwlegacy: s/STATUS_/S_/
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/4965-mac.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/4965-mac.c | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/drivers/net/wireless/iwlegacy/4965-mac.c b/drivers/net/wireless/iwlegacy/4965-mac.c index ee084a885adc..c4198bd42889 100644 --- a/drivers/net/wireless/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/iwlegacy/4965-mac.c | |||
@@ -90,7 +90,7 @@ void il4965_check_abort_status(struct il_priv *il, | |||
90 | { | 90 | { |
91 | if (frame_count == 1 && status == TX_STATUS_FAIL_RFKILL_FLUSH) { | 91 | if (frame_count == 1 && status == TX_STATUS_FAIL_RFKILL_FLUSH) { |
92 | IL_ERR("Tx flush command to flush out all frames\n"); | 92 | IL_ERR("Tx flush command to flush out all frames\n"); |
93 | if (!test_bit(STATUS_EXIT_PENDING, &il->status)) | 93 | if (!test_bit(S_EXIT_PENDING, &il->status)) |
94 | queue_work(il->workqueue, &il->tx_flush); | 94 | queue_work(il->workqueue, &il->tx_flush); |
95 | } | 95 | } |
96 | } | 96 | } |
@@ -246,7 +246,7 @@ int il4965_hw_nic_init(struct il_priv *il) | |||
246 | } else | 246 | } else |
247 | il4965_txq_ctx_reset(il); | 247 | il4965_txq_ctx_reset(il); |
248 | 248 | ||
249 | set_bit(STATUS_INIT, &il->status); | 249 | set_bit(S_INIT, &il->status); |
250 | 250 | ||
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |
@@ -966,7 +966,7 @@ int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif) | |||
966 | scan->tx_cmd.rate_n_flags = il4965_hw_set_rate_n_flags(rate, rate_flags); | 966 | scan->tx_cmd.rate_n_flags = il4965_hw_set_rate_n_flags(rate, rate_flags); |
967 | 967 | ||
968 | /* In power save mode use one chain, otherwise use all chains */ | 968 | /* In power save mode use one chain, otherwise use all chains */ |
969 | if (test_bit(STATUS_POWER_PMI, &il->status)) { | 969 | if (test_bit(S_POWER_PMI, &il->status)) { |
970 | /* rx_ant has been set to all valid chains previously */ | 970 | /* rx_ant has been set to all valid chains previously */ |
971 | active_chains = rx_ant & | 971 | active_chains = rx_ant & |
972 | ((u8)(il->chain_noise_data.active_chains)); | 972 | ((u8)(il->chain_noise_data.active_chains)); |
@@ -1010,11 +1010,11 @@ int il4965_request_scan(struct il_priv *il, struct ieee80211_vif *vif) | |||
1010 | cmd.data = scan; | 1010 | cmd.data = scan; |
1011 | scan->len = cpu_to_le16(cmd.len); | 1011 | scan->len = cpu_to_le16(cmd.len); |
1012 | 1012 | ||
1013 | set_bit(STATUS_SCAN_HW, &il->status); | 1013 | set_bit(S_SCAN_HW, &il->status); |
1014 | 1014 | ||
1015 | ret = il_send_cmd_sync(il, &cmd); | 1015 | ret = il_send_cmd_sync(il, &cmd); |
1016 | if (ret) | 1016 | if (ret) |
1017 | clear_bit(STATUS_SCAN_HW, &il->status); | 1017 | clear_bit(S_SCAN_HW, &il->status); |
1018 | 1018 | ||
1019 | return ret; | 1019 | return ret; |
1020 | } | 1020 | } |
@@ -1120,7 +1120,7 @@ static u8 il4965_count_chain_bitmap(u32 chain_bitmap) | |||
1120 | void il4965_set_rxon_chain(struct il_priv *il, struct il_rxon_context *ctx) | 1120 | void il4965_set_rxon_chain(struct il_priv *il, struct il_rxon_context *ctx) |
1121 | { | 1121 | { |
1122 | bool is_single = il4965_is_single_rx_stream(il); | 1122 | bool is_single = il4965_is_single_rx_stream(il); |
1123 | bool is_cam = !test_bit(STATUS_POWER_PMI, &il->status); | 1123 | bool is_cam = !test_bit(S_POWER_PMI, &il->status); |
1124 | u8 idle_rx_cnt, active_rx_cnt, valid_rx_cnt; | 1124 | u8 idle_rx_cnt, active_rx_cnt, valid_rx_cnt; |
1125 | u32 active_chains; | 1125 | u32 active_chains; |
1126 | u16 rx_chain; | 1126 | u16 rx_chain; |
@@ -1258,7 +1258,7 @@ void il4965_rx_missed_beacon_notif(struct il_priv *il, | |||
1258 | le32_to_cpu(missed_beacon->total_missed_becons), | 1258 | le32_to_cpu(missed_beacon->total_missed_becons), |
1259 | le32_to_cpu(missed_beacon->num_recvd_beacons), | 1259 | le32_to_cpu(missed_beacon->num_recvd_beacons), |
1260 | le32_to_cpu(missed_beacon->num_expected_beacons)); | 1260 | le32_to_cpu(missed_beacon->num_expected_beacons)); |
1261 | if (!test_bit(STATUS_SCANNING, &il->status)) | 1261 | if (!test_bit(S_SCANNING, &il->status)) |
1262 | il4965_init_sensitivity(il); | 1262 | il4965_init_sensitivity(il); |
1263 | } | 1263 | } |
1264 | } | 1264 | } |
@@ -1378,7 +1378,7 @@ void il4965_rx_stats(struct il_priv *il, | |||
1378 | memcpy(&il->_4965.stats, &pkt->u.stats, | 1378 | memcpy(&il->_4965.stats, &pkt->u.stats, |
1379 | sizeof(il->_4965.stats)); | 1379 | sizeof(il->_4965.stats)); |
1380 | 1380 | ||
1381 | set_bit(STATUS_STATISTICS, &il->status); | 1381 | set_bit(S_STATISTICS, &il->status); |
1382 | 1382 | ||
1383 | /* Reschedule the stats timer to occur in | 1383 | /* Reschedule the stats timer to occur in |
1384 | * REG_RECALIB_PERIOD seconds to ensure we get a | 1384 | * REG_RECALIB_PERIOD seconds to ensure we get a |
@@ -1387,7 +1387,7 @@ void il4965_rx_stats(struct il_priv *il, | |||
1387 | mod_timer(&il->stats_periodic, jiffies + | 1387 | mod_timer(&il->stats_periodic, jiffies + |
1388 | msecs_to_jiffies(REG_RECALIB_PERIOD * 1000)); | 1388 | msecs_to_jiffies(REG_RECALIB_PERIOD * 1000)); |
1389 | 1389 | ||
1390 | if (unlikely(!test_bit(STATUS_SCANNING, &il->status)) && | 1390 | if (unlikely(!test_bit(S_SCANNING, &il->status)) && |
1391 | (pkt->hdr.cmd == STATISTICS_NOTIFICATION)) { | 1391 | (pkt->hdr.cmd == STATISTICS_NOTIFICATION)) { |
1392 | il4965_rx_calc_noise(il); | 1392 | il4965_rx_calc_noise(il); |
1393 | queue_work(il->workqueue, &il->run_time_calib_work); | 1393 | queue_work(il->workqueue, &il->run_time_calib_work); |
@@ -3809,7 +3809,7 @@ static void il4965_bg_stats_periodic(unsigned long data) | |||
3809 | { | 3809 | { |
3810 | struct il_priv *il = (struct il_priv *)data; | 3810 | struct il_priv *il = (struct il_priv *)data; |
3811 | 3811 | ||
3812 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 3812 | if (test_bit(S_EXIT_PENDING, &il->status)) |
3813 | return; | 3813 | return; |
3814 | 3814 | ||
3815 | /* dont send host command if rf-kill is on */ | 3815 | /* dont send host command if rf-kill is on */ |
@@ -3895,17 +3895,17 @@ static void il4965_rx_card_state_notif(struct il_priv *il, | |||
3895 | il4965_perform_ct_kill_task(il); | 3895 | il4965_perform_ct_kill_task(il); |
3896 | 3896 | ||
3897 | if (flags & HW_CARD_DISABLED) | 3897 | if (flags & HW_CARD_DISABLED) |
3898 | set_bit(STATUS_RF_KILL_HW, &il->status); | 3898 | set_bit(S_RF_KILL_HW, &il->status); |
3899 | else | 3899 | else |
3900 | clear_bit(STATUS_RF_KILL_HW, &il->status); | 3900 | clear_bit(S_RF_KILL_HW, &il->status); |
3901 | 3901 | ||
3902 | if (!(flags & RXON_CARD_DISABLED)) | 3902 | if (!(flags & RXON_CARD_DISABLED)) |
3903 | il_scan_cancel(il); | 3903 | il_scan_cancel(il); |
3904 | 3904 | ||
3905 | if ((test_bit(STATUS_RF_KILL_HW, &status) != | 3905 | if ((test_bit(S_RF_KILL_HW, &status) != |
3906 | test_bit(STATUS_RF_KILL_HW, &il->status))) | 3906 | test_bit(S_RF_KILL_HW, &il->status))) |
3907 | wiphy_rfkill_set_hw_state(il->hw->wiphy, | 3907 | wiphy_rfkill_set_hw_state(il->hw->wiphy, |
3908 | test_bit(STATUS_RF_KILL_HW, &il->status)); | 3908 | test_bit(S_RF_KILL_HW, &il->status)); |
3909 | else | 3909 | else |
3910 | wake_up(&il->wait_command_queue); | 3910 | wake_up(&il->wait_command_queue); |
3911 | } | 3911 | } |
@@ -4199,11 +4199,11 @@ static void il4965_irq_tasklet(struct il_priv *il) | |||
4199 | * is killed. Hence update the killswitch state here. The | 4199 | * is killed. Hence update the killswitch state here. The |
4200 | * rfkill handler will care about restarting if needed. | 4200 | * rfkill handler will care about restarting if needed. |
4201 | */ | 4201 | */ |
4202 | if (!test_bit(STATUS_ALIVE, &il->status)) { | 4202 | if (!test_bit(S_ALIVE, &il->status)) { |
4203 | if (hw_rf_kill) | 4203 | if (hw_rf_kill) |
4204 | set_bit(STATUS_RF_KILL_HW, &il->status); | 4204 | set_bit(S_RF_KILL_HW, &il->status); |
4205 | else | 4205 | else |
4206 | clear_bit(STATUS_RF_KILL_HW, &il->status); | 4206 | clear_bit(S_RF_KILL_HW, &il->status); |
4207 | wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill); | 4207 | wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill); |
4208 | } | 4208 | } |
4209 | 4209 | ||
@@ -4272,7 +4272,7 @@ static void il4965_irq_tasklet(struct il_priv *il) | |||
4272 | 4272 | ||
4273 | /* Re-enable all interrupts */ | 4273 | /* Re-enable all interrupts */ |
4274 | /* only Re-enable if disabled by irq */ | 4274 | /* only Re-enable if disabled by irq */ |
4275 | if (test_bit(STATUS_INT_ENABLED, &il->status)) | 4275 | if (test_bit(S_INT_ENABLED, &il->status)) |
4276 | il_enable_interrupts(il); | 4276 | il_enable_interrupts(il); |
4277 | /* Re-enable RF_KILL if it occurred */ | 4277 | /* Re-enable RF_KILL if it occurred */ |
4278 | else if (handled & CSR_INT_BIT_RF_KILL) | 4278 | else if (handled & CSR_INT_BIT_RF_KILL) |
@@ -5079,7 +5079,7 @@ static void il4965_alive_start(struct il_priv *il) | |||
5079 | 5079 | ||
5080 | 5080 | ||
5081 | /* After the ALIVE response, we can send host commands to the uCode */ | 5081 | /* After the ALIVE response, we can send host commands to the uCode */ |
5082 | set_bit(STATUS_ALIVE, &il->status); | 5082 | set_bit(S_ALIVE, &il->status); |
5083 | 5083 | ||
5084 | /* Enable watchdog to monitor the driver tx queues */ | 5084 | /* Enable watchdog to monitor the driver tx queues */ |
5085 | il_setup_watchdog(il); | 5085 | il_setup_watchdog(il); |
@@ -5110,7 +5110,7 @@ static void il4965_alive_start(struct il_priv *il) | |||
5110 | 5110 | ||
5111 | il4965_reset_run_time_calib(il); | 5111 | il4965_reset_run_time_calib(il); |
5112 | 5112 | ||
5113 | set_bit(STATUS_READY, &il->status); | 5113 | set_bit(S_READY, &il->status); |
5114 | 5114 | ||
5115 | /* Configure the adapter for unassociated operation */ | 5115 | /* Configure the adapter for unassociated operation */ |
5116 | il_commit_rxon(il, ctx); | 5116 | il_commit_rxon(il, ctx); |
@@ -5141,9 +5141,9 @@ static void __il4965_down(struct il_priv *il) | |||
5141 | 5141 | ||
5142 | il_scan_cancel_timeout(il, 200); | 5142 | il_scan_cancel_timeout(il, 200); |
5143 | 5143 | ||
5144 | exit_pending = test_and_set_bit(STATUS_EXIT_PENDING, &il->status); | 5144 | exit_pending = test_and_set_bit(S_EXIT_PENDING, &il->status); |
5145 | 5145 | ||
5146 | /* Stop TX queues watchdog. We need to have STATUS_EXIT_PENDING bit set | 5146 | /* Stop TX queues watchdog. We need to have S_EXIT_PENDING bit set |
5147 | * to prevent rearm timer */ | 5147 | * to prevent rearm timer */ |
5148 | del_timer_sync(&il->watchdog); | 5148 | del_timer_sync(&il->watchdog); |
5149 | 5149 | ||
@@ -5157,7 +5157,7 @@ static void __il4965_down(struct il_priv *il) | |||
5157 | /* Wipe out the EXIT_PENDING status bit if we are not actually | 5157 | /* Wipe out the EXIT_PENDING status bit if we are not actually |
5158 | * exiting the module */ | 5158 | * exiting the module */ |
5159 | if (!exit_pending) | 5159 | if (!exit_pending) |
5160 | clear_bit(STATUS_EXIT_PENDING, &il->status); | 5160 | clear_bit(S_EXIT_PENDING, &il->status); |
5161 | 5161 | ||
5162 | /* stop and reset the on-board processor */ | 5162 | /* stop and reset the on-board processor */ |
5163 | _il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET); | 5163 | _il_wr(il, CSR_RESET, CSR_RESET_REG_FLAG_NEVO_RESET); |
@@ -5174,25 +5174,25 @@ static void __il4965_down(struct il_priv *il) | |||
5174 | /* If we have not previously called il_init() then | 5174 | /* If we have not previously called il_init() then |
5175 | * clear all bits but the RF Kill bit and return */ | 5175 | * clear all bits but the RF Kill bit and return */ |
5176 | if (!il_is_init(il)) { | 5176 | if (!il_is_init(il)) { |
5177 | il->status = test_bit(STATUS_RF_KILL_HW, &il->status) << | 5177 | il->status = test_bit(S_RF_KILL_HW, &il->status) << |
5178 | STATUS_RF_KILL_HW | | 5178 | S_RF_KILL_HW | |
5179 | test_bit(STATUS_GEO_CONFIGURED, &il->status) << | 5179 | test_bit(S_GEO_CONFIGURED, &il->status) << |
5180 | STATUS_GEO_CONFIGURED | | 5180 | S_GEO_CONFIGURED | |
5181 | test_bit(STATUS_EXIT_PENDING, &il->status) << | 5181 | test_bit(S_EXIT_PENDING, &il->status) << |
5182 | STATUS_EXIT_PENDING; | 5182 | S_EXIT_PENDING; |
5183 | goto exit; | 5183 | goto exit; |
5184 | } | 5184 | } |
5185 | 5185 | ||
5186 | /* ...otherwise clear out all the status bits but the RF Kill | 5186 | /* ...otherwise clear out all the status bits but the RF Kill |
5187 | * bit and continue taking the NIC down. */ | 5187 | * bit and continue taking the NIC down. */ |
5188 | il->status &= test_bit(STATUS_RF_KILL_HW, &il->status) << | 5188 | il->status &= test_bit(S_RF_KILL_HW, &il->status) << |
5189 | STATUS_RF_KILL_HW | | 5189 | S_RF_KILL_HW | |
5190 | test_bit(STATUS_GEO_CONFIGURED, &il->status) << | 5190 | test_bit(S_GEO_CONFIGURED, &il->status) << |
5191 | STATUS_GEO_CONFIGURED | | 5191 | S_GEO_CONFIGURED | |
5192 | test_bit(STATUS_FW_ERROR, &il->status) << | 5192 | test_bit(S_FW_ERROR, &il->status) << |
5193 | STATUS_FW_ERROR | | 5193 | S_FW_ERROR | |
5194 | test_bit(STATUS_EXIT_PENDING, &il->status) << | 5194 | test_bit(S_EXIT_PENDING, &il->status) << |
5195 | STATUS_EXIT_PENDING; | 5195 | S_EXIT_PENDING; |
5196 | 5196 | ||
5197 | il4965_txq_ctx_stop(il); | 5197 | il4965_txq_ctx_stop(il); |
5198 | il4965_rxq_stop(il); | 5198 | il4965_rxq_stop(il); |
@@ -5283,7 +5283,7 @@ static int __il4965_up(struct il_priv *il) | |||
5283 | int i; | 5283 | int i; |
5284 | int ret; | 5284 | int ret; |
5285 | 5285 | ||
5286 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) { | 5286 | if (test_bit(S_EXIT_PENDING, &il->status)) { |
5287 | IL_WARN("Exit pending; will not bring the NIC up\n"); | 5287 | IL_WARN("Exit pending; will not bring the NIC up\n"); |
5288 | return -EIO; | 5288 | return -EIO; |
5289 | } | 5289 | } |
@@ -5309,9 +5309,9 @@ static int __il4965_up(struct il_priv *il) | |||
5309 | /* If platform's RF_KILL switch is NOT set to KILL */ | 5309 | /* If platform's RF_KILL switch is NOT set to KILL */ |
5310 | if (_il_rd(il, | 5310 | if (_il_rd(il, |
5311 | CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) | 5311 | CSR_GP_CNTRL) & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) |
5312 | clear_bit(STATUS_RF_KILL_HW, &il->status); | 5312 | clear_bit(S_RF_KILL_HW, &il->status); |
5313 | else | 5313 | else |
5314 | set_bit(STATUS_RF_KILL_HW, &il->status); | 5314 | set_bit(S_RF_KILL_HW, &il->status); |
5315 | 5315 | ||
5316 | if (il_is_rfkill(il)) { | 5316 | if (il_is_rfkill(il)) { |
5317 | wiphy_rfkill_set_hw_state(il->hw->wiphy, true); | 5317 | wiphy_rfkill_set_hw_state(il->hw->wiphy, true); |
@@ -5372,9 +5372,9 @@ static int __il4965_up(struct il_priv *il) | |||
5372 | return 0; | 5372 | return 0; |
5373 | } | 5373 | } |
5374 | 5374 | ||
5375 | set_bit(STATUS_EXIT_PENDING, &il->status); | 5375 | set_bit(S_EXIT_PENDING, &il->status); |
5376 | __il4965_down(il); | 5376 | __il4965_down(il); |
5377 | clear_bit(STATUS_EXIT_PENDING, &il->status); | 5377 | clear_bit(S_EXIT_PENDING, &il->status); |
5378 | 5378 | ||
5379 | /* tried to restart and config the device for as long as our | 5379 | /* tried to restart and config the device for as long as our |
5380 | * patience could withstand */ | 5380 | * patience could withstand */ |
@@ -5395,7 +5395,7 @@ static void il4965_bg_init_alive_start(struct work_struct *data) | |||
5395 | container_of(data, struct il_priv, init_alive_start.work); | 5395 | container_of(data, struct il_priv, init_alive_start.work); |
5396 | 5396 | ||
5397 | mutex_lock(&il->mutex); | 5397 | mutex_lock(&il->mutex); |
5398 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5398 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5399 | goto out; | 5399 | goto out; |
5400 | 5400 | ||
5401 | il->cfg->ops->lib->init_alive_start(il); | 5401 | il->cfg->ops->lib->init_alive_start(il); |
@@ -5409,7 +5409,7 @@ static void il4965_bg_alive_start(struct work_struct *data) | |||
5409 | container_of(data, struct il_priv, alive_start.work); | 5409 | container_of(data, struct il_priv, alive_start.work); |
5410 | 5410 | ||
5411 | mutex_lock(&il->mutex); | 5411 | mutex_lock(&il->mutex); |
5412 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5412 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5413 | goto out; | 5413 | goto out; |
5414 | 5414 | ||
5415 | il4965_alive_start(il); | 5415 | il4965_alive_start(il); |
@@ -5424,8 +5424,8 @@ static void il4965_bg_run_time_calib_work(struct work_struct *work) | |||
5424 | 5424 | ||
5425 | mutex_lock(&il->mutex); | 5425 | mutex_lock(&il->mutex); |
5426 | 5426 | ||
5427 | if (test_bit(STATUS_EXIT_PENDING, &il->status) || | 5427 | if (test_bit(S_EXIT_PENDING, &il->status) || |
5428 | test_bit(STATUS_SCANNING, &il->status)) { | 5428 | test_bit(S_SCANNING, &il->status)) { |
5429 | mutex_unlock(&il->mutex); | 5429 | mutex_unlock(&il->mutex); |
5430 | return; | 5430 | return; |
5431 | } | 5431 | } |
@@ -5444,10 +5444,10 @@ static void il4965_bg_restart(struct work_struct *data) | |||
5444 | { | 5444 | { |
5445 | struct il_priv *il = container_of(data, struct il_priv, restart); | 5445 | struct il_priv *il = container_of(data, struct il_priv, restart); |
5446 | 5446 | ||
5447 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5447 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5448 | return; | 5448 | return; |
5449 | 5449 | ||
5450 | if (test_and_clear_bit(STATUS_FW_ERROR, &il->status)) { | 5450 | if (test_and_clear_bit(S_FW_ERROR, &il->status)) { |
5451 | mutex_lock(&il->mutex); | 5451 | mutex_lock(&il->mutex); |
5452 | il->ctx.vif = NULL; | 5452 | il->ctx.vif = NULL; |
5453 | il->is_open = 0; | 5453 | il->is_open = 0; |
@@ -5461,7 +5461,7 @@ static void il4965_bg_restart(struct work_struct *data) | |||
5461 | il4965_down(il); | 5461 | il4965_down(il); |
5462 | 5462 | ||
5463 | mutex_lock(&il->mutex); | 5463 | mutex_lock(&il->mutex); |
5464 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) { | 5464 | if (test_bit(S_EXIT_PENDING, &il->status)) { |
5465 | mutex_unlock(&il->mutex); | 5465 | mutex_unlock(&il->mutex); |
5466 | return; | 5466 | return; |
5467 | } | 5467 | } |
@@ -5476,7 +5476,7 @@ static void il4965_bg_rx_replenish(struct work_struct *data) | |||
5476 | struct il_priv *il = | 5476 | struct il_priv *il = |
5477 | container_of(data, struct il_priv, rx_replenish); | 5477 | container_of(data, struct il_priv, rx_replenish); |
5478 | 5478 | ||
5479 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5479 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5480 | return; | 5480 | return; |
5481 | 5481 | ||
5482 | mutex_lock(&il->mutex); | 5482 | mutex_lock(&il->mutex); |
@@ -5582,10 +5582,10 @@ int il4965_mac_start(struct ieee80211_hw *hw) | |||
5582 | /* Wait for START_ALIVE from Run Time ucode. Otherwise callbacks from | 5582 | /* Wait for START_ALIVE from Run Time ucode. Otherwise callbacks from |
5583 | * mac80211 will not be run successfully. */ | 5583 | * mac80211 will not be run successfully. */ |
5584 | ret = wait_event_timeout(il->wait_command_queue, | 5584 | ret = wait_event_timeout(il->wait_command_queue, |
5585 | test_bit(STATUS_READY, &il->status), | 5585 | test_bit(S_READY, &il->status), |
5586 | UCODE_READY_TIMEOUT); | 5586 | UCODE_READY_TIMEOUT); |
5587 | if (!ret) { | 5587 | if (!ret) { |
5588 | if (!test_bit(STATUS_READY, &il->status)) { | 5588 | if (!test_bit(S_READY, &il->status)) { |
5589 | IL_ERR("START_ALIVE timeout after %dms.\n", | 5589 | IL_ERR("START_ALIVE timeout after %dms.\n", |
5590 | jiffies_to_msecs(UCODE_READY_TIMEOUT)); | 5590 | jiffies_to_msecs(UCODE_READY_TIMEOUT)); |
5591 | return -ETIMEDOUT; | 5591 | return -ETIMEDOUT; |
@@ -5751,7 +5751,7 @@ int il4965_mac_ampdu_action(struct ieee80211_hw *hw, | |||
5751 | case IEEE80211_AMPDU_RX_STOP: | 5751 | case IEEE80211_AMPDU_RX_STOP: |
5752 | D_HT("stop Rx\n"); | 5752 | D_HT("stop Rx\n"); |
5753 | ret = il4965_sta_rx_agg_stop(il, sta, tid); | 5753 | ret = il4965_sta_rx_agg_stop(il, sta, tid); |
5754 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5754 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5755 | ret = 0; | 5755 | ret = 0; |
5756 | break; | 5756 | break; |
5757 | case IEEE80211_AMPDU_TX_START: | 5757 | case IEEE80211_AMPDU_TX_START: |
@@ -5761,7 +5761,7 @@ int il4965_mac_ampdu_action(struct ieee80211_hw *hw, | |||
5761 | case IEEE80211_AMPDU_TX_STOP: | 5761 | case IEEE80211_AMPDU_TX_STOP: |
5762 | D_HT("stop Tx\n"); | 5762 | D_HT("stop Tx\n"); |
5763 | ret = il4965_tx_agg_stop(il, vif, sta, tid); | 5763 | ret = il4965_tx_agg_stop(il, vif, sta, tid); |
5764 | if (test_bit(STATUS_EXIT_PENDING, &il->status)) | 5764 | if (test_bit(S_EXIT_PENDING, &il->status)) |
5765 | ret = 0; | 5765 | ret = 0; |
5766 | break; | 5766 | break; |
5767 | case IEEE80211_AMPDU_TX_OPERATIONAL: | 5767 | case IEEE80211_AMPDU_TX_OPERATIONAL: |
@@ -5833,9 +5833,9 @@ void il4965_mac_channel_switch(struct ieee80211_hw *hw, | |||
5833 | if (il_is_rfkill(il)) | 5833 | if (il_is_rfkill(il)) |
5834 | goto out; | 5834 | goto out; |
5835 | 5835 | ||
5836 | if (test_bit(STATUS_EXIT_PENDING, &il->status) || | 5836 | if (test_bit(S_EXIT_PENDING, &il->status) || |
5837 | test_bit(STATUS_SCANNING, &il->status) || | 5837 | test_bit(S_SCANNING, &il->status) || |
5838 | test_bit(STATUS_CHANNEL_SWITCH_PENDING, &il->status)) | 5838 | test_bit(S_CHANNEL_SWITCH_PENDING, &il->status)) |
5839 | goto out; | 5839 | goto out; |
5840 | 5840 | ||
5841 | if (!il_is_associated_ctx(ctx)) | 5841 | if (!il_is_associated_ctx(ctx)) |
@@ -5891,10 +5891,10 @@ void il4965_mac_channel_switch(struct ieee80211_hw *hw, | |||
5891 | * at this point, staging_rxon has the | 5891 | * at this point, staging_rxon has the |
5892 | * configuration for channel switch | 5892 | * configuration for channel switch |
5893 | */ | 5893 | */ |
5894 | set_bit(STATUS_CHANNEL_SWITCH_PENDING, &il->status); | 5894 | set_bit(S_CHANNEL_SWITCH_PENDING, &il->status); |
5895 | il->switch_channel = cpu_to_le16(ch); | 5895 | il->switch_channel = cpu_to_le16(ch); |
5896 | if (il->cfg->ops->lib->set_channel_switch(il, ch_switch)) { | 5896 | if (il->cfg->ops->lib->set_channel_switch(il, ch_switch)) { |
5897 | clear_bit(STATUS_CHANNEL_SWITCH_PENDING, &il->status); | 5897 | clear_bit(S_CHANNEL_SWITCH_PENDING, &il->status); |
5898 | il->switch_channel = 0; | 5898 | il->switch_channel = 0; |
5899 | ieee80211_chswitch_done(ctx->vif, false); | 5899 | ieee80211_chswitch_done(ctx->vif, false); |
5900 | } | 5900 | } |
@@ -5968,8 +5968,8 @@ static void il4965_bg_txpower_work(struct work_struct *work) | |||
5968 | * then just return; the stats notification will | 5968 | * then just return; the stats notification will |
5969 | * kick off another scheduled work to compensate for | 5969 | * kick off another scheduled work to compensate for |
5970 | * any temperature delta we missed here. */ | 5970 | * any temperature delta we missed here. */ |
5971 | if (test_bit(STATUS_EXIT_PENDING, &il->status) || | 5971 | if (test_bit(S_EXIT_PENDING, &il->status) || |
5972 | test_bit(STATUS_SCANNING, &il->status)) | 5972 | test_bit(S_SCANNING, &il->status)) |
5973 | goto out; | 5973 | goto out; |
5974 | 5974 | ||
5975 | /* Regardless of if we are associated, we must reconfigure the | 5975 | /* Regardless of if we are associated, we must reconfigure the |
@@ -6376,12 +6376,12 @@ il4965_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6376 | /* If platform's RF_KILL switch is NOT set to KILL */ | 6376 | /* If platform's RF_KILL switch is NOT set to KILL */ |
6377 | if (_il_rd(il, CSR_GP_CNTRL) & | 6377 | if (_il_rd(il, CSR_GP_CNTRL) & |
6378 | CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) | 6378 | CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW) |
6379 | clear_bit(STATUS_RF_KILL_HW, &il->status); | 6379 | clear_bit(S_RF_KILL_HW, &il->status); |
6380 | else | 6380 | else |
6381 | set_bit(STATUS_RF_KILL_HW, &il->status); | 6381 | set_bit(S_RF_KILL_HW, &il->status); |
6382 | 6382 | ||
6383 | wiphy_rfkill_set_hw_state(il->hw->wiphy, | 6383 | wiphy_rfkill_set_hw_state(il->hw->wiphy, |
6384 | test_bit(STATUS_RF_KILL_HW, &il->status)); | 6384 | test_bit(S_RF_KILL_HW, &il->status)); |
6385 | 6385 | ||
6386 | il_power_initialize(il); | 6386 | il_power_initialize(il); |
6387 | 6387 | ||
@@ -6433,9 +6433,9 @@ static void __devexit il4965_pci_remove(struct pci_dev *pdev) | |||
6433 | 6433 | ||
6434 | /* ieee80211_unregister_hw call wil cause il_mac_stop to | 6434 | /* ieee80211_unregister_hw call wil cause il_mac_stop to |
6435 | * to be called and il4965_down since we are removing the device | 6435 | * to be called and il4965_down since we are removing the device |
6436 | * we need to set STATUS_EXIT_PENDING bit. | 6436 | * we need to set S_EXIT_PENDING bit. |
6437 | */ | 6437 | */ |
6438 | set_bit(STATUS_EXIT_PENDING, &il->status); | 6438 | set_bit(S_EXIT_PENDING, &il->status); |
6439 | 6439 | ||
6440 | il_leds_exit(il); | 6440 | il_leds_exit(il); |
6441 | 6441 | ||