diff options
Diffstat (limited to 'net/mac80211/ieee80211_sta.c')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index bee8080f2249..4f9be2fb2bfc 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c | |||
@@ -2894,15 +2894,6 @@ ieee80211_sta_scan_result(struct net_device *dev, | |||
2894 | if (!(local->enabled_modes & (1 << bss->hw_mode))) | 2894 | if (!(local->enabled_modes & (1 << bss->hw_mode))) |
2895 | return current_ev; | 2895 | return current_ev; |
2896 | 2896 | ||
2897 | if (local->scan_flags & IEEE80211_SCAN_WPA_ONLY && | ||
2898 | !bss->wpa_ie && !bss->rsn_ie) | ||
2899 | return current_ev; | ||
2900 | |||
2901 | if (local->scan_flags & IEEE80211_SCAN_MATCH_SSID && | ||
2902 | (local->scan_ssid_len != bss->ssid_len || | ||
2903 | memcmp(local->scan_ssid, bss->ssid, bss->ssid_len) != 0)) | ||
2904 | return current_ev; | ||
2905 | |||
2906 | memset(&iwe, 0, sizeof(iwe)); | 2897 | memset(&iwe, 0, sizeof(iwe)); |
2907 | iwe.cmd = SIOCGIWAP; | 2898 | iwe.cmd = SIOCGIWAP; |
2908 | iwe.u.ap_addr.sa_family = ARPHRD_ETHER; | 2899 | iwe.u.ap_addr.sa_family = ARPHRD_ETHER; |
@@ -3009,9 +3000,6 @@ ieee80211_sta_scan_result(struct net_device *dev, | |||
3009 | do { | 3000 | do { |
3010 | char *buf; | 3001 | char *buf; |
3011 | 3002 | ||
3012 | if (!(local->scan_flags & IEEE80211_SCAN_EXTRA_INFO)) | ||
3013 | break; | ||
3014 | |||
3015 | buf = kmalloc(100, GFP_ATOMIC); | 3003 | buf = kmalloc(100, GFP_ATOMIC); |
3016 | if (!buf) | 3004 | if (!buf) |
3017 | break; | 3005 | break; |