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@xxxxxxxxx> --- 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); -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html