diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2009-04-08 14:26:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:54:42 -0400 |
commit | 40ace5b385ccf8a4d4d096b353b7f1baac1d014b (patch) | |
tree | dd3d71bcd2b6436033ad50d55190af2b0f277915 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 79fa455a995057b6559fcd2a02e8b089b2e2e288 (diff) |
iwl3945: replace station function with station ops
Patch replaces station function used in driver by station management ops
in 3945.
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-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index fb08295417f0..7c0c7992b596 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -2114,7 +2114,7 @@ static int iwl3945_commit_rxon(struct iwl_priv *priv) | |||
2114 | 2114 | ||
2115 | memcpy(active_rxon, staging_rxon, sizeof(*active_rxon)); | 2115 | memcpy(active_rxon, staging_rxon, sizeof(*active_rxon)); |
2116 | 2116 | ||
2117 | iwl3945_clear_stations_table(priv); | 2117 | priv->cfg->ops->smgmt->clear_station_table(priv); |
2118 | 2118 | ||
2119 | /* If we issue a new RXON command which required a tune then we must | 2119 | /* If we issue a new RXON command which required a tune then we must |
2120 | * send a new TXPOWER command or we won't be able to Tx any frames */ | 2120 | * send a new TXPOWER command or we won't be able to Tx any frames */ |
@@ -2125,7 +2125,7 @@ static int iwl3945_commit_rxon(struct iwl_priv *priv) | |||
2125 | } | 2125 | } |
2126 | 2126 | ||
2127 | /* Add the broadcast address so we can send broadcast frames */ | 2127 | /* Add the broadcast address so we can send broadcast frames */ |
2128 | if (iwl3945_add_station(priv, iwl_bcast_addr, 0, 0) == | 2128 | if (priv->cfg->ops->smgmt->add_station(priv, iwl_bcast_addr, 0, 0) == |
2129 | IWL_INVALID_STATION) { | 2129 | IWL_INVALID_STATION) { |
2130 | IWL_ERR(priv, "Error adding BROADCAST address for transmit.\n"); | 2130 | IWL_ERR(priv, "Error adding BROADCAST address for transmit.\n"); |
2131 | return -EIO; | 2131 | return -EIO; |
@@ -2135,8 +2135,8 @@ static int iwl3945_commit_rxon(struct iwl_priv *priv) | |||
2135 | * add the IWL_AP_ID to the station rate table */ | 2135 | * add the IWL_AP_ID to the station rate table */ |
2136 | if (iwl_is_associated(priv) && | 2136 | if (iwl_is_associated(priv) && |
2137 | (priv->iw_mode == NL80211_IFTYPE_STATION)) | 2137 | (priv->iw_mode == NL80211_IFTYPE_STATION)) |
2138 | if (iwl3945_add_station(priv, priv->active_rxon.bssid_addr, | 2138 | if (priv->cfg->ops->smgmt->add_station(priv, |
2139 | 1, 0) | 2139 | priv->active_rxon.bssid_addr, 1, 0) |
2140 | == IWL_INVALID_STATION) { | 2140 | == IWL_INVALID_STATION) { |
2141 | IWL_ERR(priv, "Error adding AP address for transmit\n"); | 2141 | IWL_ERR(priv, "Error adding AP address for transmit\n"); |
2142 | return -EIO; | 2142 | return -EIO; |