Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315213
b: refs/heads/master
c: 135792e
h: refs/heads/master
i:
  315211: e911a23
v: v3
  • Loading branch information
Johannes Berg committed Jul 6, 2012
1 parent 58ce6f7 commit af0b07d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 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: 95ddc1fc4519ed48ddc7d622bd5c84dff3eebb0a
refs/heads/master: 135792ec246ddd0b2738dd95447297ea0b91943b
16 changes: 10 additions & 6 deletions trunk/net/mac80211/debugfs_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,16 +283,23 @@ void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata)

lockdep_assert_held(&sdata->local->key_mtx);

if (sdata->debugfs.default_unicast_key) {
debugfs_remove(sdata->debugfs.default_unicast_key);
sdata->debugfs.default_unicast_key = NULL;
}

if (sdata->default_unicast_key) {
key = key_mtx_dereference(sdata->local,
sdata->default_unicast_key);
sprintf(buf, "../keys/%d", key->debugfs.cnt);
sdata->debugfs.default_unicast_key =
debugfs_create_symlink("default_unicast_key",
sdata->debugfs.dir, buf);
} else {
debugfs_remove(sdata->debugfs.default_unicast_key);
sdata->debugfs.default_unicast_key = NULL;
}

if (sdata->debugfs.default_multicast_key) {
debugfs_remove(sdata->debugfs.default_multicast_key);
sdata->debugfs.default_multicast_key = NULL;
}

if (sdata->default_multicast_key) {
Expand All @@ -302,9 +309,6 @@ void ieee80211_debugfs_key_update_default(struct ieee80211_sub_if_data *sdata)
sdata->debugfs.default_multicast_key =
debugfs_create_symlink("default_multicast_key",
sdata->debugfs.dir, buf);
} else {
debugfs_remove(sdata->debugfs.default_multicast_key);
sdata->debugfs.default_multicast_key = NULL;
}
}

Expand Down

0 comments on commit af0b07d

Please sign in to comment.