aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-core.c
diff options
context:
space:
mode:
authorAbhijeet Kolekar <abhijeet.kolekar@intel.com>2009-04-08 14:26:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-04-22 16:54:43 -0400
commitd8052319f2a7d1ee86248df00193110ad1946a33 (patch)
treee85620ca14c9be81546a7ec282031474d7a7b806 /drivers/net/wireless/iwlwifi/iwl-core.c
parentcbb6ab94b66cfb7136e640191a9628c5a71220a3 (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/iwl-core.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c
index e08aee9b2b8c..b8afd9b81fb8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.c
+++ b/drivers/net/wireless/iwlwifi/iwl-core.c
@@ -2418,6 +2418,31 @@ int iwl_mac_add_interface(struct ieee80211_hw *hw,
2418} 2418}
2419EXPORT_SYMBOL(iwl_mac_add_interface); 2419EXPORT_SYMBOL(iwl_mac_add_interface);
2420 2420
2421void iwl_mac_remove_interface(struct ieee80211_hw *hw,
2422 struct ieee80211_if_init_conf *conf)
2423{
2424 struct iwl_priv *priv = hw->priv;
2425
2426 IWL_DEBUG_MAC80211(priv, "enter\n");
2427
2428 mutex_lock(&priv->mutex);
2429
2430 if (iwl_is_ready_rf(priv)) {
2431 iwl_scan_cancel_timeout(priv, 100);
2432 priv->staging_rxon.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
2433 iwlcore_commit_rxon(priv);
2434 }
2435 if (priv->vif == conf->vif) {
2436 priv->vif = NULL;
2437 memset(priv->bssid, 0, ETH_ALEN);
2438 }
2439 mutex_unlock(&priv->mutex);
2440
2441 IWL_DEBUG_MAC80211(priv, "leave\n");
2442
2443}
2444EXPORT_SYMBOL(iwl_mac_remove_interface);
2445
2421#ifdef CONFIG_PM 2446#ifdef CONFIG_PM
2422 2447
2423int iwl_pci_suspend(struct pci_dev *pdev, pm_message_t state) 2448int iwl_pci_suspend(struct pci_dev *pdev, pm_message_t state)