diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2009-06-03 14:44:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-06-04 10:56:20 -0400 |
commit | c587de0b8d6e194f7a1719fc6af8a81b4e8916d2 (patch) | |
tree | 1537752cd44caa46883d1bdc2c6b7f40b3ef2600 /drivers/net/wireless/iwlwifi/iwl-agn.c | |
parent | 0aa8204b46e0fb155a98074d53f8b31ca04269b2 (diff) |
iwlwifi: unify station management
This patch unifies 3945 and AGN station management
It also removes useless struct iwl_station_mgmt ops
and cleanups a bit the interface
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-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-agn.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 0a5507cbeb3f..e6ecb3fb8ec9 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -188,7 +188,7 @@ int iwl_commit_rxon(struct iwl_priv *priv) | |||
188 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 188 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
189 | } | 189 | } |
190 | 190 | ||
191 | priv->cfg->ops->smgmt->clear_station_table(priv); | 191 | iwl_clear_stations_table(priv); |
192 | 192 | ||
193 | priv->start_calib = 0; | 193 | priv->start_calib = 0; |
194 | 194 | ||
@@ -1617,7 +1617,7 @@ static void iwl_alive_start(struct iwl_priv *priv) | |||
1617 | goto restart; | 1617 | goto restart; |
1618 | } | 1618 | } |
1619 | 1619 | ||
1620 | priv->cfg->ops->smgmt->clear_station_table(priv); | 1620 | iwl_clear_stations_table(priv); |
1621 | ret = priv->cfg->ops->lib->alive_notify(priv); | 1621 | ret = priv->cfg->ops->lib->alive_notify(priv); |
1622 | if (ret) { | 1622 | if (ret) { |
1623 | IWL_WARN(priv, | 1623 | IWL_WARN(priv, |
@@ -1703,7 +1703,7 @@ static void __iwl_down(struct iwl_priv *priv) | |||
1703 | 1703 | ||
1704 | iwl_leds_unregister(priv); | 1704 | iwl_leds_unregister(priv); |
1705 | 1705 | ||
1706 | priv->cfg->ops->smgmt->clear_station_table(priv); | 1706 | iwl_clear_stations_table(priv); |
1707 | 1707 | ||
1708 | /* Unblock any waiting calls */ | 1708 | /* Unblock any waiting calls */ |
1709 | wake_up_interruptible_all(&priv->wait_command_queue); | 1709 | wake_up_interruptible_all(&priv->wait_command_queue); |
@@ -1903,7 +1903,7 @@ static int __iwl_up(struct iwl_priv *priv) | |||
1903 | 1903 | ||
1904 | for (i = 0; i < MAX_HW_RESTARTS; i++) { | 1904 | for (i = 0; i < MAX_HW_RESTARTS; i++) { |
1905 | 1905 | ||
1906 | priv->cfg->ops->smgmt->clear_station_table(priv); | 1906 | iwl_clear_stations_table(priv); |
1907 | 1907 | ||
1908 | /* load bootstrap state machine, | 1908 | /* load bootstrap state machine, |
1909 | * load bootstrap program into processor's memory, | 1909 | * load bootstrap program into processor's memory, |
@@ -2348,7 +2348,7 @@ static int iwl_mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | |||
2348 | return -EOPNOTSUPP; | 2348 | return -EOPNOTSUPP; |
2349 | } | 2349 | } |
2350 | addr = sta ? sta->addr : iwl_bcast_addr; | 2350 | addr = sta ? sta->addr : iwl_bcast_addr; |
2351 | sta_id = priv->cfg->ops->smgmt->find_station(priv, addr); | 2351 | sta_id = iwl_find_station(priv, addr); |
2352 | if (sta_id == IWL_INVALID_STATION) { | 2352 | if (sta_id == IWL_INVALID_STATION) { |
2353 | IWL_DEBUG_MAC80211(priv, "leave - %pM not in station map.\n", | 2353 | IWL_DEBUG_MAC80211(priv, "leave - %pM not in station map.\n", |
2354 | addr); | 2354 | addr); |
@@ -3121,7 +3121,7 @@ static void __devexit iwl_pci_remove(struct pci_dev *pdev) | |||
3121 | iwl_rx_queue_free(priv, &priv->rxq); | 3121 | iwl_rx_queue_free(priv, &priv->rxq); |
3122 | iwl_hw_txq_ctx_free(priv); | 3122 | iwl_hw_txq_ctx_free(priv); |
3123 | 3123 | ||
3124 | priv->cfg->ops->smgmt->clear_station_table(priv); | 3124 | iwl_clear_stations_table(priv); |
3125 | iwl_eeprom_free(priv); | 3125 | iwl_eeprom_free(priv); |
3126 | 3126 | ||
3127 | 3127 | ||