aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelmut Schaa <hschaa@suse.de>2007-11-09 10:26:09 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:54:37 -0500
commit48933dea47c947f1d44631ce2292736e6a48eef1 (patch)
tree76d9dbaaeb3c967dd4fa08432937167b922e8af9
parentdabeb344f54ab780d152714c18f1cb6b21c471a1 (diff)
mac80211: Remove local->scan_flags
This patch removes all references to local->scan_flags as these are not used anymore since the removal of prism2 ioctls. Signed-off-by: Helmut Schaa <hschaa@suse.de> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/mac80211/ieee80211_i.h4
-rw-r--r--net/mac80211/ieee80211_ioctl.c19
-rw-r--r--net/mac80211/ieee80211_sta.c12
3 files changed, 3 insertions, 32 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 72e1c93dd87e..2be7fcebac48 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -483,10 +483,6 @@ struct ieee80211_local {
483 struct list_head sta_bss_list; 483 struct list_head sta_bss_list;
484 struct ieee80211_sta_bss *sta_bss_hash[STA_HASH_SIZE]; 484 struct ieee80211_sta_bss *sta_bss_hash[STA_HASH_SIZE];
485 spinlock_t sta_bss_lock; 485 spinlock_t sta_bss_lock;
486#define IEEE80211_SCAN_MATCH_SSID BIT(0)
487#define IEEE80211_SCAN_WPA_ONLY BIT(1)
488#define IEEE80211_SCAN_EXTRA_INFO BIT(2)
489 int scan_flags;
490 486
491 /* SNMP counters */ 487 /* SNMP counters */
492 /* dot11CountersTable */ 488 /* dot11CountersTable */
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c
index da3350d44da1..bbd9bc572a54 100644
--- a/net/mac80211/ieee80211_ioctl.c
+++ b/net/mac80211/ieee80211_ioctl.c
@@ -513,7 +513,6 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev,
513 struct iw_request_info *info, 513 struct iw_request_info *info,
514 union iwreq_data *wrqu, char *extra) 514 union iwreq_data *wrqu, char *extra)
515{ 515{
516 struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
517 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); 516 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
518 struct iw_scan_req *req = NULL; 517 struct iw_scan_req *req = NULL;
519 u8 *ssid = NULL; 518 u8 *ssid = NULL;
@@ -522,21 +521,9 @@ static int ieee80211_ioctl_siwscan(struct net_device *dev,
522 if (!netif_running(dev)) 521 if (!netif_running(dev))
523 return -ENETDOWN; 522 return -ENETDOWN;
524 523
525 switch (sdata->type) { 524 if (sdata->type != IEEE80211_IF_TYPE_STA &&
526 case IEEE80211_IF_TYPE_STA: 525 sdata->type != IEEE80211_IF_TYPE_IBSS &&
527 case IEEE80211_IF_TYPE_IBSS: 526 sdata->type != IEEE80211_IF_TYPE_AP) {
528 if (local->scan_flags & IEEE80211_SCAN_MATCH_SSID) {
529 ssid = sdata->u.sta.ssid;
530 ssid_len = sdata->u.sta.ssid_len;
531 }
532 break;
533 case IEEE80211_IF_TYPE_AP:
534 if (local->scan_flags & IEEE80211_SCAN_MATCH_SSID) {
535 ssid = sdata->u.ap.ssid;
536 ssid_len = sdata->u.ap.ssid_len;
537 }
538 break;
539 default:
540 return -EOPNOTSUPP; 527 return -EOPNOTSUPP;
541 } 528 }
542 529
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;