Skip to content

Commit

Permalink
iwlagn: allow power level setting all the times
Browse files Browse the repository at this point in the history
allow user to set power level at all times

Signed-off-by: Mohamed Abbas <mohamed.abbas@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Mohamed Abbas authored and John W. Linville committed Mar 28, 2009
1 parent 5c2207c commit 4f01ac0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/iwlwifi/iwl-agn.c
Original file line number Diff line number Diff line change
Expand Up @@ -3093,11 +3093,6 @@ static ssize_t store_power_level(struct device *d,

mutex_lock(&priv->mutex);

if (!iwl_is_ready(priv)) {
ret = -EAGAIN;
goto out;
}

ret = strict_strtoul(buf, 10, &mode);
if (ret)
goto out;
Expand Down
5 changes: 0 additions & 5 deletions drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -4550,11 +4550,6 @@ static ssize_t store_power_level(struct device *d,

mutex_lock(&priv->mutex);

if (!iwl_is_ready(priv)) {
ret = -EAGAIN;
goto out;
}

ret = strict_strtoul(buf, 10, &mode);
if (ret)
goto out;
Expand Down

0 comments on commit 4f01ac0

Please sign in to comment.