Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247637
b: refs/heads/master
c: a3836e0
h: refs/heads/master
i:
  247635: 7ca2726
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 12, 2011
1 parent 918fece commit b98b8b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: 8cb231530f03961b55aa4e84e6ead5590bcde04d
refs/heads/master: a3836e02ba4c50db958d32d710b226f2408623dc
12 changes: 7 additions & 5 deletions trunk/net/mac80211/cfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ static int ieee80211_get_key(struct wiphy *wiphy, struct net_device *dev,
goto out;

if (pairwise)
key = sta->ptk;
key = rcu_dereference(sta->ptk);
else if (key_idx < NUM_DEFAULT_KEYS)
key = sta->gtk[key_idx];
key = rcu_dereference(sta->gtk[key_idx]);
} else
key = sdata->keys[key_idx];
key = rcu_dereference(sdata->keys[key_idx]);

if (!key)
goto out;
Expand Down Expand Up @@ -952,8 +952,10 @@ static int ieee80211_change_mpath(struct wiphy *wiphy,
static void mpath_set_pinfo(struct mesh_path *mpath, u8 *next_hop,
struct mpath_info *pinfo)
{
if (mpath->next_hop)
memcpy(next_hop, mpath->next_hop->sta.addr, ETH_ALEN);
struct sta_info *next_hop_sta = rcu_dereference(mpath->next_hop);

if (next_hop_sta)
memcpy(next_hop, next_hop_sta->sta.addr, ETH_ALEN);
else
memset(next_hop, 0, ETH_ALEN);

Expand Down

0 comments on commit b98b8b3

Please sign in to comment.