diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl4965-base.c')
| -rw-r--r-- | drivers/net/wireless/iwlegacy/iwl4965-base.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl4965-base.c b/drivers/net/wireless/iwlegacy/iwl4965-base.c index f781b7e225b4..af2ae22fcfd3 100644 --- a/drivers/net/wireless/iwlegacy/iwl4965-base.c +++ b/drivers/net/wireless/iwlegacy/iwl4965-base.c | |||
| @@ -2992,15 +2992,15 @@ static void iwl4965_bg_txpower_work(struct work_struct *work) | |||
| 2992 | struct iwl_priv *priv = container_of(work, struct iwl_priv, | 2992 | struct iwl_priv *priv = container_of(work, struct iwl_priv, |
| 2993 | txpower_work); | 2993 | txpower_work); |
| 2994 | 2994 | ||
| 2995 | mutex_lock(&priv->mutex); | ||
| 2996 | |||
| 2995 | /* If a scan happened to start before we got here | 2997 | /* If a scan happened to start before we got here |
| 2996 | * then just return; the statistics notification will | 2998 | * then just return; the statistics notification will |
| 2997 | * kick off another scheduled work to compensate for | 2999 | * kick off another scheduled work to compensate for |
| 2998 | * any temperature delta we missed here. */ | 3000 | * any temperature delta we missed here. */ |
| 2999 | if (test_bit(STATUS_EXIT_PENDING, &priv->status) || | 3001 | if (test_bit(STATUS_EXIT_PENDING, &priv->status) || |
| 3000 | test_bit(STATUS_SCANNING, &priv->status)) | 3002 | test_bit(STATUS_SCANNING, &priv->status)) |
| 3001 | return; | 3003 | goto out; |
| 3002 | |||
| 3003 | mutex_lock(&priv->mutex); | ||
| 3004 | 3004 | ||
| 3005 | /* Regardless of if we are associated, we must reconfigure the | 3005 | /* Regardless of if we are associated, we must reconfigure the |
| 3006 | * TX power since frames can be sent on non-radar channels while | 3006 | * TX power since frames can be sent on non-radar channels while |
| @@ -3010,7 +3010,7 @@ static void iwl4965_bg_txpower_work(struct work_struct *work) | |||
| 3010 | /* Update last_temperature to keep is_calib_needed from running | 3010 | /* Update last_temperature to keep is_calib_needed from running |
| 3011 | * when it isn't needed... */ | 3011 | * when it isn't needed... */ |
| 3012 | priv->last_temperature = priv->temperature; | 3012 | priv->last_temperature = priv->temperature; |
| 3013 | 3013 | out: | |
| 3014 | mutex_unlock(&priv->mutex); | 3014 | mutex_unlock(&priv->mutex); |
| 3015 | } | 3015 | } |
| 3016 | 3016 | ||
