diff options
author | David S. Miller <davem@davemloft.net> | 2012-04-23 23:14:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-23 23:15:17 -0400 |
commit | f24001941c99776f41bd3f09c07d91205c2ad9d4 (patch) | |
tree | 0ab31480ccdf343b61db045e195d096068ef7c73 /drivers/net/wireless/ath/ath9k/main.c | |
parent | a108d5f35adc5c5d5cdc882dc0bb920565551bff (diff) | |
parent | 4d634ca35a8b38530b134ae92bc9e3cc9c23c030 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Fix merge between commit 3adadc08cc1e ("net ax25: Reorder ax25_exit to
remove races") and commit 0ca7a4c87d27 ("net ax25: Simplify and
cleanup the ax25 sysctl handling")
The former moved around the sysctl register/unregister calls, the
later simply removed them.
With help from Stephen Rothwell.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 384e5c498440..d0a4b9b270c5 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1574,6 +1574,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
1574 | struct ath_hw *ah = sc->sc_ah; | 1574 | struct ath_hw *ah = sc->sc_ah; |
1575 | struct ath_common *common = ath9k_hw_common(ah); | 1575 | struct ath_common *common = ath9k_hw_common(ah); |
1576 | struct ieee80211_conf *conf = &hw->conf; | 1576 | struct ieee80211_conf *conf = &hw->conf; |
1577 | bool reset_channel = false; | ||
1577 | 1578 | ||
1578 | ath9k_ps_wakeup(sc); | 1579 | ath9k_ps_wakeup(sc); |
1579 | mutex_lock(&sc->mutex); | 1580 | mutex_lock(&sc->mutex); |
@@ -1582,6 +1583,12 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
1582 | sc->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE); | 1583 | sc->ps_idle = !!(conf->flags & IEEE80211_CONF_IDLE); |
1583 | if (sc->ps_idle) | 1584 | if (sc->ps_idle) |
1584 | ath_cancel_work(sc); | 1585 | ath_cancel_work(sc); |
1586 | else | ||
1587 | /* | ||
1588 | * The chip needs a reset to properly wake up from | ||
1589 | * full sleep | ||
1590 | */ | ||
1591 | reset_channel = ah->chip_fullsleep; | ||
1585 | } | 1592 | } |
1586 | 1593 | ||
1587 | /* | 1594 | /* |
@@ -1610,7 +1617,7 @@ static int ath9k_config(struct ieee80211_hw *hw, u32 changed) | |||
1610 | } | 1617 | } |
1611 | } | 1618 | } |
1612 | 1619 | ||
1613 | if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { | 1620 | if ((changed & IEEE80211_CONF_CHANGE_CHANNEL) || reset_channel) { |
1614 | struct ieee80211_channel *curchan = hw->conf.channel; | 1621 | struct ieee80211_channel *curchan = hw->conf.channel; |
1615 | int pos = curchan->hw_value; | 1622 | int pos = curchan->hw_value; |
1616 | int old_pos = -1; | 1623 | int old_pos = -1; |