On Wed, 2009-08-05 at 10:05 +0800, Zhu Yi wrote: > 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); Hmm. I suspect using wdev->current_bss would be less prone to breakage, since we've had some trouble with wdev->ssid already, and current_bss has to be present all the time for various nl80211 too. I guess ultimately it doesn't matter that much since somebody will see the problem. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part