diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-09-15 14:46:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 15:58:26 -0400 |
commit | 859cfb0a99369cf51dc2125ebc3476382a15c322 (patch) | |
tree | 1055d9595b5967d3e06273e33fdf2fb876dbc844 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 909e9b23e4b1d4a783e8d2e5e2c865b7ebdb0675 (diff) |
iwlagn: move iwl_stop / wake_queue to the upper layer
Add a wrapper in the upper layer to call the mac80211's function.
This allows not to have the transport layer call mac80211 directly.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 1142d85ea881..61f8ea6413c0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -1519,7 +1519,7 @@ static void __iwl_down(struct iwl_priv *priv) | |||
1519 | if (!exit_pending) | 1519 | if (!exit_pending) |
1520 | clear_bit(STATUS_EXIT_PENDING, &priv->shrd->status); | 1520 | clear_bit(STATUS_EXIT_PENDING, &priv->shrd->status); |
1521 | 1521 | ||
1522 | if (priv->shrd->mac80211_registered) | 1522 | if (priv->mac80211_registered) |
1523 | ieee80211_stop_queues(priv->hw); | 1523 | ieee80211_stop_queues(priv->hw); |
1524 | 1524 | ||
1525 | iwl_trans_stop_device(trans(priv)); | 1525 | iwl_trans_stop_device(trans(priv)); |
@@ -1863,7 +1863,7 @@ static int iwl_mac_setup_register(struct iwl_priv *priv, | |||
1863 | IWL_ERR(priv, "Failed to register hw (error %d)\n", ret); | 1863 | IWL_ERR(priv, "Failed to register hw (error %d)\n", ret); |
1864 | return ret; | 1864 | return ret; |
1865 | } | 1865 | } |
1866 | priv->shrd->mac80211_registered = 1; | 1866 | priv->mac80211_registered = 1; |
1867 | 1867 | ||
1868 | return 0; | 1868 | return 0; |
1869 | } | 1869 | } |
@@ -3311,7 +3311,6 @@ int iwl_probe(struct iwl_bus *bus, const struct iwl_trans_ops *trans_ops, | |||
3311 | priv->shrd = &priv->_shrd; | 3311 | priv->shrd = &priv->_shrd; |
3312 | priv->shrd->bus = bus; | 3312 | priv->shrd->bus = bus; |
3313 | priv->shrd->priv = priv; | 3313 | priv->shrd->priv = priv; |
3314 | priv->shrd->hw = hw; | ||
3315 | bus_set_drv_data(priv->bus, priv->shrd); | 3314 | bus_set_drv_data(priv->bus, priv->shrd); |
3316 | 3315 | ||
3317 | priv->shrd->trans = trans_ops->alloc(priv->shrd); | 3316 | priv->shrd->trans = trans_ops->alloc(priv->shrd); |
@@ -3487,9 +3486,9 @@ void __devexit iwl_remove(struct iwl_priv * priv) | |||
3487 | iwl_testmode_cleanup(priv); | 3486 | iwl_testmode_cleanup(priv); |
3488 | iwl_leds_exit(priv); | 3487 | iwl_leds_exit(priv); |
3489 | 3488 | ||
3490 | if (priv->shrd->mac80211_registered) { | 3489 | if (priv->mac80211_registered) { |
3491 | ieee80211_unregister_hw(priv->hw); | 3490 | ieee80211_unregister_hw(priv->hw); |
3492 | priv->shrd->mac80211_registered = 0; | 3491 | priv->mac80211_registered = 0; |
3493 | } | 3492 | } |
3494 | 3493 | ||
3495 | iwl_tt_exit(priv); | 3494 | iwl_tt_exit(priv); |