Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369101
b: refs/heads/master
c: fe21bb0
h: refs/heads/master
i:
  369099: f97bd46
v: v3
  • Loading branch information
Jonas Gorski authored and John W. Linville committed Mar 27, 2013
1 parent 21a77d8 commit b0303c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c55b3766054d3db7a9732c6c8a1c81afac2cfaa6
refs/heads/master: fe21bb02ca3b312ba3b89382760e548fd8996a55
10 changes: 4 additions & 6 deletions trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -4807,16 +4807,14 @@ static int mwl8k_config(struct ieee80211_hw *hw, u32 changed)
struct mwl8k_priv *priv = hw->priv;
int rc;

if (conf->flags & IEEE80211_CONF_IDLE) {
mwl8k_cmd_radio_disable(hw);
return 0;
}

rc = mwl8k_fw_lock(hw);
if (rc)
return rc;

rc = mwl8k_cmd_radio_enable(hw);
if (conf->flags & IEEE80211_CONF_IDLE)
rc = mwl8k_cmd_radio_disable(hw);
else
rc = mwl8k_cmd_radio_enable(hw);
if (rc)
goto out;

Expand Down

0 comments on commit b0303c7

Please sign in to comment.