aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mlme.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index edc339d649c4..49f86fa56bff 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -690,9 +690,11 @@ static void ieee80211_sta_send_associnfo(struct ieee80211_sub_if_data *sdata,
690 } 690 }
691 } 691 }
692 692
693 memset(&wrqu, 0, sizeof(wrqu)); 693 if (len <= IW_CUSTOM_MAX) {
694 wrqu.data.length = len; 694 memset(&wrqu, 0, sizeof(wrqu));
695 wireless_send_event(dev, IWEVCUSTOM, &wrqu, buf); 695 wrqu.data.length = len;
696 wireless_send_event(sdata->dev, IWEVCUSTOM, &wrqu, buf);
697 }
696 698
697 kfree(buf); 699 kfree(buf);
698} 700}