mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
7e272fcff6
commit
c5d3dce875
6 changed files with 6 additions and 66 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue