Flags for SIOCGIWESSID ioctl were not set, thus SSID was never displayed by iwconfig.
Signed-off-by: Jiri Benc <[EMAIL PROTECTED]> --- net/d80211/ieee80211_ioctl.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) 56d18689a4964cc2e906cfb5164b31649735774a diff --git a/net/d80211/ieee80211_ioctl.c b/net/d80211/ieee80211_ioctl.c index dfa0ef7..792fcf4 100644 --- a/net/d80211/ieee80211_ioctl.c +++ b/net/d80211/ieee80211_ioctl.c @@ -1782,8 +1782,11 @@ static int ieee80211_ioctl_giwessid(stru if (sdata->type == IEEE80211_IF_TYPE_STA || sdata->type == IEEE80211_IF_TYPE_IBSS) { int res = ieee80211_sta_get_ssid(dev, ssid, &len); - if (res == 0) + if (res == 0) { data->length = len; + data->flags = 1; + } else + data->flags = 0; return res; } @@ -1792,6 +1795,7 @@ static int ieee80211_ioctl_giwessid(stru len = IW_ESSID_MAX_SIZE; memcpy(ssid, local->conf.ssid, len); data->length = len; + data->flags = 1; return 0; } -- 1.3.0 - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html