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>
This commit is contained in:
@@ -729,7 +729,6 @@ struct ieee80211_txb {
|
||||
|
||||
#define MAX_WPA_IE_LEN 64
|
||||
|
||||
#define NETWORK_EMPTY_ESSID (1<<0)
|
||||
#define NETWORK_HAS_OFDM (1<<1)
|
||||
#define NETWORK_HAS_CCK (1<<2)
|
||||
|
||||
|
@@ -12,20 +12,4 @@
|
||||
* messages. It should never be used for passing ssid to user space. */
|
||||
const char *escape_ssid(const char *ssid, u8 ssid_len);
|
||||
|
||||
static inline int is_empty_ssid(const char *ssid, int ssid_len)
|
||||
{
|
||||
/* Single white space is for Linksys APs */
|
||||
if (ssid_len == 1 && ssid[0] == ' ')
|
||||
return 1;
|
||||
|
||||
/* Otherwise, if the entire ssid is 0, we assume it is hidden */
|
||||
while (ssid_len) {
|
||||
ssid_len--;
|
||||
if (ssid[ssid_len] != '\0')
|
||||
return 0;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif /* LIB80211_H */
|
||||
|
Reference in New Issue
Block a user