diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index dacf55ba0b7b..d153ca5f9573 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -464,6 +464,7 @@ u8 iwl_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap, u8 flags) | |||
464 | struct iwl_station_entry *station; | 464 | struct iwl_station_entry *station; |
465 | unsigned long flags_spin; | 465 | unsigned long flags_spin; |
466 | DECLARE_MAC_BUF(mac); | 466 | DECLARE_MAC_BUF(mac); |
467 | u8 rate; | ||
467 | 468 | ||
468 | spin_lock_irqsave(&priv->sta_lock, flags_spin); | 469 | spin_lock_irqsave(&priv->sta_lock, flags_spin); |
469 | if (is_ap) | 470 | if (is_ap) |
@@ -507,6 +508,15 @@ u8 iwl_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap, u8 flags) | |||
507 | station->sta.sta.sta_id = index; | 508 | station->sta.sta.sta_id = index; |
508 | station->sta.station_flags = 0; | 509 | station->sta.station_flags = 0; |
509 | 510 | ||
511 | rate = (priv->phymode == MODE_IEEE80211A) ? IWL_RATE_6M_PLCP : | ||
512 | IWL_RATE_1M_PLCP | priv->hw_setting.cck_flag; | ||
513 | |||
514 | /* Turn on both antennas for the station... */ | ||
515 | station->sta.rate_n_flags = | ||
516 | iwl_hw_set_rate_n_flags(rate, RATE_MCS_ANT_AB_MSK); | ||
517 | station->current_rate.rate_n_flags = | ||
518 | le16_to_cpu(station->sta.rate_n_flags); | ||
519 | |||
510 | spin_unlock_irqrestore(&priv->sta_lock, flags_spin); | 520 | spin_unlock_irqrestore(&priv->sta_lock, flags_spin); |
511 | iwl_send_add_station(priv, &station->sta, flags); | 521 | iwl_send_add_station(priv, &station->sta, flags); |
512 | return index; | 522 | return index; |