diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-11 19:17:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 19:32:32 -0400 |
commit | a4062b8fd231d2625236ad46bff07906c9bc7160 (patch) | |
tree | a766c642811bca95ff8cc6f7f0d8e1133bc85eea /drivers/net/wireless/iwlwifi | |
parent | e7ec2e3230633a858af1b0b359f6c4670dbeb997 (diff) |
iwlwifi: Use sta_bcast_id variable instead of BROADCAST_ID constant
This patch removes iwlYYY_BROADCAST_ID from run time usage.
hw_setting.sta_bcast_id is used instead.
Signed-off-by: Tomas Winkler <tomas.winkler@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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-4965.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 50a641c0c5b7..9a9918e5272b 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -980,7 +980,7 @@ void iwl3945_hw_build_tx_cmd_rate(struct iwl3945_priv *priv, | |||
980 | priv->stations[sta_id].current_rate.rate_n_flags = rate; | 980 | priv->stations[sta_id].current_rate.rate_n_flags = rate; |
981 | 981 | ||
982 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && | 982 | if ((priv->iw_mode == IEEE80211_IF_TYPE_IBSS) && |
983 | (sta_id != IWL3945_BROADCAST_ID) && | 983 | (sta_id != priv->hw_setting.bcast_sta_id) && |
984 | (sta_id != IWL_MULTICAST_ID)) | 984 | (sta_id != IWL_MULTICAST_ID)) |
985 | priv->stations[IWL_STA_ID].current_rate.rate_n_flags = rate; | 985 | priv->stations[IWL_STA_ID].current_rate.rate_n_flags = rate; |
986 | 986 | ||
@@ -2595,7 +2595,7 @@ unsigned int iwl3945_hw_get_beacon_cmd(struct iwl3945_priv *priv, | |||
2595 | tx_beacon_cmd = (struct iwl3945_tx_beacon_cmd *)&frame->u; | 2595 | tx_beacon_cmd = (struct iwl3945_tx_beacon_cmd *)&frame->u; |
2596 | memset(tx_beacon_cmd, 0, sizeof(*tx_beacon_cmd)); | 2596 | memset(tx_beacon_cmd, 0, sizeof(*tx_beacon_cmd)); |
2597 | 2597 | ||
2598 | tx_beacon_cmd->tx.sta_id = IWL3945_BROADCAST_ID; | 2598 | tx_beacon_cmd->tx.sta_id = priv->hw_setting.bcast_sta_id; |
2599 | tx_beacon_cmd->tx.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; | 2599 | tx_beacon_cmd->tx.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; |
2600 | 2600 | ||
2601 | frame_size = iwl3945_fill_beacon_frame(priv, | 2601 | frame_size = iwl3945_fill_beacon_frame(priv, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c index 2f01a490c9ee..1fe8cc4e74df 100644 --- a/drivers/net/wireless/iwlwifi/iwl-4965.c +++ b/drivers/net/wireless/iwlwifi/iwl-4965.c | |||
@@ -254,7 +254,7 @@ u8 iwl4965_hw_find_station(struct iwl4965_priv *priv, const u8 *addr) | |||
254 | start = IWL_STA_ID; | 254 | start = IWL_STA_ID; |
255 | 255 | ||
256 | if (is_broadcast_ether_addr(addr)) | 256 | if (is_broadcast_ether_addr(addr)) |
257 | return IWL4965_BROADCAST_ID; | 257 | return priv->hw_setting.bcast_sta_id; |
258 | 258 | ||
259 | spin_lock_irqsave(&priv->sta_lock, flags); | 259 | spin_lock_irqsave(&priv->sta_lock, flags); |
260 | for (i = start; i < priv->hw_setting.max_stations; i++) | 260 | for (i = start; i < priv->hw_setting.max_stations; i++) |
@@ -2836,7 +2836,7 @@ unsigned int iwl4965_hw_get_beacon_cmd(struct iwl4965_priv *priv, | |||
2836 | tx_beacon_cmd = &frame->u.beacon; | 2836 | tx_beacon_cmd = &frame->u.beacon; |
2837 | memset(tx_beacon_cmd, 0, sizeof(*tx_beacon_cmd)); | 2837 | memset(tx_beacon_cmd, 0, sizeof(*tx_beacon_cmd)); |
2838 | 2838 | ||
2839 | tx_beacon_cmd->tx.sta_id = IWL4965_BROADCAST_ID; | 2839 | tx_beacon_cmd->tx.sta_id = priv->hw_setting.bcast_sta_id; |
2840 | tx_beacon_cmd->tx.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; | 2840 | tx_beacon_cmd->tx.stop_time.life_time = TX_CMD_LIFE_TIME_INFINITE; |
2841 | 2841 | ||
2842 | frame_size = iwl4965_fill_beacon_frame(priv, | 2842 | frame_size = iwl4965_fill_beacon_frame(priv, |
@@ -4436,7 +4436,7 @@ void iwl4965_add_station(struct iwl4965_priv *priv, const u8 *addr, int is_ap) | |||
4436 | link_cmd.agg_params.agg_time_limit = cpu_to_le16(4000); | 4436 | link_cmd.agg_params.agg_time_limit = cpu_to_le16(4000); |
4437 | 4437 | ||
4438 | /* Update the rate scaling for control frame Tx to AP */ | 4438 | /* Update the rate scaling for control frame Tx to AP */ |
4439 | link_cmd.sta_id = is_ap ? IWL_AP_ID : IWL4965_BROADCAST_ID; | 4439 | link_cmd.sta_id = is_ap ? IWL_AP_ID : priv->hw_setting.bcast_sta_id; |
4440 | 4440 | ||
4441 | iwl4965_send_cmd_pdu(priv, REPLY_TX_LINK_QUALITY_CMD, sizeof(link_cmd), | 4441 | iwl4965_send_cmd_pdu(priv, REPLY_TX_LINK_QUALITY_CMD, sizeof(link_cmd), |
4442 | &link_cmd); | 4442 | &link_cmd); |