diff options
author | John W. Linville <linville@tuxdriver.com> | 2008-09-30 17:17:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:48 -0400 |
commit | c5d3dce875ef055ed9b14f169cc967cc2c8faf1f (patch) | |
tree | 778402be72b858ec6318c480cd19261079cd1f77 /include | |
parent | 7e272fcff6f0a32a3d46e600ea5895f6058f4e2d (diff) |
wireless: remove NETWORK_EMPTY_ESSID flag
It is unnecessary and of questionable value. Also remove
is_empty_ssid, as it is also unnecessary.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ieee80211.h | 1 | ||||
-rw-r--r-- | include/net/lib80211.h | 16 |
2 files changed, 0 insertions, 17 deletions
diff --git a/include/net/ieee80211.h b/include/net/ieee80211.h index dec10c41e2ec..afa34d3be721 100644 --- a/include/net/ieee80211.h +++ b/include/net/ieee80211.h | |||
@@ -729,7 +729,6 @@ struct ieee80211_txb { | |||
729 | 729 | ||
730 | #define MAX_WPA_IE_LEN 64 | 730 | #define MAX_WPA_IE_LEN 64 |
731 | 731 | ||
732 | #define NETWORK_EMPTY_ESSID (1<<0) | ||
733 | #define NETWORK_HAS_OFDM (1<<1) | 732 | #define NETWORK_HAS_OFDM (1<<1) |
734 | #define NETWORK_HAS_CCK (1<<2) | 733 | #define NETWORK_HAS_CCK (1<<2) |
735 | 734 | ||
diff --git a/include/net/lib80211.h b/include/net/lib80211.h index 91a64f358cef..ce49a30033b6 100644 --- a/include/net/lib80211.h +++ b/include/net/lib80211.h | |||
@@ -12,20 +12,4 @@ | |||
12 | * messages. It should never be used for passing ssid to user space. */ | 12 | * messages. It should never be used for passing ssid to user space. */ |
13 | const char *escape_ssid(const char *ssid, u8 ssid_len); | 13 | const char *escape_ssid(const char *ssid, u8 ssid_len); |
14 | 14 | ||
15 | static inline int is_empty_ssid(const char *ssid, int ssid_len) | ||
16 | { | ||
17 | /* Single white space is for Linksys APs */ | ||
18 | if (ssid_len == 1 && ssid[0] == ' ') | ||
19 | return 1; | ||
20 | |||
21 | /* Otherwise, if the entire ssid is 0, we assume it is hidden */ | ||
22 | while (ssid_len) { | ||
23 | ssid_len--; | ||
24 | if (ssid[ssid_len] != '\0') | ||
25 | return 0; | ||
26 | } | ||
27 | |||
28 | return 1; | ||
29 | } | ||
30 | |||
31 | #endif /* LIB80211_H */ | 15 | #endif /* LIB80211_H */ |