diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2009-04-08 14:26:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:43 -0400 |
commit | d8052319f2a7d1ee86248df00193110ad1946a33 (patch) | |
tree | e85620ca14c9be81546a7ec282031474d7a7b806 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | cbb6ab94b66cfb7136e640191a9628c5a71220a3 (diff) |
iwl3945: use iwl_mac_remove_interface from iwlwifi
3945 can now use iwl_mac_remove_interface from iwlwifi
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 955e50a124b5..f82a9dc82eef 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -3640,29 +3640,6 @@ static int iwl3945_mac_config_interface(struct ieee80211_hw *hw, | |||
3640 | return 0; | 3640 | return 0; |
3641 | } | 3641 | } |
3642 | 3642 | ||
3643 | static void iwl3945_mac_remove_interface(struct ieee80211_hw *hw, | ||
3644 | struct ieee80211_if_init_conf *conf) | ||
3645 | { | ||
3646 | struct iwl_priv *priv = hw->priv; | ||
3647 | |||
3648 | IWL_DEBUG_MAC80211(priv, "enter\n"); | ||
3649 | |||
3650 | mutex_lock(&priv->mutex); | ||
3651 | |||
3652 | if (iwl_is_ready_rf(priv)) { | ||
3653 | iwl_scan_cancel_timeout(priv, 100); | ||
3654 | priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK; | ||
3655 | iwlcore_commit_rxon(priv); | ||
3656 | } | ||
3657 | if (priv->vif == conf->vif) { | ||
3658 | priv->vif = NULL; | ||
3659 | memset(priv->bssid, 0, ETH_ALEN); | ||
3660 | } | ||
3661 | mutex_unlock(&priv->mutex); | ||
3662 | |||
3663 | IWL_DEBUG_MAC80211(priv, "leave\n"); | ||
3664 | } | ||
3665 | |||
3666 | static int iwl3945_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | 3643 | static int iwl3945_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
3667 | struct ieee80211_vif *vif, | 3644 | struct ieee80211_vif *vif, |
3668 | struct ieee80211_sta *sta, | 3645 | struct ieee80211_sta *sta, |
@@ -4338,7 +4315,7 @@ static struct ieee80211_ops iwl3945_hw_ops = { | |||
4338 | .start = iwl3945_mac_start, | 4315 | .start = iwl3945_mac_start, |
4339 | .stop = iwl3945_mac_stop, | 4316 | .stop = iwl3945_mac_stop, |
4340 | .add_interface = iwl_mac_add_interface, | 4317 | .add_interface = iwl_mac_add_interface, |
4341 | .remove_interface = iwl3945_mac_remove_interface, | 4318 | .remove_interface = iwl_mac_remove_interface, |
4342 | .config = iwl3945_mac_config, | 4319 | .config = iwl3945_mac_config, |
4343 | .config_interface = iwl3945_mac_config_interface, | 4320 | .config_interface = iwl3945_mac_config_interface, |
4344 | .configure_filter = iwl_configure_filter, | 4321 | .configure_filter = iwl_configure_filter, |