|
@@ -195,6 +195,7 @@ void ieee80211_debugfs_key_add(struct ieee80211_key *key)
|
|
return;
|
|
return;
|
|
|
|
|
|
sprintf(buf, "%d", keycount);
|
|
sprintf(buf, "%d", keycount);
|
|
|
|
+ key->debugfs.cnt = keycount;
|
|
keycount++;
|
|
keycount++;
|
|
key->debugfs.dir = debugfs_create_dir(buf,
|
|
key->debugfs.dir = debugfs_create_dir(buf,
|
|
key->local->debugfs.keys);
|
|
key->local->debugfs.keys);
|
|
@@ -258,7 +259,7 @@ void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata)
|
|
if (!sdata->debugfsdir)
|
|
if (!sdata->debugfsdir)
|
|
return;
|
|
return;
|
|
|
|
|
|
- sprintf(buf, "../keys/%d", sdata->default_key->conf.keyidx);
|
|
|
|
|
|
+ sprintf(buf, "../keys/%d", sdata->default_key->debugfs.cnt);
|
|
sdata->debugfs.default_key =
|
|
sdata->debugfs.default_key =
|
|
debugfs_create_symlink("default_key", sdata->debugfsdir, buf);
|
|
debugfs_create_symlink("default_key", sdata->debugfsdir, buf);
|
|
}
|
|
}
|