Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66797
b: refs/heads/master
c: c14c521
h: refs/heads/master
i:
  66795: e73a7ab
v: v3
  • Loading branch information
Zhu Yi authored and David S. Miller committed Oct 10, 2007
1 parent 4a83284 commit 43ad6fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46640a8ccebee34bd16b1af672feaa7dc320f3f6
refs/heads/master: c14c521e440a6a83835a2879a4c5f4311b1df68f
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ u8 iwl_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap, u8 flags)
struct iwl_station_entry *station;
unsigned long flags_spin;
DECLARE_MAC_BUF(mac);
u8 rate;

spin_lock_irqsave(&priv->sta_lock, flags_spin);
if (is_ap)
Expand Down Expand Up @@ -507,6 +508,15 @@ u8 iwl_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap, u8 flags)
station->sta.sta.sta_id = index;
station->sta.station_flags = 0;

rate = (priv->phymode == MODE_IEEE80211A) ? IWL_RATE_6M_PLCP :
IWL_RATE_1M_PLCP | priv->hw_setting.cck_flag;

/* Turn on both antennas for the station... */
station->sta.rate_n_flags =
iwl_hw_set_rate_n_flags(rate, RATE_MCS_ANT_AB_MSK);
station->current_rate.rate_n_flags =
le16_to_cpu(station->sta.rate_n_flags);

spin_unlock_irqrestore(&priv->sta_lock, flags_spin);
iwl_send_add_station(priv, &station->sta, flags);
return index;
Expand Down

0 comments on commit 43ad6fb

Please sign in to comment.