Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90090
b: refs/heads/master
c: 96c4654
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 6, 2008
1 parent 1649a41 commit b1a6a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 38968d096b9f497e7ec4590b6b80eb8679e3646a
refs/heads/master: 96c46546e28282a743b97f26e94c7565350898b7
6 changes: 3 additions & 3 deletions trunk/net/mac80211/key.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ static void __ieee80211_key_replace(struct ieee80211_sub_if_data *sdata,
{
int idx, defkey;

if (new)
list_add(&new->list, &sdata->key_list);

if (sta) {
rcu_assign_pointer(sta->key, new);
} else {
Expand All @@ -190,9 +193,6 @@ static void __ieee80211_key_replace(struct ieee80211_sub_if_data *sdata,
ieee80211_set_default_key(sdata, -1);

rcu_assign_pointer(sdata->keys[idx], new);
if (new)
list_add(&new->list, &sdata->key_list);

if (defkey && new)
ieee80211_set_default_key(sdata, new->conf.keyidx);
}
Expand Down

0 comments on commit b1a6a03

Please sign in to comment.