linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wireless: display wext SSID when connected by cfg80211
@ 2009-08-05  2:05 Zhu Yi
  2009-08-05  5:19 ` Johannes Berg
  0 siblings, 1 reply; 5+ messages in thread
From: Zhu Yi @ 2009-08-05  2:05 UTC (permalink / raw)
  To: linville; +Cc: linux-wireless, Zhu Yi

cfg80211 displays correct link info when connected by wext. But if
the connection is setup by cfg80211, wext cannot display the SSID.
This patch fixed this issue.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
---
diff --git a/net/wireless/wext-sme.c b/net/wireless/wext-sme.c
index 7bacbd1..48c165b 100644
--- a/net/wireless/wext-sme.c
+++ b/net/wireless/wext-sme.c
@@ -210,6 +210,10 @@ int cfg80211_mgd_wext_giwessid(struct net_device *dev,
 		data->flags = 1;
 		data->length = wdev->wext.connect.ssid_len;
 		memcpy(ssid, wdev->wext.connect.ssid, data->length);
+	} else if (wdev->ssid && wdev->ssid_len) {
+		data->flags = 1;
+		data->length = wdev->ssid_len;
+		memcpy(ssid, wdev->ssid, data->length);
 	} else
 		data->flags = 0;
 	wdev_unlock(wdev);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-08-05  5:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-05  2:05 [PATCH] wireless: display wext SSID when connected by cfg80211 Zhu Yi
2009-08-05  5:19 ` Johannes Berg
2009-08-05  5:27   ` Zhu Yi
2009-08-05  5:35     ` Johannes Berg
2009-08-05  5:39       ` Zhu Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).