aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/wireless/wext-sme.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c
index c33ea9a5de78..cd5764fd001a 100644
--- a/net/wireless/wext-sme.c
+++ b/net/wireless/wext-sme.c
@@ -209,11 +209,7 @@ int cfg80211_mgd_wext_giwessid(struct net_device *dev,
209 data->flags = 0; 209 data->flags = 0;
210 210
211 wdev_lock(wdev); 211 wdev_lock(wdev);
212 if (wdev->ssid_len) { 212 if (wdev->wext.connect.ssid && wdev->wext.connect.ssid_len) {
213 data->flags = 1;
214 data->length = wdev->ssid_len;
215 memcpy(ssid, wdev->ssid, data->length);
216 } else if (wdev->wext.connect.ssid && wdev->wext.connect.ssid_len) {
217 data->flags = 1; 213 data->flags = 1;
218 data->length = wdev->wext.connect.ssid_len; 214 data->length = wdev->wext.connect.ssid_len;
219 memcpy(ssid, wdev->wext.connect.ssid, data->length); 215 memcpy(ssid, wdev->wext.connect.ssid, data->length);