diff options
Diffstat (limited to 'net/mac80211/debugfs_key.c')
-rw-r--r-- | net/mac80211/debugfs_key.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index 7439b63df5d0..a3294d109322 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c | |||
@@ -206,7 +206,8 @@ void ieee80211_debugfs_key_add(struct ieee80211_key *key) | |||
206 | rcu_read_lock(); | 206 | rcu_read_lock(); |
207 | sta = rcu_dereference(key->sta); | 207 | sta = rcu_dereference(key->sta); |
208 | if (sta) | 208 | if (sta) |
209 | sprintf(buf, "../../stations/%s", print_mac(mac, sta->addr)); | 209 | sprintf(buf, "../../stations/%s", |
210 | print_mac(mac, sta->sta.addr)); | ||
210 | rcu_read_unlock(); | 211 | rcu_read_unlock(); |
211 | 212 | ||
212 | /* using sta as a boolean is fine outside RCU lock */ | 213 | /* using sta as a boolean is fine outside RCU lock */ |
@@ -265,7 +266,7 @@ void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata) | |||
265 | key = sdata->default_key; | 266 | key = sdata->default_key; |
266 | if (key) { | 267 | if (key) { |
267 | sprintf(buf, "../keys/%d", key->debugfs.cnt); | 268 | sprintf(buf, "../keys/%d", key->debugfs.cnt); |
268 | sdata->debugfs.default_key = | 269 | sdata->common_debugfs.default_key = |
269 | debugfs_create_symlink("default_key", | 270 | debugfs_create_symlink("default_key", |
270 | sdata->debugfsdir, buf); | 271 | sdata->debugfsdir, buf); |
271 | } else | 272 | } else |
@@ -277,8 +278,8 @@ void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata) | |||
277 | if (!sdata) | 278 | if (!sdata) |
278 | return; | 279 | return; |
279 | 280 | ||
280 | debugfs_remove(sdata->debugfs.default_key); | 281 | debugfs_remove(sdata->common_debugfs.default_key); |
281 | sdata->debugfs.default_key = NULL; | 282 | sdata->common_debugfs.default_key = NULL; |
282 | } | 283 | } |
283 | 284 | ||
284 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, | 285 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |