Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183902
b: refs/heads/master
c: ff27fab
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Halperin authored and John W. Linville committed Jan 25, 2010
1 parent 579b406 commit 0a4d67e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81963d68575d497d626ce13e42c84518a931cc12
refs/heads/master: ff27fabe62d288038b36f41ac6a2190ed7d15993
23 changes: 9 additions & 14 deletions trunk/drivers/net/wireless/iwlwifi/iwl-sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,24 +1045,19 @@ int iwl_rxon_add_station(struct iwl_priv *priv, const u8 *addr, bool is_ap)
struct ieee80211_sta_ht_cap *cur_ht_config = NULL;
u8 sta_id;

/* Add station to device's station table */

/*
* XXX: This check is definitely not correct, if we're an AP
* it'll always be false which is not what we want, but
* it doesn't look like iwlagn is prepared to be an HT
* AP anyway.
* Set HT capabilities. It is ok to set this struct even if not using
* HT config: the priv->current_ht_config.is_ht flag will just be false
*/
if (priv->current_ht_config.is_ht) {
rcu_read_lock();
sta = ieee80211_find_sta(priv->vif, addr);
if (sta) {
memcpy(&ht_config, &sta->ht_cap, sizeof(ht_config));
cur_ht_config = &ht_config;
}
rcu_read_unlock();
rcu_read_lock();
sta = ieee80211_find_sta(priv->vif, addr);
if (sta) {
memcpy(&ht_config, &sta->ht_cap, sizeof(ht_config));
cur_ht_config = &ht_config;
}
rcu_read_unlock();

/* Add station to device's station table */
sta_id = iwl_add_station(priv, addr, is_ap, CMD_SYNC, cur_ht_config);

/* Set up default rate scaling table in device's station table */
Expand Down

0 comments on commit 0a4d67e

Please sign in to comment.