diff options
Diffstat (limited to 'net/ieee80211/ieee80211_wx.c')
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c index 3b031c2910ac..3025140ae721 100644 --- a/net/ieee80211/ieee80211_wx.c +++ b/net/ieee80211/ieee80211_wx.c | |||
@@ -65,15 +65,9 @@ static char *ieee80211_translate_scan(struct ieee80211_device *ieee, | |||
65 | /* Add the ESSID */ | 65 | /* Add the ESSID */ |
66 | iwe.cmd = SIOCGIWESSID; | 66 | iwe.cmd = SIOCGIWESSID; |
67 | iwe.u.data.flags = 1; | 67 | iwe.u.data.flags = 1; |
68 | if (network->flags & NETWORK_EMPTY_ESSID) { | 68 | iwe.u.data.length = min(network->ssid_len, (u8) 32); |
69 | iwe.u.data.length = sizeof("<hidden>"); | 69 | start = iwe_stream_add_point(info, start, stop, |
70 | start = iwe_stream_add_point(info, start, stop, | 70 | &iwe, network->ssid); |
71 | &iwe, "<hidden>"); | ||
72 | } else { | ||
73 | iwe.u.data.length = min(network->ssid_len, (u8) 32); | ||
74 | start = iwe_stream_add_point(info, start, stop, | ||
75 | &iwe, network->ssid); | ||
76 | } | ||
77 | 71 | ||
78 | /* Add the protocol name */ | 72 | /* Add the protocol name */ |
79 | iwe.cmd = SIOCGIWNAME; | 73 | iwe.cmd = SIOCGIWNAME; |