aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c6
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 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);