aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ieee80211.h1
-rw-r--r--include/net/lib80211.h16
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. */
13const char *escape_ssid(const char *ssid, u8 ssid_len); 13const char *escape_ssid(const char *ssid, u8 ssid_len);
14 14
15static 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 */