diff options
Diffstat (limited to 'net/wireless/wext-compat.c')
-rw-r--r-- | net/wireless/wext-compat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 7dbe6c62e5c8..bb97061219ca 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -247,7 +247,8 @@ int cfg80211_wext_giwrange(struct net_device *dev, | |||
247 | IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWAP); | 247 | IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWAP); |
248 | IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWSCAN); | 248 | IW_EVENT_CAPA_SET(range->event_capa, SIOCGIWSCAN); |
249 | 249 | ||
250 | range->scan_capa |= IW_SCAN_CAPA_ESSID; | 250 | if (wdev->wiphy->max_scan_ssids > 0) |
251 | range->scan_capa |= IW_SCAN_CAPA_ESSID; | ||
251 | 252 | ||
252 | return 0; | 253 | return 0; |
253 | } | 254 | } |