diff options
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/debugfs_key.c | 6 | ||||
-rw-r--r-- | net/mac80211/ieee80211_i.h | 4 | ||||
-rw-r--r-- | net/mac80211/mlme.c | 1 |
3 files changed, 6 insertions, 5 deletions
diff --git a/net/mac80211/debugfs_key.c b/net/mac80211/debugfs_key.c index 7439b63df5d0..cf82acec913a 100644 --- a/net/mac80211/debugfs_key.c +++ b/net/mac80211/debugfs_key.c | |||
@@ -265,7 +265,7 @@ void ieee80211_debugfs_key_add_default(struct ieee80211_sub_if_data *sdata) | |||
265 | key = sdata->default_key; | 265 | key = sdata->default_key; |
266 | if (key) { | 266 | if (key) { |
267 | sprintf(buf, "../keys/%d", key->debugfs.cnt); | 267 | sprintf(buf, "../keys/%d", key->debugfs.cnt); |
268 | sdata->debugfs.default_key = | 268 | sdata->common_debugfs.default_key = |
269 | debugfs_create_symlink("default_key", | 269 | debugfs_create_symlink("default_key", |
270 | sdata->debugfsdir, buf); | 270 | sdata->debugfsdir, buf); |
271 | } else | 271 | } else |
@@ -277,8 +277,8 @@ void ieee80211_debugfs_key_remove_default(struct ieee80211_sub_if_data *sdata) | |||
277 | if (!sdata) | 277 | if (!sdata) |
278 | return; | 278 | return; |
279 | 279 | ||
280 | debugfs_remove(sdata->debugfs.default_key); | 280 | debugfs_remove(sdata->common_debugfs.default_key); |
281 | sdata->debugfs.default_key = NULL; | 281 | sdata->common_debugfs.default_key = NULL; |
282 | } | 282 | } |
283 | 283 | ||
284 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, | 284 | void ieee80211_debugfs_key_sta_del(struct ieee80211_key *key, |
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 570ae83c71b1..c68d4df11196 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -498,8 +498,10 @@ struct ieee80211_sub_if_data { | |||
498 | struct { | 498 | struct { |
499 | struct dentry *mode; | 499 | struct dentry *mode; |
500 | } monitor; | 500 | } monitor; |
501 | struct dentry *default_key; | ||
502 | } debugfs; | 501 | } debugfs; |
502 | struct { | ||
503 | struct dentry *default_key; | ||
504 | } common_debugfs; | ||
503 | 505 | ||
504 | #ifdef CONFIG_MAC80211_MESH | 506 | #ifdef CONFIG_MAC80211_MESH |
505 | struct dentry *mesh_stats_dir; | 507 | struct dentry *mesh_stats_dir; |
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index c396c3522f7b..df12e746b03e 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -508,7 +508,6 @@ static void ieee80211_sta_send_associnfo(struct ieee80211_sub_if_data *sdata, | |||
508 | wireless_send_event(sdata->dev, IWEVASSOCREQIE, &wrqu, | 508 | wireless_send_event(sdata->dev, IWEVASSOCREQIE, &wrqu, |
509 | ifsta->assocreq_ies); | 509 | ifsta->assocreq_ies); |
510 | } | 510 | } |
511 | |||
512 | if (ifsta->assocresp_ies) { | 511 | if (ifsta->assocresp_ies) { |
513 | memset(&wrqu, 0, sizeof(wrqu)); | 512 | memset(&wrqu, 0, sizeof(wrqu)); |
514 | wrqu.data.length = ifsta->assocresp_ies_len; | 513 | wrqu.data.length = ifsta->assocresp_ies_len; |