diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-27 11:53:46 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2010-08-27 11:53:46 -0400 |
commit | a194e3249baf954dc34c67cdad5b8bed36f49e72 (patch) | |
tree | 2010fbba8fdae3179a1439f2038e30694a85124f /drivers/net/wireless/iwlwifi/iwl-4965.c | |
parent | 751ca305d0e37f0d44b6a261e7db31aa6b60fbf4 (diff) |
iwlwifi: contextify broadcast station
The broadcast station ID is per context, so
add a variable for the ID in the context and
use it everywhere we previously hardcoded it.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index cda389c3b025..c155816f811b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -657,7 +657,7 @@ static int iwl4965_hw_set_hw_params(struct iwl_priv *priv) | |||
657 | sizeof(struct iwl4965_scd_bc_tbl); | 657 | sizeof(struct iwl4965_scd_bc_tbl); |
658 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); | 658 | priv->hw_params.tfd_size = sizeof(struct iwl_tfd); |
659 | priv->hw_params.max_stations = IWL4965_STATION_COUNT; | 659 | priv->hw_params.max_stations = IWL4965_STATION_COUNT; |
660 | priv->hw_params.bcast_sta_id = IWL4965_BROADCAST_ID; | 660 | priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id = IWL4965_BROADCAST_ID; |
661 | priv->hw_params.max_data_size = IWL49_RTC_DATA_SIZE; | 661 | priv->hw_params.max_data_size = IWL49_RTC_DATA_SIZE; |
662 | priv->hw_params.max_inst_size = IWL49_RTC_INST_SIZE; | 662 | priv->hw_params.max_inst_size = IWL49_RTC_INST_SIZE; |
663 | priv->hw_params.max_bsm_size = BSM_SRAM_SIZE; | 663 | priv->hw_params.max_bsm_size = BSM_SRAM_SIZE; |
@@ -2010,7 +2010,7 @@ static u8 iwl_find_station(struct iwl_priv *priv, const u8 *addr) | |||
2010 | start = IWL_STA_ID; | 2010 | start = IWL_STA_ID; |
2011 | 2011 | ||
2012 | if (is_broadcast_ether_addr(addr)) | 2012 | if (is_broadcast_ether_addr(addr)) |
2013 | return priv->hw_params.bcast_sta_id; | 2013 | return priv->contexts[IWL_RXON_CTX_BSS].bcast_sta_id; |
2014 | 2014 | ||
2015 | spin_lock_irqsave(&priv->sta_lock, flags); | 2015 | spin_lock_irqsave(&priv->sta_lock, flags); |
2016 | for (i = start; i < priv->hw_params.max_stations; i++) | 2016 | for (i = start; i < priv->hw_params.max_stations; i++) |
@@ -2283,7 +2283,7 @@ static struct iwl_lib_ops iwl4965_lib = { | |||
2283 | .set_ct_kill = iwl4965_set_ct_threshold, | 2283 | .set_ct_kill = iwl4965_set_ct_threshold, |
2284 | }, | 2284 | }, |
2285 | .manage_ibss_station = iwlagn_manage_ibss_station, | 2285 | .manage_ibss_station = iwlagn_manage_ibss_station, |
2286 | .update_bcast_station = iwl_update_bcast_station, | 2286 | .update_bcast_stations = iwl_update_bcast_stations, |
2287 | .debugfs_ops = { | 2287 | .debugfs_ops = { |
2288 | .rx_stats_read = iwl_ucode_rx_stats_read, | 2288 | .rx_stats_read = iwl_ucode_rx_stats_read, |
2289 | .tx_stats_read = iwl_ucode_tx_stats_read, | 2289 | .tx_stats_read = iwl_ucode_tx_stats_read, |